ApiKeyOwnerEntity Class

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

Implements

public final class ApiKeyOwnerEntity
implements JsonSerializable<ApiKeyOwnerEntity>

API Key Owner details which can be a user or service account.

Constructor Summary

Constructor Description
ApiKeyOwnerEntity()

Creates an instance of ApiKeyOwnerEntity class.

Method Summary

Modifier and Type Method and Description
static ApiKeyOwnerEntity fromJson(JsonReader jsonReader)

Reads an instance of ApiKeyOwnerEntity from the JsonReader.

String id()

Get the id property: API Key owner id.

String kind()

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

String related()

Get the related property: API URL for accessing or modifying the referred object.

String resourceName()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiKeyOwnerEntity withId(String id)

Set the id property: API Key owner id.

ApiKeyOwnerEntity withKind(String kind)

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

ApiKeyOwnerEntity withRelated(String related)

Set the related property: API URL for accessing or modifying the referred object.

ApiKeyOwnerEntity withResourceName(String resourceName)

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

Methods inherited from java.lang.Object

Constructor Details

ApiKeyOwnerEntity

public ApiKeyOwnerEntity()

Creates an instance of ApiKeyOwnerEntity class.

Method Details

fromJson

public static ApiKeyOwnerEntity fromJson(JsonReader jsonReader)

Reads an instance of ApiKeyOwnerEntity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApiKeyOwnerEntity 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 ApiKeyOwnerEntity.

id

public String id()

Get the id property: API Key owner id.

Returns:

the id value.

kind

public String kind()

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

Returns:

the kind value.

related

public String related()

Get the related property: API URL for accessing or modifying the referred 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.

withId

public ApiKeyOwnerEntity withId(String id)

Set the id property: API Key owner id.

Parameters:

id - the id value to set.

Returns:

the ApiKeyOwnerEntity object itself.

withKind

public ApiKeyOwnerEntity withKind(String kind)

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

Parameters:

kind - the kind value to set.

Returns:

the ApiKeyOwnerEntity object itself.

withRelated

public ApiKeyOwnerEntity withRelated(String related)

Set the related property: API URL for accessing or modifying the referred object.

Parameters:

related - the related value to set.

Returns:

the ApiKeyOwnerEntity object itself.

withResourceName

public ApiKeyOwnerEntity withResourceName(String resourceName)

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

Parameters:

resourceName - the resourceName value to set.

Returns:

the ApiKeyOwnerEntity object itself.

Applies to