// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.operationsmanagement.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Plan for solution object supported by the OperationsManagement resource provider. */
@Fluent
public final class SolutionPlan {
    /*
     * name of the solution to be created. For Microsoft published solution it should be in the format of
     * solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Publisher name. For gallery solution, it is Microsoft.
     */
    @JsonProperty(value = "publisher")
    private String publisher;

    /*
     * promotionCode, Not really used now, can you left as empty
     */
    @JsonProperty(value = "promotionCode")
    private String promotionCode;

    /*
     * name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of
     * OMSGallery/<solutionType>. This is case sensitive
     */
    @JsonProperty(value = "product")
    private String product;

    /** Creates an instance of SolutionPlan class. */
    public SolutionPlan() {
    }

    /**
     * Get the name property: name of the solution to be created. For Microsoft published solution it should be in the
     * format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be
     * anything.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: name of the solution to be created. For Microsoft published solution it should be in the
     * format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be
     * anything.
     *
     * @param name the name value to set.
     * @return the SolutionPlan object itself.
     */
    public SolutionPlan withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the publisher property: Publisher name. For gallery solution, it is Microsoft.
     *
     * @return the publisher value.
     */
    public String publisher() {
        return this.publisher;
    }

    /**
     * Set the publisher property: Publisher name. For gallery solution, it is Microsoft.
     *
     * @param publisher the publisher value to set.
     * @return the SolutionPlan object itself.
     */
    public SolutionPlan withPublisher(String publisher) {
        this.publisher = publisher;
        return this;
    }

    /**
     * Get the promotionCode property: promotionCode, Not really used now, can you left as empty.
     *
     * @return the promotionCode value.
     */
    public String promotionCode() {
        return this.promotionCode;
    }

    /**
     * Set the promotionCode property: promotionCode, Not really used now, can you left as empty.
     *
     * @param promotionCode the promotionCode value to set.
     * @return the SolutionPlan object itself.
     */
    public SolutionPlan withPromotionCode(String promotionCode) {
        this.promotionCode = promotionCode;
        return this;
    }

    /**
     * Get the product property: name of the solution to enabled/add. For Microsoft published gallery solution it should
     * be in the format of OMSGallery/&lt;solutionType&gt;. This is case sensitive.
     *
     * @return the product value.
     */
    public String product() {
        return this.product;
    }

    /**
     * Set the product property: name of the solution to enabled/add. For Microsoft published gallery solution it should
     * be in the format of OMSGallery/&lt;solutionType&gt;. This is case sensitive.
     *
     * @param product the product value to set.
     * @return the SolutionPlan object itself.
     */
    public SolutionPlan withProduct(String product) {
        this.product = product;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
