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

package com.azure.resourcemanager.hybridcontainerservice.models;

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

/** The agentPool resource provisioning status definition. */
@Fluent
public class AgentPoolProvisioningStatus {
    /*
     * The provisioningState property.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private AgentPoolProvisioningState provisioningState;

    /*
     * HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool
     */
    @JsonProperty(value = "status")
    private AgentPoolProvisioningStatusStatus status;

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

    /**
     * Get the provisioningState property: The provisioningState property.
     *
     * @return the provisioningState value.
     */
    public AgentPoolProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the status property: HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool.
     *
     * @return the status value.
     */
    public AgentPoolProvisioningStatusStatus status() {
        return this.status;
    }

    /**
     * Set the status property: HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool.
     *
     * @param status the status value to set.
     * @return the AgentPoolProvisioningStatus object itself.
     */
    public AgentPoolProvisioningStatus withStatus(AgentPoolProvisioningStatusStatus status) {
        this.status = status;
        return this;
    }

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