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

com.pulumi.azurenative.cloudngfw.inputs.PlanDataArgs 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.cloudngfw.inputs;

import com.pulumi.azurenative.cloudngfw.enums.BillingCycle;
import com.pulumi.azurenative.cloudngfw.enums.UsageType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Billing plan information.
 * 
 */
public final class PlanDataArgs extends com.pulumi.resources.ResourceArgs {

    public static final PlanDataArgs Empty = new PlanDataArgs();

    /**
     * different billing cycles like MONTHLY/WEEKLY
     * 
     */
    @Import(name="billingCycle", required=true)
    private Output> billingCycle;

    /**
     * @return different billing cycles like MONTHLY/WEEKLY
     * 
     */
    public Output> billingCycle() {
        return this.billingCycle;
    }

    /**
     * plan id as published by Liftr.PAN
     * 
     */
    @Import(name="planId", required=true)
    private Output planId;

    /**
     * @return plan id as published by Liftr.PAN
     * 
     */
    public Output planId() {
        return this.planId;
    }

    /**
     * different usage type like PAYG/COMMITTED
     * 
     */
    @Import(name="usageType")
    private @Nullable Output> usageType;

    /**
     * @return different usage type like PAYG/COMMITTED
     * 
     */
    public Optional>> usageType() {
        return Optional.ofNullable(this.usageType);
    }

    private PlanDataArgs() {}

    private PlanDataArgs(PlanDataArgs $) {
        this.billingCycle = $.billingCycle;
        this.planId = $.planId;
        this.usageType = $.usageType;
    }

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

    public static final class Builder {
        private PlanDataArgs $;

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

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

        /**
         * @param billingCycle different billing cycles like MONTHLY/WEEKLY
         * 
         * @return builder
         * 
         */
        public Builder billingCycle(Output> billingCycle) {
            $.billingCycle = billingCycle;
            return this;
        }

        /**
         * @param billingCycle different billing cycles like MONTHLY/WEEKLY
         * 
         * @return builder
         * 
         */
        public Builder billingCycle(Either billingCycle) {
            return billingCycle(Output.of(billingCycle));
        }

        /**
         * @param billingCycle different billing cycles like MONTHLY/WEEKLY
         * 
         * @return builder
         * 
         */
        public Builder billingCycle(String billingCycle) {
            return billingCycle(Either.ofLeft(billingCycle));
        }

        /**
         * @param billingCycle different billing cycles like MONTHLY/WEEKLY
         * 
         * @return builder
         * 
         */
        public Builder billingCycle(BillingCycle billingCycle) {
            return billingCycle(Either.ofRight(billingCycle));
        }

        /**
         * @param planId plan id as published by Liftr.PAN
         * 
         * @return builder
         * 
         */
        public Builder planId(Output planId) {
            $.planId = planId;
            return this;
        }

        /**
         * @param planId plan id as published by Liftr.PAN
         * 
         * @return builder
         * 
         */
        public Builder planId(String planId) {
            return planId(Output.of(planId));
        }

        /**
         * @param usageType different usage type like PAYG/COMMITTED
         * 
         * @return builder
         * 
         */
        public Builder usageType(@Nullable Output> usageType) {
            $.usageType = usageType;
            return this;
        }

        /**
         * @param usageType different usage type like PAYG/COMMITTED
         * 
         * @return builder
         * 
         */
        public Builder usageType(Either usageType) {
            return usageType(Output.of(usageType));
        }

        /**
         * @param usageType different usage type like PAYG/COMMITTED
         * 
         * @return builder
         * 
         */
        public Builder usageType(String usageType) {
            return usageType(Either.ofLeft(usageType));
        }

        /**
         * @param usageType different usage type like PAYG/COMMITTED
         * 
         * @return builder
         * 
         */
        public Builder usageType(UsageType usageType) {
            return usageType(Either.ofRight(usageType));
        }

        public PlanDataArgs build() {
            if ($.billingCycle == null) {
                throw new MissingRequiredPropertyException("PlanDataArgs", "billingCycle");
            }
            if ($.planId == null) {
                throw new MissingRequiredPropertyException("PlanDataArgs", "planId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy