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

com.pulumi.azurenative.billing.BillingProfileArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.billing;

import com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesArgs;
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 BillingProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final BillingProfileArgs Empty = new BillingProfileArgs();

    /**
     * The ID that uniquely identifies a billing account.
     * 
     */
    @Import(name="billingAccountName", required=true)
    private Output billingAccountName;

    /**
     * @return The ID that uniquely identifies a billing account.
     * 
     */
    public Output billingAccountName() {
        return this.billingAccountName;
    }

    /**
     * The ID that uniquely identifies a billing profile.
     * 
     */
    @Import(name="billingProfileName")
    private @Nullable Output billingProfileName;

    /**
     * @return The ID that uniquely identifies a billing profile.
     * 
     */
    public Optional> billingProfileName() {
        return Optional.ofNullable(this.billingProfileName);
    }

    /**
     * A billing profile.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return A billing profile.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private BillingProfileArgs() {}

    private BillingProfileArgs(BillingProfileArgs $) {
        this.billingAccountName = $.billingAccountName;
        this.billingProfileName = $.billingProfileName;
        this.properties = $.properties;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private BillingProfileArgs $;

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

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

        /**
         * @param billingAccountName The ID that uniquely identifies a billing account.
         * 
         * @return builder
         * 
         */
        public Builder billingAccountName(Output billingAccountName) {
            $.billingAccountName = billingAccountName;
            return this;
        }

        /**
         * @param billingAccountName The ID that uniquely identifies a billing account.
         * 
         * @return builder
         * 
         */
        public Builder billingAccountName(String billingAccountName) {
            return billingAccountName(Output.of(billingAccountName));
        }

        /**
         * @param billingProfileName The ID that uniquely identifies a billing profile.
         * 
         * @return builder
         * 
         */
        public Builder billingProfileName(@Nullable Output billingProfileName) {
            $.billingProfileName = billingProfileName;
            return this;
        }

        /**
         * @param billingProfileName The ID that uniquely identifies a billing profile.
         * 
         * @return builder
         * 
         */
        public Builder billingProfileName(String billingProfileName) {
            return billingProfileName(Output.of(billingProfileName));
        }

        /**
         * @param properties A billing profile.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties A billing profile.
         * 
         * @return builder
         * 
         */
        public Builder properties(BillingProfilePropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param tags Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy