com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedManagedIdentityDetails Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* User assigned managed identity details.
*/
@Fluent
public final class UserAssignedManagedIdentityDetails {
/*
* The ARM id of the assigned identity.
*/
@JsonProperty(value = "identityArmId")
private String identityArmId;
/*
* The name of the assigned identity.
*/
@JsonProperty(value = "identityName")
private String identityName;
/*
* User assigned managed identity properties
*/
@JsonProperty(value = "userAssignedIdentityProperties")
private UserAssignedIdentityProperties userAssignedIdentityProperties;
/**
* Creates an instance of UserAssignedManagedIdentityDetails class.
*/
public UserAssignedManagedIdentityDetails() {
}
/**
* Get the identityArmId property: The ARM id of the assigned identity.
*
* @return the identityArmId value.
*/
public String identityArmId() {
return this.identityArmId;
}
/**
* Set the identityArmId property: The ARM id of the assigned identity.
*
* @param identityArmId the identityArmId value to set.
* @return the UserAssignedManagedIdentityDetails object itself.
*/
public UserAssignedManagedIdentityDetails withIdentityArmId(String identityArmId) {
this.identityArmId = identityArmId;
return this;
}
/**
* Get the identityName property: The name of the assigned identity.
*
* @return the identityName value.
*/
public String identityName() {
return this.identityName;
}
/**
* Set the identityName property: The name of the assigned identity.
*
* @param identityName the identityName value to set.
* @return the UserAssignedManagedIdentityDetails object itself.
*/
public UserAssignedManagedIdentityDetails withIdentityName(String identityName) {
this.identityName = identityName;
return this;
}
/**
* Get the userAssignedIdentityProperties property: User assigned managed identity properties.
*
* @return the userAssignedIdentityProperties value.
*/
public UserAssignedIdentityProperties userAssignedIdentityProperties() {
return this.userAssignedIdentityProperties;
}
/**
* Set the userAssignedIdentityProperties property: User assigned managed identity properties.
*
* @param userAssignedIdentityProperties the userAssignedIdentityProperties value to set.
* @return the UserAssignedManagedIdentityDetails object itself.
*/
public UserAssignedManagedIdentityDetails
withUserAssignedIdentityProperties(UserAssignedIdentityProperties userAssignedIdentityProperties) {
this.userAssignedIdentityProperties = userAssignedIdentityProperties;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (userAssignedIdentityProperties() != null) {
userAssignedIdentityProperties().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy