DeploymentIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.deployments.models.DeploymentIdentity

Implements

public final class DeploymentIdentity
implements JsonSerializable<DeploymentIdentity>

The Managed Identity configuration for a deployment.

Constructor Summary

Constructor Description
DeploymentIdentity()

Creates an instance of DeploymentIdentity class.

Method Summary

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

Reads an instance of DeploymentIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
DeploymentIdentityType type()

Get the type property: The identity type.

Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The set of user assigned identities associated with the resource.

DeploymentIdentity withType(DeploymentIdentityType type)

Set the type property: The identity type.

DeploymentIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The set of user assigned identities associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

DeploymentIdentity

public DeploymentIdentity()

Creates an instance of DeploymentIdentity class.

Method Details

fromJson

public static DeploymentIdentity fromJson(JsonReader jsonReader)

Reads an instance of DeploymentIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DeploymentIdentityType type()

Get the type property: The identity type.

Returns:

the type value.

userAssignedIdentities

public Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The set of user assigned identities associated with the resource.

Returns:

the userAssignedIdentities value.

withType

public DeploymentIdentity withType(DeploymentIdentityType type)

Set the type property: The identity type.

Parameters:

type - the type value to set.

Returns:

the DeploymentIdentity object itself.

withUserAssignedIdentities

public DeploymentIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The set of user assigned identities associated with the resource.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the DeploymentIdentity object itself.

Applies to