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

com.pulumi.azurenative.costmanagement.inputs.GetCostAllocationRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.costmanagement.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetCostAllocationRuleArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetCostAllocationRuleArgs Empty = new GetCostAllocationRuleArgs();

    /**
     * BillingAccount ID
     * 
     */
    @Import(name="billingAccountId", required=true)
    private Output billingAccountId;

    /**
     * @return BillingAccount ID
     * 
     */
    public Output billingAccountId() {
        return this.billingAccountId;
    }

    /**
     * Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
     * 
     */
    @Import(name="ruleName", required=true)
    private Output ruleName;

    /**
     * @return Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
     * 
     */
    public Output ruleName() {
        return this.ruleName;
    }

    private GetCostAllocationRuleArgs() {}

    private GetCostAllocationRuleArgs(GetCostAllocationRuleArgs $) {
        this.billingAccountId = $.billingAccountId;
        this.ruleName = $.ruleName;
    }

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

    public static final class Builder {
        private GetCostAllocationRuleArgs $;

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

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

        /**
         * @param billingAccountId BillingAccount ID
         * 
         * @return builder
         * 
         */
        public Builder billingAccountId(Output billingAccountId) {
            $.billingAccountId = billingAccountId;
            return this;
        }

        /**
         * @param billingAccountId BillingAccount ID
         * 
         * @return builder
         * 
         */
        public Builder billingAccountId(String billingAccountId) {
            return billingAccountId(Output.of(billingAccountId));
        }

        /**
         * @param ruleName Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(Output ruleName) {
            $.ruleName = ruleName;
            return this;
        }

        /**
         * @param ruleName Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(String ruleName) {
            return ruleName(Output.of(ruleName));
        }

        public GetCostAllocationRuleArgs build() {
            if ($.billingAccountId == null) {
                throw new MissingRequiredPropertyException("GetCostAllocationRuleArgs", "billingAccountId");
            }
            if ($.ruleName == null) {
                throw new MissingRequiredPropertyException("GetCostAllocationRuleArgs", "ruleName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy