// 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;

/** Status of the addon. */
@Fluent
public final class AddonStatus {
    /*
     * ErrorMessage will be set in the event that there is a terminal problem reconciling the AddOn and will contain a
     * more verbose string suitable for logging and human consumption.
     */
    @JsonProperty(value = "errorMessage")
    private String errorMessage;

    /*
     * Phase represents the current phase of cluster actuation. E.g. Pending, Running, Terminating, Failed etc.
     */
    @JsonProperty(value = "phase")
    private String phase;

    /*
     * The ready property.
     */
    @JsonProperty(value = "ready")
    private Boolean ready;

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

    /**
     * Get the errorMessage property: ErrorMessage will be set in the event that there is a terminal problem reconciling
     * the AddOn and will contain a more verbose string suitable for logging and human consumption.
     *
     * @return the errorMessage value.
     */
    public String errorMessage() {
        return this.errorMessage;
    }

    /**
     * Set the errorMessage property: ErrorMessage will be set in the event that there is a terminal problem reconciling
     * the AddOn and will contain a more verbose string suitable for logging and human consumption.
     *
     * @param errorMessage the errorMessage value to set.
     * @return the AddonStatus object itself.
     */
    public AddonStatus withErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
        return this;
    }

    /**
     * Get the phase property: Phase represents the current phase of cluster actuation. E.g. Pending, Running,
     * Terminating, Failed etc.
     *
     * @return the phase value.
     */
    public String phase() {
        return this.phase;
    }

    /**
     * Set the phase property: Phase represents the current phase of cluster actuation. E.g. Pending, Running,
     * Terminating, Failed etc.
     *
     * @param phase the phase value to set.
     * @return the AddonStatus object itself.
     */
    public AddonStatus withPhase(String phase) {
        this.phase = phase;
        return this;
    }

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

    /**
     * Set the ready property: The ready property.
     *
     * @param ready the ready value to set.
     * @return the AddonStatus object itself.
     */
    public AddonStatus withReady(Boolean ready) {
        this.ready = ready;
        return this;
    }

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