Share via


DefaultIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.DefaultIdentity

Implements

public final class DefaultIdentity
implements JsonSerializable<DefaultIdentity>

The DefaultIdentity model.

Constructor Summary

Constructor Description
DefaultIdentity()

Creates an instance of DefaultIdentity class.

Method Summary

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

Reads an instance of DefaultIdentity from the JsonReader.

ManagedServiceIdentityType identityType()

Get the identityType property: The identityType property.

JsonWriter toJson(JsonWriter jsonWriter)
String userAssignedIdentityResourceId()

Get the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.

void validate()

Validates the instance.

DefaultIdentity withIdentityType(ManagedServiceIdentityType identityType)

Set the identityType property: The identityType property.

DefaultIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)

Set the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.

Methods inherited from java.lang.Object

Constructor Details

DefaultIdentity

public DefaultIdentity()

Creates an instance of DefaultIdentity class.

Method Details

fromJson

public static DefaultIdentity fromJson(JsonReader jsonReader)

Reads an instance of DefaultIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identityType

public ManagedServiceIdentityType identityType()

Get the identityType property: The identityType property.

Returns:

the identityType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userAssignedIdentityResourceId

public String userAssignedIdentityResourceId()

Get the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.

Returns:

the userAssignedIdentityResourceId value.

validate

public void validate()

Validates the instance.

withIdentityType

public DefaultIdentity withIdentityType(ManagedServiceIdentityType identityType)

Set the identityType property: The identityType property.

Parameters:

identityType - the identityType value to set.

Returns:

the DefaultIdentity object itself.

withUserAssignedIdentityResourceId

public DefaultIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)

Set the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.

Parameters:

userAssignedIdentityResourceId - the userAssignedIdentityResourceId value to set.

Returns:

the DefaultIdentity object itself.

Applies to