All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.containerservice.inputs.PowerStateArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.containerservice.inputs;

import com.pulumi.azurenative.containerservice.enums.Code;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the Power State of the cluster
 * 
 */
public final class PowerStateArgs extends com.pulumi.resources.ResourceArgs {

    public static final PowerStateArgs Empty = new PowerStateArgs();

    /**
     * Tells whether the cluster is Running or Stopped
     * 
     */
    @Import(name="code")
    private @Nullable Output> code;

    /**
     * @return Tells whether the cluster is Running or Stopped
     * 
     */
    public Optional>> code() {
        return Optional.ofNullable(this.code);
    }

    private PowerStateArgs() {}

    private PowerStateArgs(PowerStateArgs $) {
        this.code = $.code;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PowerStateArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PowerStateArgs $;

        public Builder() {
            $ = new PowerStateArgs();
        }

        public Builder(PowerStateArgs defaults) {
            $ = new PowerStateArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param code Tells whether the cluster is Running or Stopped
         * 
         * @return builder
         * 
         */
        public Builder code(@Nullable Output> code) {
            $.code = code;
            return this;
        }

        /**
         * @param code Tells whether the cluster is Running or Stopped
         * 
         * @return builder
         * 
         */
        public Builder code(Either code) {
            return code(Output.of(code));
        }

        /**
         * @param code Tells whether the cluster is Running or Stopped
         * 
         * @return builder
         * 
         */
        public Builder code(String code) {
            return code(Either.ofLeft(code));
        }

        /**
         * @param code Tells whether the cluster is Running or Stopped
         * 
         * @return builder
         * 
         */
        public Builder code(Code code) {
            return code(Either.ofRight(code));
        }

        public PowerStateArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy