Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import com.fasterxml.jackson.annotation.JsonProperty;
The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.
/** * The managed identity for the disk encryption set. It should be given * permission on the key vault before it can be used to encrypt disks. */
public class EncryptionSetIdentity {
The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. Possible values include: 'SystemAssigned', 'None'.
/** * The type of Managed Identity used by the DiskEncryptionSet. Only * SystemAssigned is supported for new creations. Disk Encryption Sets can * be updated with Identity type None during migration of subscription to a * new Azure Active Directory tenant; it will cause the encrypted resources * to lose access to the keys. Possible values include: 'SystemAssigned', * 'None'. */
@JsonProperty(value = "type") private DiskEncryptionSetIdentityType type;
The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity.
/** * The object id of the Managed Identity Resource. This will be sent to the * RP from ARM via the x-ms-identity-principal-id header in the PUT request * if the resource has a systemAssigned(implicit) identity. */
@JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private String principalId;
The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity.
/** * The tenant id of the Managed Identity Resource. This will be sent to the * RP from ARM via the x-ms-client-tenant-id header in the PUT request if * the resource has a systemAssigned(implicit) identity. */
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private String tenantId;
Get the type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. Possible values include: 'SystemAssigned', 'None'.
Returns:the type value
/** * Get the type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. Possible values include: 'SystemAssigned', 'None'. * * @return the type value */
public DiskEncryptionSetIdentityType type() { return this.type; }
Set the type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. Possible values include: 'SystemAssigned', 'None'.
Params:
  • type – the type value to set
Returns:the EncryptionSetIdentity object itself.
/** * Set the type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. Possible values include: 'SystemAssigned', 'None'. * * @param type the type value to set * @return the EncryptionSetIdentity object itself. */
public EncryptionSetIdentity withType(DiskEncryptionSetIdentityType type) { this.type = type; return this; }
Get the object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity.
Returns:the principalId value
/** * Get the object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity. * * @return the principalId value */
public String principalId() { return this.principalId; }
Get the tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity.
Returns:the tenantId value
/** * Get the tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity. * * @return the tenantId value */
public String tenantId() { return this.tenantId; } }