SystemAssignedServiceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity

Implements

public final class SystemAssignedServiceIdentity
implements JsonSerializable<SystemAssignedServiceIdentity>

Managed service identity (either system assigned, or none).

Constructor Summary

Constructor Description
SystemAssignedServiceIdentity()

Creates an instance of SystemAssignedServiceIdentity class.

Method Summary

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

Reads an instance of SystemAssignedServiceIdentity from the JsonReader.

UUID principalId()

Get the principalId property: The service principal ID of the system assigned identity.

UUID tenantId()

Get the tenantId property: The tenant ID of the system assigned identity.

JsonWriter toJson(JsonWriter jsonWriter)
SystemAssignedServiceIdentityType type()

Get the type property: Type of managed service identity (either system assigned, or none).

void validate()

Validates the instance.

SystemAssignedServiceIdentity withType(SystemAssignedServiceIdentityType type)

Set the type property: Type of managed service identity (either system assigned, or none).

Methods inherited from java.lang.Object

Constructor Details

SystemAssignedServiceIdentity

public SystemAssignedServiceIdentity()

Creates an instance of SystemAssignedServiceIdentity class.

Method Details

fromJson

public static SystemAssignedServiceIdentity fromJson(JsonReader jsonReader)

Reads an instance of SystemAssignedServiceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

principalId

public UUID principalId()

Get the principalId property: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

Returns:

the principalId value.

tenantId

public UUID tenantId()

Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public SystemAssignedServiceIdentityType type()

Get the type property: Type of managed service identity (either system assigned, or none).

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public SystemAssignedServiceIdentity withType(SystemAssignedServiceIdentityType type)

Set the type property: Type of managed service identity (either system assigned, or none).

Parameters:

type - the type value to set.

Returns:

the SystemAssignedServiceIdentity object itself.

Applies to