All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.management.outputs.GetManagementGroupResult 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.ManagementGroupChildInfoResponse;
import com.pulumi.azurenative.management.outputs.ManagementGroupDetailsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetManagementGroupResult {
    /**
     * @return The list of children.
     * 
     */
    private @Nullable List children;
    /**
     * @return The details of a management group.
     * 
     */
    private @Nullable ManagementGroupDetailsResponse details;
    /**
     * @return The friendly name of the management group.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return The fully qualified ID for the management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
     * 
     */
    private String id;
    /**
     * @return The name of the management group. For example, 00000000-0000-0000-0000-000000000000
     * 
     */
    private String name;
    /**
     * @return The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
     * 
     */
    private @Nullable String tenantId;
    /**
     * @return The type of the resource.  For example, Microsoft.Management/managementGroups
     * 
     */
    private String type;

    private GetManagementGroupResult() {}
    /**
     * @return The list of children.
     * 
     */
    public List children() {
        return this.children == null ? List.of() : this.children;
    }
    /**
     * @return The details of a management group.
     * 
     */
    public Optional details() {
        return Optional.ofNullable(this.details);
    }
    /**
     * @return The friendly name of the management group.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return The fully qualified ID for the management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the management group. For example, 00000000-0000-0000-0000-000000000000
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
     * 
     */
    public Optional tenantId() {
        return Optional.ofNullable(this.tenantId);
    }
    /**
     * @return The type of the resource.  For example, Microsoft.Management/managementGroups
     * 
     */
    public String type() {
        return this.type;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetManagementGroupResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List children;
        private @Nullable ManagementGroupDetailsResponse details;
        private @Nullable String displayName;
        private String id;
        private String name;
        private @Nullable String tenantId;
        private String type;
        public Builder() {}
        public Builder(GetManagementGroupResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.children = defaults.children;
    	      this.details = defaults.details;
    	      this.displayName = defaults.displayName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.tenantId = defaults.tenantId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder children(@Nullable List children) {

            this.children = children;
            return this;
        }
        public Builder children(ManagementGroupChildInfoResponse... children) {
            return children(List.of(children));
        }
        @CustomType.Setter
        public Builder details(@Nullable ManagementGroupDetailsResponse details) {

            this.details = details;
            return this;
        }
        @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("GetManagementGroupResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetManagementGroupResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(@Nullable String tenantId) {

            this.tenantId = tenantId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetManagementGroupResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetManagementGroupResult build() {
            final var _resultValue = new GetManagementGroupResult();
            _resultValue.children = children;
            _resultValue.details = details;
            _resultValue.displayName = displayName;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.tenantId = tenantId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy