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

com.pulumi.azurenative.kubernetesconfiguration.inputs.PlanArgs 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.kubernetesconfiguration.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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Plan for the resource.
 * 
 */
public final class PlanArgs extends com.pulumi.resources.ResourceArgs {

    public static final PlanArgs Empty = new PlanArgs();

    /**
     * A user defined name of the 3rd Party Artifact that is being procured.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return A user defined name of the 3rd Party Artifact that is being procured.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
     * 
     */
    @Import(name="product", required=true)
    private Output product;

    /**
     * @return The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
     * 
     */
    public Output product() {
        return this.product;
    }

    /**
     * A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
     * 
     */
    @Import(name="promotionCode")
    private @Nullable Output promotionCode;

    /**
     * @return A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
     * 
     */
    public Optional> promotionCode() {
        return Optional.ofNullable(this.promotionCode);
    }

    /**
     * The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
     * 
     */
    @Import(name="publisher", required=true)
    private Output publisher;

    /**
     * @return The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
     * 
     */
    public Output publisher() {
        return this.publisher;
    }

    /**
     * The version of the desired product/artifact.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return The version of the desired product/artifact.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private PlanArgs() {}

    private PlanArgs(PlanArgs $) {
        this.name = $.name;
        this.product = $.product;
        this.promotionCode = $.promotionCode;
        this.publisher = $.publisher;
        this.version = $.version;
    }

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

    public static final class Builder {
        private PlanArgs $;

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

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

        /**
         * @param name A user defined name of the 3rd Party Artifact that is being procured.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A user defined name of the 3rd Party Artifact that is being procured.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param product The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
         * 
         * @return builder
         * 
         */
        public Builder product(Output product) {
            $.product = product;
            return this;
        }

        /**
         * @param product The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
         * 
         * @return builder
         * 
         */
        public Builder product(String product) {
            return product(Output.of(product));
        }

        /**
         * @param promotionCode A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
         * 
         * @return builder
         * 
         */
        public Builder promotionCode(@Nullable Output promotionCode) {
            $.promotionCode = promotionCode;
            return this;
        }

        /**
         * @param promotionCode A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
         * 
         * @return builder
         * 
         */
        public Builder promotionCode(String promotionCode) {
            return promotionCode(Output.of(promotionCode));
        }

        /**
         * @param publisher The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
         * 
         * @return builder
         * 
         */
        public Builder publisher(Output publisher) {
            $.publisher = publisher;
            return this;
        }

        /**
         * @param publisher The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
         * 
         * @return builder
         * 
         */
        public Builder publisher(String publisher) {
            return publisher(Output.of(publisher));
        }

        /**
         * @param version The version of the desired product/artifact.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The version of the desired product/artifact.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public PlanArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("PlanArgs", "name");
            }
            if ($.product == null) {
                throw new MissingRequiredPropertyException("PlanArgs", "product");
            }
            if ($.publisher == null) {
                throw new MissingRequiredPropertyException("PlanArgs", "publisher");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy