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

com.pulumi.azurenative.providerhub.inputs.SkuCostArgs 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.providerhub.inputs;

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


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

    public static final SkuCostArgs Empty = new SkuCostArgs();

    @Import(name="extendedUnit")
    private @Nullable Output extendedUnit;

    public Optional> extendedUnit() {
        return Optional.ofNullable(this.extendedUnit);
    }

    @Import(name="meterId", required=true)
    private Output meterId;

    public Output meterId() {
        return this.meterId;
    }

    @Import(name="quantity")
    private @Nullable Output quantity;

    public Optional> quantity() {
        return Optional.ofNullable(this.quantity);
    }

    private SkuCostArgs() {}

    private SkuCostArgs(SkuCostArgs $) {
        this.extendedUnit = $.extendedUnit;
        this.meterId = $.meterId;
        this.quantity = $.quantity;
    }

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

    public static final class Builder {
        private SkuCostArgs $;

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

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

        public Builder extendedUnit(@Nullable Output extendedUnit) {
            $.extendedUnit = extendedUnit;
            return this;
        }

        public Builder extendedUnit(String extendedUnit) {
            return extendedUnit(Output.of(extendedUnit));
        }

        public Builder meterId(Output meterId) {
            $.meterId = meterId;
            return this;
        }

        public Builder meterId(String meterId) {
            return meterId(Output.of(meterId));
        }

        public Builder quantity(@Nullable Output quantity) {
            $.quantity = quantity;
            return this;
        }

        public Builder quantity(Integer quantity) {
            return quantity(Output.of(quantity));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy