ImageTemplateIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.imagebuilder.models.ImageTemplateIdentity

public final class ImageTemplateIdentity

Identity for the image template.

Constructor Summary

Constructor Description
ImageTemplateIdentity()

Creates an instance of ImageTemplateIdentity class.

Method Summary

Modifier and Type Method and Description
ResourceIdentityType type()

Get the type property: The type of identity used for the image template.

Map<String,UserAssignedIdentity> userAssignedIdentities()

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

void validate()

Validates the instance.

ImageTemplateIdentity withType(ResourceIdentityType type)

Set the type property: The type of identity used for the image template.

ImageTemplateIdentity 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

ImageTemplateIdentity

public ImageTemplateIdentity()

Creates an instance of ImageTemplateIdentity class.

Method Details

type

public ResourceIdentityType type()

Get the type property: The type of identity used for the image template. The type 'None' will remove any identities from the image template.

Returns:

the type value.

userAssignedIdentities

public Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withType

public ImageTemplateIdentity withType(ResourceIdentityType type)

Set the type property: The type of identity used for the image template. The type 'None' will remove any identities from the image template.

Parameters:

type - the type value to set.

Returns:

the ImageTemplateIdentity object itself.

withUserAssignedIdentities

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

Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the ImageTemplateIdentity object itself.

Applies to