ApiKeyOwnerEntity Class
- java.
lang. Object - com.
azure. resourcemanager. confluent. models. ApiKeyOwnerEntity
- com.
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 Api |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Api |
fromJson(JsonReader jsonReader)
Reads an instance of Api |
| 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 resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Api |
withId(String id)
Set the id property: API Key owner id. |
|
Api |
withKind(String kind)
Set the kind property: Type of the owner service or user account. |
|
Api |
withRelated(String related)
Set the related property: API URL for accessing or modifying the referred object. |
|
Api |
withResourceName(String resourceName)
Set the 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:
Returns:
Throws:
id
public String id()
Get the id property: API Key owner id.
Returns:
kind
public String kind()
Get the kind property: Type of the owner service or user account.
Returns:
related
public String related()
Get the related property: API URL for accessing or modifying the referred object.
Returns:
resourceName
public String resourceName()
Get the resourceName property: CRN reference to the referred resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public ApiKeyOwnerEntity withId(String id)
Set the id property: API Key owner id.
Parameters:
Returns:
withKind
public ApiKeyOwnerEntity withKind(String kind)
Set the kind property: Type of the owner service or user account.
Parameters:
Returns:
withRelated
public ApiKeyOwnerEntity withRelated(String related)
Set the related property: API URL for accessing or modifying the referred object.
Parameters:
Returns:
withResourceName
public ApiKeyOwnerEntity withResourceName(String resourceName)
Set the resourceName property: CRN reference to the referred resource.
Parameters:
Returns: