ResourceModelWithAllowedPropertySetIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. desktopvirtualization. models. Identity - com.
azure. resourcemanager. desktopvirtualization. models. ResourceModelWithAllowedPropertySetIdentity
- com.
- com.
public final class ResourceModelWithAllowedPropertySetIdentity
extends Identity
The ResourceModelWithAllowedPropertySetIdentity model.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceModelWithAllowedPropertySetIdentity() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
| String |
principalId()
Get the principal |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Resource |
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:
Returns:
Throws:
principalId
public String principalId()
Get the principalId property: The principal ID of resource identity. The value must be an UUID.
Overrides:
ResourceModelWithAllowedPropertySetIdentity.principalId()Returns:
tenantId
public String tenantId()
Get the tenantId property: The tenant ID of resource. The value must be an UUID.
Overrides:
ResourceModelWithAllowedPropertySetIdentity.tenantId()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ResourceModelWithAllowedPropertySetIdentity.toJson(JsonWriter jsonWriter)Parameters:
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: