
com.pulumi.azurenative.management.outputs.GetManagementGroupSubscriptionResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.management.outputs;
import com.pulumi.azurenative.management.outputs.DescendantParentGroupInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetManagementGroupSubscriptionResult {
/**
* @return The friendly name of the subscription.
*
*/
private @Nullable String displayName;
/**
* @return The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001
*
*/
private String id;
/**
* @return The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000
*
*/
private String name;
/**
* @return The ID of the parent management group.
*
*/
private @Nullable DescendantParentGroupInfoResponse parent;
/**
* @return The state of the subscription.
*
*/
private @Nullable String state;
/**
* @return The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000
*
*/
private @Nullable String tenant;
/**
* @return The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions
*
*/
private String type;
private GetManagementGroupSubscriptionResult() {}
/**
* @return The friendly name of the subscription.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001
*
*/
public String id() {
return this.id;
}
/**
* @return The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000
*
*/
public String name() {
return this.name;
}
/**
* @return The ID of the parent management group.
*
*/
public Optional parent() {
return Optional.ofNullable(this.parent);
}
/**
* @return The state of the subscription.
*
*/
public Optional state() {
return Optional.ofNullable(this.state);
}
/**
* @return The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000
*
*/
public Optional tenant() {
return Optional.ofNullable(this.tenant);
}
/**
* @return The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetManagementGroupSubscriptionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String displayName;
private String id;
private String name;
private @Nullable DescendantParentGroupInfoResponse parent;
private @Nullable String state;
private @Nullable String tenant;
private String type;
public Builder() {}
public Builder(GetManagementGroupSubscriptionResult defaults) {
Objects.requireNonNull(defaults);
this.displayName = defaults.displayName;
this.id = defaults.id;
this.name = defaults.name;
this.parent = defaults.parent;
this.state = defaults.state;
this.tenant = defaults.tenant;
this.type = defaults.type;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetManagementGroupSubscriptionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetManagementGroupSubscriptionResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder parent(@Nullable DescendantParentGroupInfoResponse parent) {
this.parent = parent;
return this;
}
@CustomType.Setter
public Builder state(@Nullable String state) {
this.state = state;
return this;
}
@CustomType.Setter
public Builder tenant(@Nullable String tenant) {
this.tenant = tenant;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetManagementGroupSubscriptionResult", "type");
}
this.type = type;
return this;
}
public GetManagementGroupSubscriptionResult build() {
final var _resultValue = new GetManagementGroupSubscriptionResult();
_resultValue.displayName = displayName;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.parent = parent;
_resultValue.state = state;
_resultValue.tenant = tenant;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy