ResourceModelWithAllowedPropertySetIdentity Class

public final class ResourceModelWithAllowedPropertySetIdentity
extends Identity

The ResourceModelWithAllowedPropertySetIdentity model.

Constructor Summary

Constructor Description
ResourceModelWithAllowedPropertySetIdentity()

Creates an instance of ResourceModelWithAllowedPropertySetIdentity class.

Method Summary

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

Reads an instance of ResourceModelWithAllowedPropertySetIdentity from the JsonReader.

String principalId()

Get the principalId property: The principal ID of resource identity.

String tenantId()

Get the tenantId property: The tenant ID of resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceModelWithAllowedPropertySetIdentity withType(ResourceIdentityType type)

Set the type property: The identity type.

Methods inherited from Identity

Methods inherited from java.lang.Object

Constructor Details

ResourceModelWithAllowedPropertySetIdentity

public ResourceModelWithAllowedPropertySetIdentity()

Creates an instance of ResourceModelWithAllowedPropertySetIdentity class.

Method Details

fromJson

public static ResourceModelWithAllowedPropertySetIdentity fromJson(JsonReader jsonReader)

Reads an instance of ResourceModelWithAllowedPropertySetIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The principal ID of resource identity. The value must be an UUID.

Overrides:

ResourceModelWithAllowedPropertySetIdentity.principalId()

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant ID of resource. The value must be an UUID.

Overrides:

ResourceModelWithAllowedPropertySetIdentity.tenantId()

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ResourceModelWithAllowedPropertySetIdentity.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ResourceModelWithAllowedPropertySetIdentity.validate()

withType

public ResourceModelWithAllowedPropertySetIdentity withType(ResourceIdentityType type)

Set the type property: The identity type.

Overrides:

ResourceModelWithAllowedPropertySetIdentity.withType(ResourceIdentityType type)

Parameters:

type

Applies to