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

package com.azure.resourcemanager.cognitiveservices.models;

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

/** The commitment plan association. */
@Fluent
public final class CommitmentPlanAssociation {
    /*
     * The Azure resource id of the commitment plan.
     */
    @JsonProperty(value = "commitmentPlanId")
    private String commitmentPlanId;

    /*
     * The location of of the commitment plan.
     */
    @JsonProperty(value = "commitmentPlanLocation")
    private String commitmentPlanLocation;

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

    /**
     * Get the commitmentPlanId property: The Azure resource id of the commitment plan.
     *
     * @return the commitmentPlanId value.
     */
    public String commitmentPlanId() {
        return this.commitmentPlanId;
    }

    /**
     * Set the commitmentPlanId property: The Azure resource id of the commitment plan.
     *
     * @param commitmentPlanId the commitmentPlanId value to set.
     * @return the CommitmentPlanAssociation object itself.
     */
    public CommitmentPlanAssociation withCommitmentPlanId(String commitmentPlanId) {
        this.commitmentPlanId = commitmentPlanId;
        return this;
    }

    /**
     * Get the commitmentPlanLocation property: The location of of the commitment plan.
     *
     * @return the commitmentPlanLocation value.
     */
    public String commitmentPlanLocation() {
        return this.commitmentPlanLocation;
    }

    /**
     * Set the commitmentPlanLocation property: The location of of the commitment plan.
     *
     * @param commitmentPlanLocation the commitmentPlanLocation value to set.
     * @return the CommitmentPlanAssociation object itself.
     */
    public CommitmentPlanAssociation withCommitmentPlanLocation(String commitmentPlanLocation) {
        this.commitmentPlanLocation = commitmentPlanLocation;
        return this;
    }

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