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.sql; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonProperty;
Azure Active Directory identity configuration for a resource.
/** * Azure Active Directory identity configuration for a resource. */
public class ResourceIdentity {
The Azure Active Directory principal id.
/** * The Azure Active Directory principal id. */
@JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private UUID principalId;
The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.
/** * The identity type. Set this to 'SystemAssigned' in order to * automatically create and assign an Azure Active Directory principal for * the resource. Possible values include: 'SystemAssigned'. */
@JsonProperty(value = "type") private IdentityType type;
The Azure Active Directory tenant id.
/** * The Azure Active Directory tenant id. */
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private UUID tenantId;
Get the Azure Active Directory principal id.
Returns:the principalId value
/** * Get the Azure Active Directory principal id. * * @return the principalId value */
public UUID principalId() { return this.principalId; }
Get the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.
Returns:the type value
/** * Get the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'. * * @return the type value */
public IdentityType type() { return this.type; }
Set the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.
Params:
  • type – the type value to set
Returns:the ResourceIdentity object itself.
/** * Set the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'. * * @param type the type value to set * @return the ResourceIdentity object itself. */
public ResourceIdentity withType(IdentityType type) { this.type = type; return this; }
Get the Azure Active Directory tenant id.
Returns:the tenantId value
/** * Get the Azure Active Directory tenant id. * * @return the tenantId value */
public UUID tenantId() { return this.tenantId; } }