// *** 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.azure.operationalinsights.inputs;

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


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

    public static final AnalyticsSolutionPlanArgs Empty = new AnalyticsSolutionPlanArgs();

    @Import(name="name")
    private @Nullable Output<String> name;

    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="product", required=true)
    private Output<String> product;

    /**
     * @return The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> product() {
        return this.product;
    }

    /**
     * A promotion code to be used with the solution. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="promotionCode")
    private @Nullable Output<String> promotionCode;

    /**
     * @return A promotion code to be used with the solution. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> promotionCode() {
        return Optional.ofNullable(this.promotionCode);
    }

    /**
     * The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="publisher", required=true)
    private Output<String> publisher;

    /**
     * @return The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> publisher() {
        return this.publisher;
    }

    private AnalyticsSolutionPlanArgs() {}

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

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

    public static final class Builder {
        private AnalyticsSolutionPlanArgs $;

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

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

        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param product The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder product(Output<String> product) {
            $.product = product;
            return this;
        }

        /**
         * @param product The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder product(String product) {
            return product(Output.of(product));
        }

        /**
         * @param promotionCode A promotion code to be used with the solution. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder promotionCode(@Nullable Output<String> promotionCode) {
            $.promotionCode = promotionCode;
            return this;
        }

        /**
         * @param promotionCode A promotion code to be used with the solution. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder promotionCode(String promotionCode) {
            return promotionCode(Output.of(promotionCode));
        }

        /**
         * @param publisher The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder publisher(Output<String> publisher) {
            $.publisher = publisher;
            return this;
        }

        /**
         * @param publisher The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder publisher(String publisher) {
            return publisher(Output.of(publisher));
        }

        public AnalyticsSolutionPlanArgs build() {
            $.product = Objects.requireNonNull($.product, "expected parameter 'product' to be non-null");
            $.publisher = Objects.requireNonNull($.publisher, "expected parameter 'publisher' to be non-null");
            return $;
        }
    }

}
