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

com.pulumi.azurenative.costmanagement.MarkupRuleArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.costmanagement.inputs.CustomerMetadataArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MarkupRuleArgs Empty = new MarkupRuleArgs();

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

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

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

    /**
     * @return BillingProfile ID
     * 
     */
    public Output billingProfileId() {
        return this.billingProfileId;
    }

    /**
     * Customer information for the markup rule.
     * 
     */
    @Import(name="customerDetails", required=true)
    private Output customerDetails;

    /**
     * @return Customer information for the markup rule.
     * 
     */
    public Output customerDetails() {
        return this.customerDetails;
    }

    /**
     * The description of the markup rule.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the markup rule.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
     * 
     */
    @Import(name="eTag")
    private @Nullable Output eTag;

    /**
     * @return eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
     * 
     */
    public Optional> eTag() {
        return Optional.ofNullable(this.eTag);
    }

    /**
     * Ending date of the markup rule.
     * 
     */
    @Import(name="endDate")
    private @Nullable Output endDate;

    /**
     * @return Ending date of the markup rule.
     * 
     */
    public Optional> endDate() {
        return Optional.ofNullable(this.endDate);
    }

    /**
     * Markup rule name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Markup rule name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The markup percentage of the rule.
     * 
     */
    @Import(name="percentage", required=true)
    private Output percentage;

    /**
     * @return The markup percentage of the rule.
     * 
     */
    public Output percentage() {
        return this.percentage;
    }

    /**
     * Starting date of the markup rule.
     * 
     */
    @Import(name="startDate", required=true)
    private Output startDate;

    /**
     * @return Starting date of the markup rule.
     * 
     */
    public Output startDate() {
        return this.startDate;
    }

    private MarkupRuleArgs() {}

    private MarkupRuleArgs(MarkupRuleArgs $) {
        this.billingAccountId = $.billingAccountId;
        this.billingProfileId = $.billingProfileId;
        this.customerDetails = $.customerDetails;
        this.description = $.description;
        this.eTag = $.eTag;
        this.endDate = $.endDate;
        this.name = $.name;
        this.percentage = $.percentage;
        this.startDate = $.startDate;
    }

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

    public static final class Builder {
        private MarkupRuleArgs $;

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

        public Builder(MarkupRuleArgs defaults) {
            $ = new MarkupRuleArgs(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 billingProfileId BillingProfile ID
         * 
         * @return builder
         * 
         */
        public Builder billingProfileId(Output billingProfileId) {
            $.billingProfileId = billingProfileId;
            return this;
        }

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

        /**
         * @param customerDetails Customer information for the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder customerDetails(Output customerDetails) {
            $.customerDetails = customerDetails;
            return this;
        }

        /**
         * @param customerDetails Customer information for the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder customerDetails(CustomerMetadataArgs customerDetails) {
            return customerDetails(Output.of(customerDetails));
        }

        /**
         * @param description The description of the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param eTag eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
         * 
         * @return builder
         * 
         */
        public Builder eTag(@Nullable Output eTag) {
            $.eTag = eTag;
            return this;
        }

        /**
         * @param eTag eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
         * 
         * @return builder
         * 
         */
        public Builder eTag(String eTag) {
            return eTag(Output.of(eTag));
        }

        /**
         * @param endDate Ending date of the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder endDate(@Nullable Output endDate) {
            $.endDate = endDate;
            return this;
        }

        /**
         * @param endDate Ending date of the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder endDate(String endDate) {
            return endDate(Output.of(endDate));
        }

        /**
         * @param name Markup rule name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Markup rule name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param percentage The markup percentage of the rule.
         * 
         * @return builder
         * 
         */
        public Builder percentage(Output percentage) {
            $.percentage = percentage;
            return this;
        }

        /**
         * @param percentage The markup percentage of the rule.
         * 
         * @return builder
         * 
         */
        public Builder percentage(Double percentage) {
            return percentage(Output.of(percentage));
        }

        /**
         * @param startDate Starting date of the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder startDate(Output startDate) {
            $.startDate = startDate;
            return this;
        }

        /**
         * @param startDate Starting date of the markup rule.
         * 
         * @return builder
         * 
         */
        public Builder startDate(String startDate) {
            return startDate(Output.of(startDate));
        }

        public MarkupRuleArgs build() {
            if ($.billingAccountId == null) {
                throw new MissingRequiredPropertyException("MarkupRuleArgs", "billingAccountId");
            }
            if ($.billingProfileId == null) {
                throw new MissingRequiredPropertyException("MarkupRuleArgs", "billingProfileId");
            }
            if ($.customerDetails == null) {
                throw new MissingRequiredPropertyException("MarkupRuleArgs", "customerDetails");
            }
            if ($.percentage == null) {
                throw new MissingRequiredPropertyException("MarkupRuleArgs", "percentage");
            }
            if ($.startDate == null) {
                throw new MissingRequiredPropertyException("MarkupRuleArgs", "startDate");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy