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

package com.azure.resourcemanager.containerservice.models;

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

/** Describes the Power State of the cluster. */
@Fluent
public final class PowerState {
    /*
     * Tells whether the cluster is Running or Stopped
     */
    @JsonProperty(value = "code")
    private Code code;

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

    /**
     * Get the code property: Tells whether the cluster is Running or Stopped.
     *
     * @return the code value.
     */
    public Code code() {
        return this.code;
    }

    /**
     * Set the code property: Tells whether the cluster is Running or Stopped.
     *
     * @param code the code value to set.
     * @return the PowerState object itself.
     */
    public PowerState withCode(Code code) {
        this.code = code;
        return this;
    }

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