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

com.pulumi.azurenative.standbypool.StandbyVirtualMachinePoolArgs Maven / Gradle / Ivy

The newest version!
// *** 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.standbypool;

import com.pulumi.azurenative.standbypool.enums.VirtualMachineState;
import com.pulumi.azurenative.standbypool.inputs.StandbyVirtualMachinePoolElasticityProfileArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class StandbyVirtualMachinePoolArgs extends com.pulumi.resources.ResourceArgs {

    public static final StandbyVirtualMachinePoolArgs Empty = new StandbyVirtualMachinePoolArgs();

    /**
     * Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to.
     * 
     */
    @Import(name="attachedVirtualMachineScaleSetId")
    private @Nullable Output attachedVirtualMachineScaleSetId;

    /**
     * @return Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to.
     * 
     */
    public Optional> attachedVirtualMachineScaleSetId() {
        return Optional.ofNullable(this.attachedVirtualMachineScaleSetId);
    }

    /**
     * Specifies the elasticity profile of the standby virtual machine pools.
     * 
     */
    @Import(name="elasticityProfile")
    private @Nullable Output elasticityProfile;

    /**
     * @return Specifies the elasticity profile of the standby virtual machine pools.
     * 
     */
    public Optional> elasticityProfile() {
        return Optional.ofNullable(this.elasticityProfile);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of the standby virtual machine pool
     * 
     */
    @Import(name="standbyVirtualMachinePoolName")
    private @Nullable Output standbyVirtualMachinePoolName;

    /**
     * @return Name of the standby virtual machine pool
     * 
     */
    public Optional> standbyVirtualMachinePoolName() {
        return Optional.ofNullable(this.standbyVirtualMachinePoolName);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies the desired state of virtual machines in the pool.
     * 
     */
    @Import(name="virtualMachineState", required=true)
    private Output> virtualMachineState;

    /**
     * @return Specifies the desired state of virtual machines in the pool.
     * 
     */
    public Output> virtualMachineState() {
        return this.virtualMachineState;
    }

    private StandbyVirtualMachinePoolArgs() {}

    private StandbyVirtualMachinePoolArgs(StandbyVirtualMachinePoolArgs $) {
        this.attachedVirtualMachineScaleSetId = $.attachedVirtualMachineScaleSetId;
        this.elasticityProfile = $.elasticityProfile;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.standbyVirtualMachinePoolName = $.standbyVirtualMachinePoolName;
        this.tags = $.tags;
        this.virtualMachineState = $.virtualMachineState;
    }

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

    public static final class Builder {
        private StandbyVirtualMachinePoolArgs $;

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

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

        /**
         * @param attachedVirtualMachineScaleSetId Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to.
         * 
         * @return builder
         * 
         */
        public Builder attachedVirtualMachineScaleSetId(@Nullable Output attachedVirtualMachineScaleSetId) {
            $.attachedVirtualMachineScaleSetId = attachedVirtualMachineScaleSetId;
            return this;
        }

        /**
         * @param attachedVirtualMachineScaleSetId Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to.
         * 
         * @return builder
         * 
         */
        public Builder attachedVirtualMachineScaleSetId(String attachedVirtualMachineScaleSetId) {
            return attachedVirtualMachineScaleSetId(Output.of(attachedVirtualMachineScaleSetId));
        }

        /**
         * @param elasticityProfile Specifies the elasticity profile of the standby virtual machine pools.
         * 
         * @return builder
         * 
         */
        public Builder elasticityProfile(@Nullable Output elasticityProfile) {
            $.elasticityProfile = elasticityProfile;
            return this;
        }

        /**
         * @param elasticityProfile Specifies the elasticity profile of the standby virtual machine pools.
         * 
         * @return builder
         * 
         */
        public Builder elasticityProfile(StandbyVirtualMachinePoolElasticityProfileArgs elasticityProfile) {
            return elasticityProfile(Output.of(elasticityProfile));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
         * 
         * @return builder
         * 
         */
        public Builder standbyVirtualMachinePoolName(@Nullable Output standbyVirtualMachinePoolName) {
            $.standbyVirtualMachinePoolName = standbyVirtualMachinePoolName;
            return this;
        }

        /**
         * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
         * 
         * @return builder
         * 
         */
        public Builder standbyVirtualMachinePoolName(String standbyVirtualMachinePoolName) {
            return standbyVirtualMachinePoolName(Output.of(standbyVirtualMachinePoolName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param virtualMachineState Specifies the desired state of virtual machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineState(Output> virtualMachineState) {
            $.virtualMachineState = virtualMachineState;
            return this;
        }

        /**
         * @param virtualMachineState Specifies the desired state of virtual machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineState(Either virtualMachineState) {
            return virtualMachineState(Output.of(virtualMachineState));
        }

        /**
         * @param virtualMachineState Specifies the desired state of virtual machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineState(String virtualMachineState) {
            return virtualMachineState(Either.ofLeft(virtualMachineState));
        }

        /**
         * @param virtualMachineState Specifies the desired state of virtual machines in the pool.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineState(VirtualMachineState virtualMachineState) {
            return virtualMachineState(Either.ofRight(virtualMachineState));
        }

        public StandbyVirtualMachinePoolArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("StandbyVirtualMachinePoolArgs", "resourceGroupName");
            }
            if ($.virtualMachineState == null) {
                throw new MissingRequiredPropertyException("StandbyVirtualMachinePoolArgs", "virtualMachineState");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy