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

com.pulumi.azure.core.SubscriptionArgs 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.azure.core;

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


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

    public static final SubscriptionArgs Empty = new SubscriptionArgs();

    /**
     * The Alias name for the subscription. This provider will generate a new GUID if this is not supplied. Changing this forces a new Subscription to be created.
     * 
     */
    @Import(name="alias")
    private @Nullable Output alias;

    /**
     * @return The Alias name for the subscription. This provider will generate a new GUID if this is not supplied. Changing this forces a new Subscription to be created.
     * 
     */
    public Optional> alias() {
        return Optional.ofNullable(this.alias);
    }

    /**
     * The Azure Billing Scope ID. Can be a Microsoft Customer Account Billing Scope ID, a Microsoft Partner Account Billing Scope ID or an Enrollment Billing Scope ID.
     * 
     */
    @Import(name="billingScopeId")
    private @Nullable Output billingScopeId;

    /**
     * @return The Azure Billing Scope ID. Can be a Microsoft Customer Account Billing Scope ID, a Microsoft Partner Account Billing Scope ID or an Enrollment Billing Scope ID.
     * 
     */
    public Optional> billingScopeId() {
        return Optional.ofNullable(this.billingScopeId);
    }

    /**
     * The ID of the Subscription. Changing this forces a new Subscription to be created.
     * 
     * > **NOTE:** This value can be specified only for adopting control of an existing Subscription, it cannot be used to provide a custom Subscription ID.
     * 
     * > **NOTE:** Either `billing_scope_id` or `subscription_id` has to be specified.
     * 
     */
    @Import(name="subscriptionId")
    private @Nullable Output subscriptionId;

    /**
     * @return The ID of the Subscription. Changing this forces a new Subscription to be created.
     * 
     * > **NOTE:** This value can be specified only for adopting control of an existing Subscription, it cannot be used to provide a custom Subscription ID.
     * 
     * > **NOTE:** Either `billing_scope_id` or `subscription_id` has to be specified.
     * 
     */
    public Optional> subscriptionId() {
        return Optional.ofNullable(this.subscriptionId);
    }

    /**
     * The Name of the Subscription. This is the Display Name in the portal.
     * 
     */
    @Import(name="subscriptionName", required=true)
    private Output subscriptionName;

    /**
     * @return The Name of the Subscription. This is the Display Name in the portal.
     * 
     */
    public Output subscriptionName() {
        return this.subscriptionName;
    }

    /**
     * A mapping of tags to assign to the Subscription.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the Subscription.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The workload type of the Subscription. Possible values are `Production` (default) and `DevTest`. Changing this forces a new Subscription to be created.
     * 
     */
    @Import(name="workload")
    private @Nullable Output workload;

    /**
     * @return The workload type of the Subscription. Possible values are `Production` (default) and `DevTest`. Changing this forces a new Subscription to be created.
     * 
     */
    public Optional> workload() {
        return Optional.ofNullable(this.workload);
    }

    private SubscriptionArgs() {}

    private SubscriptionArgs(SubscriptionArgs $) {
        this.alias = $.alias;
        this.billingScopeId = $.billingScopeId;
        this.subscriptionId = $.subscriptionId;
        this.subscriptionName = $.subscriptionName;
        this.tags = $.tags;
        this.workload = $.workload;
    }

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

    public static final class Builder {
        private SubscriptionArgs $;

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

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

        /**
         * @param alias The Alias name for the subscription. This provider will generate a new GUID if this is not supplied. Changing this forces a new Subscription to be created.
         * 
         * @return builder
         * 
         */
        public Builder alias(@Nullable Output alias) {
            $.alias = alias;
            return this;
        }

        /**
         * @param alias The Alias name for the subscription. This provider will generate a new GUID if this is not supplied. Changing this forces a new Subscription to be created.
         * 
         * @return builder
         * 
         */
        public Builder alias(String alias) {
            return alias(Output.of(alias));
        }

        /**
         * @param billingScopeId The Azure Billing Scope ID. Can be a Microsoft Customer Account Billing Scope ID, a Microsoft Partner Account Billing Scope ID or an Enrollment Billing Scope ID.
         * 
         * @return builder
         * 
         */
        public Builder billingScopeId(@Nullable Output billingScopeId) {
            $.billingScopeId = billingScopeId;
            return this;
        }

        /**
         * @param billingScopeId The Azure Billing Scope ID. Can be a Microsoft Customer Account Billing Scope ID, a Microsoft Partner Account Billing Scope ID or an Enrollment Billing Scope ID.
         * 
         * @return builder
         * 
         */
        public Builder billingScopeId(String billingScopeId) {
            return billingScopeId(Output.of(billingScopeId));
        }

        /**
         * @param subscriptionId The ID of the Subscription. Changing this forces a new Subscription to be created.
         * 
         * > **NOTE:** This value can be specified only for adopting control of an existing Subscription, it cannot be used to provide a custom Subscription ID.
         * 
         * > **NOTE:** Either `billing_scope_id` or `subscription_id` has to be specified.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(@Nullable Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId The ID of the Subscription. Changing this forces a new Subscription to be created.
         * 
         * > **NOTE:** This value can be specified only for adopting control of an existing Subscription, it cannot be used to provide a custom Subscription ID.
         * 
         * > **NOTE:** Either `billing_scope_id` or `subscription_id` has to be specified.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

        /**
         * @param subscriptionName The Name of the Subscription. This is the Display Name in the portal.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionName(Output subscriptionName) {
            $.subscriptionName = subscriptionName;
            return this;
        }

        /**
         * @param subscriptionName The Name of the Subscription. This is the Display Name in the portal.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionName(String subscriptionName) {
            return subscriptionName(Output.of(subscriptionName));
        }

        /**
         * @param tags A mapping of tags to assign to the Subscription.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the Subscription.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param workload The workload type of the Subscription. Possible values are `Production` (default) and `DevTest`. Changing this forces a new Subscription to be created.
         * 
         * @return builder
         * 
         */
        public Builder workload(@Nullable Output workload) {
            $.workload = workload;
            return this;
        }

        /**
         * @param workload The workload type of the Subscription. Possible values are `Production` (default) and `DevTest`. Changing this forces a new Subscription to be created.
         * 
         * @return builder
         * 
         */
        public Builder workload(String workload) {
            return workload(Output.of(workload));
        }

        public SubscriptionArgs build() {
            if ($.subscriptionName == null) {
                throw new MissingRequiredPropertyException("SubscriptionArgs", "subscriptionName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy