ApiKeyResourceEntity Class

  • java.lang.Object
    • com.azure.resourcemanager.confluent.models.ApiKeyResourceEntity

Implements

public final class ApiKeyResourceEntity
implements JsonSerializable<ApiKeyResourceEntity>

API Key Resource details which can be kafka cluster or schema registry cluster.

Constructor Summary

Constructor Description
ApiKeyResourceEntity()

Creates an instance of ApiKeyResourceEntity class.

Method Summary

Modifier and Type Method and Description
String environment()

Get the environment property: The environment of the api key.

static ApiKeyResourceEntity fromJson(JsonReader jsonReader)

Reads an instance of ApiKeyResourceEntity from the JsonReader.

String id()

Get the id property: Id of the resource.

String kind()

Get the kind property: Type of the owner which can be service or user account.

String related()

Get the related property: API URL for accessing or modifying the api key resource object.

String resourceName()

Get the resourceName property: CRN reference to the referred resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiKeyResourceEntity withEnvironment(String environment)

Set the environment property: The environment of the api key.

ApiKeyResourceEntity withId(String id)

Set the id property: Id of the resource.

ApiKeyResourceEntity withKind(String kind)

Set the kind property: Type of the owner which can be service or user account.

ApiKeyResourceEntity withRelated(String related)

Set the related property: API URL for accessing or modifying the api key resource object.

ApiKeyResourceEntity withResourceName(String resourceName)

Set the resourceName property: CRN reference to the referred resource.

Methods inherited from java.lang.Object

Constructor Details

ApiKeyResourceEntity

public ApiKeyResourceEntity()

Creates an instance of ApiKeyResourceEntity class.

Method Details

environment

public String environment()

Get the environment property: The environment of the api key.

Returns:

the environment value.

fromJson

public static ApiKeyResourceEntity fromJson(JsonReader jsonReader)

Reads an instance of ApiKeyResourceEntity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApiKeyResourceEntity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ApiKeyResourceEntity.

id

public String id()

Get the id property: Id of the resource.

Returns:

the id value.

kind

public String kind()

Get the kind property: Type of the owner which can be service or user account.

Returns:

the kind value.

related

public String related()

Get the related property: API URL for accessing or modifying the api key resource object.

Returns:

the related value.

resourceName

public String resourceName()

Get the resourceName property: CRN reference to the referred resource.

Returns:

the resourceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnvironment

public ApiKeyResourceEntity withEnvironment(String environment)

Set the environment property: The environment of the api key.

Parameters:

environment - the environment value to set.

Returns:

the ApiKeyResourceEntity object itself.

withId

public ApiKeyResourceEntity withId(String id)

Set the id property: Id of the resource.

Parameters:

id - the id value to set.

Returns:

the ApiKeyResourceEntity object itself.

withKind

public ApiKeyResourceEntity withKind(String kind)

Set the kind property: Type of the owner which can be service or user account.

Parameters:

kind - the kind value to set.

Returns:

the ApiKeyResourceEntity object itself.

withRelated

public ApiKeyResourceEntity withRelated(String related)

Set the related property: API URL for accessing or modifying the api key resource object.

Parameters:

related - the related value to set.

Returns:

the ApiKeyResourceEntity object itself.

withResourceName

public ApiKeyResourceEntity withResourceName(String resourceName)

Set the resourceName property: CRN reference to the referred resource.

Parameters:

resourceName - the resourceName value to set.

Returns:

the ApiKeyResourceEntity object itself.

Applies to