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

com.pulumi.azurenative.offazure.HypervHostControllerArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show 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.offazure;

import com.pulumi.azurenative.offazure.enums.ProvisioningState;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HypervHostControllerArgs Empty = new HypervHostControllerArgs();

    /**
     * Gets or sets the FQDN/IPAddress of the Hyper-V host.
     * 
     */
    @Import(name="fqdn")
    private @Nullable Output fqdn;

    /**
     * @return Gets or sets the FQDN/IPAddress of the Hyper-V host.
     * 
     */
    public Optional> fqdn() {
        return Optional.ofNullable(this.fqdn);
    }

    /**
     *  Host name
     * 
     */
    @Import(name="hostName")
    private @Nullable Output hostName;

    /**
     * @return  Host name
     * 
     */
    public Optional> hostName() {
        return Optional.ofNullable(this.hostName);
    }

    /**
     * The status of the last operation.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output> provisioningState;

    /**
     * @return The status of the last operation.
     * 
     */
    public Optional>> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

    /**
     * Gets or sets the run as account ID of the Hyper-V host.
     * 
     */
    @Import(name="runAsAccountId")
    private @Nullable Output runAsAccountId;

    /**
     * @return Gets or sets the run as account ID of the Hyper-V host.
     * 
     */
    public Optional> runAsAccountId() {
        return Optional.ofNullable(this.runAsAccountId);
    }

    /**
     * Site name
     * 
     */
    @Import(name="siteName", required=true)
    private Output siteName;

    /**
     * @return Site name
     * 
     */
    public Output siteName() {
        return this.siteName;
    }

    private HypervHostControllerArgs() {}

    private HypervHostControllerArgs(HypervHostControllerArgs $) {
        this.fqdn = $.fqdn;
        this.hostName = $.hostName;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
        this.runAsAccountId = $.runAsAccountId;
        this.siteName = $.siteName;
    }

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

    public static final class Builder {
        private HypervHostControllerArgs $;

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

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

        /**
         * @param fqdn Gets or sets the FQDN/IPAddress of the Hyper-V host.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(@Nullable Output fqdn) {
            $.fqdn = fqdn;
            return this;
        }

        /**
         * @param fqdn Gets or sets the FQDN/IPAddress of the Hyper-V host.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(String fqdn) {
            return fqdn(Output.of(fqdn));
        }

        /**
         * @param hostName  Host name
         * 
         * @return builder
         * 
         */
        public Builder hostName(@Nullable Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName  Host name
         * 
         * @return builder
         * 
         */
        public Builder hostName(String hostName) {
            return hostName(Output.of(hostName));
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output> provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(Either provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Either.ofLeft(provisioningState));
        }

        /**
         * @param provisioningState The status of the last operation.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(ProvisioningState provisioningState) {
            return provisioningState(Either.ofRight(provisioningState));
        }

        /**
         * @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 runAsAccountId Gets or sets the run as account ID of the Hyper-V host.
         * 
         * @return builder
         * 
         */
        public Builder runAsAccountId(@Nullable Output runAsAccountId) {
            $.runAsAccountId = runAsAccountId;
            return this;
        }

        /**
         * @param runAsAccountId Gets or sets the run as account ID of the Hyper-V host.
         * 
         * @return builder
         * 
         */
        public Builder runAsAccountId(String runAsAccountId) {
            return runAsAccountId(Output.of(runAsAccountId));
        }

        /**
         * @param siteName Site name
         * 
         * @return builder
         * 
         */
        public Builder siteName(Output siteName) {
            $.siteName = siteName;
            return this;
        }

        /**
         * @param siteName Site name
         * 
         * @return builder
         * 
         */
        public Builder siteName(String siteName) {
            return siteName(Output.of(siteName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy