com.azure.resourcemanager.managementgroups.fluent.models.ManagementGroupInfoInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-managementgroups Show documentation
Show all versions of azure-resourcemanager-managementgroups Show documentation
This package contains Microsoft Azure SDK for ManagementGroups Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Management Groups API enables consolidation of multiple
subscriptions/resources into an organizational hierarchy and centrally
manage access control, policies, alerting and reporting for those resources.
. Package tag package-2021-04.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.managementgroups.fluent.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The management group resource. */
@Fluent
public final class ManagementGroupInfoInner {
/*
* The fully qualified ID for the management group. For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* The type of the resource. For example, Microsoft.Management/managementGroups
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/*
* The name of the management group. For example, 00000000-0000-0000-0000-000000000000
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The generic properties of a management group.
*/
@JsonProperty(value = "properties")
private ManagementGroupInfoProperties innerProperties;
/** Creates an instance of ManagementGroupInfoInner class. */
public ManagementGroupInfoInner() {
}
/**
* Get the id property: The fully qualified ID for the management group. For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Get the type property: The type of the resource. For example, Microsoft.Management/managementGroups.
*
* @return the type value.
*/
public String type() {
return this.type;
}
/**
* Get the name property: The name of the management group. For example, 00000000-0000-0000-0000-000000000000.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Get the innerProperties property: The generic properties of a management group.
*
* @return the innerProperties value.
*/
private ManagementGroupInfoProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the tenantId property: The AAD Tenant ID associated with the management group. For example,
* 00000000-0000-0000-0000-000000000000.
*
* @return the tenantId value.
*/
public String tenantId() {
return this.innerProperties() == null ? null : this.innerProperties().tenantId();
}
/**
* Set the tenantId property: The AAD Tenant ID associated with the management group. For example,
* 00000000-0000-0000-0000-000000000000.
*
* @param tenantId the tenantId value to set.
* @return the ManagementGroupInfoInner object itself.
*/
public ManagementGroupInfoInner withTenantId(String tenantId) {
if (this.innerProperties() == null) {
this.innerProperties = new ManagementGroupInfoProperties();
}
this.innerProperties().withTenantId(tenantId);
return this;
}
/**
* Get the displayName property: The friendly name of the management group.
*
* @return the displayName value.
*/
public String displayName() {
return this.innerProperties() == null ? null : this.innerProperties().displayName();
}
/**
* Set the displayName property: The friendly name of the management group.
*
* @param displayName the displayName value to set.
* @return the ManagementGroupInfoInner object itself.
*/
public ManagementGroupInfoInner withDisplayName(String displayName) {
if (this.innerProperties() == null) {
this.innerProperties = new ManagementGroupInfoProperties();
}
this.innerProperties().withDisplayName(displayName);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}