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

com.pulumi.azure.management.GroupArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.azure.management;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final GroupArgs Empty = new GroupArgs();

    /**
     * A friendly name for this Management Group. If not specified, this will be the same as the `name`.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return A friendly name for this Management Group. If not specified, this will be the same as the `name`.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Parent Management Group.
     * 
     */
    @Import(name="parentManagementGroupId")
    private @Nullable Output parentManagementGroupId;

    /**
     * @return The ID of the Parent Management Group.
     * 
     */
    public Optional> parentManagementGroupId() {
        return Optional.ofNullable(this.parentManagementGroupId);
    }

    /**
     * A list of Subscription GUIDs which should be assigned to the Management Group.
     * 
     * > **Note:** To clear all Subscriptions from the Management Group set `subscription_ids` to an empty list
     * 
     */
    @Import(name="subscriptionIds")
    private @Nullable Output> subscriptionIds;

    /**
     * @return A list of Subscription GUIDs which should be assigned to the Management Group.
     * 
     * > **Note:** To clear all Subscriptions from the Management Group set `subscription_ids` to an empty list
     * 
     */
    public Optional>> subscriptionIds() {
        return Optional.ofNullable(this.subscriptionIds);
    }

    private GroupArgs() {}

    private GroupArgs(GroupArgs $) {
        this.displayName = $.displayName;
        this.name = $.name;
        this.parentManagementGroupId = $.parentManagementGroupId;
        this.subscriptionIds = $.subscriptionIds;
    }

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

    public static final class Builder {
        private GroupArgs $;

        public Builder() {
            $ = new GroupArgs();
        }

        public Builder(GroupArgs defaults) {
            $ = new GroupArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param displayName A friendly name for this Management Group. If not specified, this will be the same as the `name`.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName A friendly name for this Management Group. If not specified, this will be the same as the `name`.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param name The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parentManagementGroupId The ID of the Parent Management Group.
         * 
         * @return builder
         * 
         */
        public Builder parentManagementGroupId(@Nullable Output parentManagementGroupId) {
            $.parentManagementGroupId = parentManagementGroupId;
            return this;
        }

        /**
         * @param parentManagementGroupId The ID of the Parent Management Group.
         * 
         * @return builder
         * 
         */
        public Builder parentManagementGroupId(String parentManagementGroupId) {
            return parentManagementGroupId(Output.of(parentManagementGroupId));
        }

        /**
         * @param subscriptionIds A list of Subscription GUIDs which should be assigned to the Management Group.
         * 
         * > **Note:** To clear all Subscriptions from the Management Group set `subscription_ids` to an empty list
         * 
         * @return builder
         * 
         */
        public Builder subscriptionIds(@Nullable Output> subscriptionIds) {
            $.subscriptionIds = subscriptionIds;
            return this;
        }

        /**
         * @param subscriptionIds A list of Subscription GUIDs which should be assigned to the Management Group.
         * 
         * > **Note:** To clear all Subscriptions from the Management Group set `subscription_ids` to an empty list
         * 
         * @return builder
         * 
         */
        public Builder subscriptionIds(List subscriptionIds) {
            return subscriptionIds(Output.of(subscriptionIds));
        }

        /**
         * @param subscriptionIds A list of Subscription GUIDs which should be assigned to the Management Group.
         * 
         * > **Note:** To clear all Subscriptions from the Management Group set `subscription_ids` to an empty list
         * 
         * @return builder
         * 
         */
        public Builder subscriptionIds(String... subscriptionIds) {
            return subscriptionIds(List.of(subscriptionIds));
        }

        public GroupArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy