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

com.pulumi.azurenative.connectedvmwarevsphere.inputs.OsProfileForVMInstanceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.connectedvmwarevsphere.inputs;

import com.pulumi.azurenative.connectedvmwarevsphere.enums.OsType;
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;


/**
 * Specifies the operating system settings for the virtual machine.
 * 
 */
public final class OsProfileForVMInstanceArgs extends com.pulumi.resources.ResourceArgs {

    public static final OsProfileForVMInstanceArgs Empty = new OsProfileForVMInstanceArgs();

    /**
     * Sets administrator password.
     * 
     */
    @Import(name="adminPassword")
    private @Nullable Output adminPassword;

    /**
     * @return Sets administrator password.
     * 
     */
    public Optional> adminPassword() {
        return Optional.ofNullable(this.adminPassword);
    }

    /**
     * Gets or sets administrator username.
     * 
     */
    @Import(name="adminUsername")
    private @Nullable Output adminUsername;

    /**
     * @return Gets or sets administrator username.
     * 
     */
    public Optional> adminUsername() {
        return Optional.ofNullable(this.adminUsername);
    }

    /**
     * Gets or sets computer name.
     * 
     */
    @Import(name="computerName")
    private @Nullable Output computerName;

    /**
     * @return Gets or sets computer name.
     * 
     */
    public Optional> computerName() {
        return Optional.ofNullable(this.computerName);
    }

    /**
     * Gets or sets the guestId.
     * 
     */
    @Import(name="guestId")
    private @Nullable Output guestId;

    /**
     * @return Gets or sets the guestId.
     * 
     */
    public Optional> guestId() {
        return Optional.ofNullable(this.guestId);
    }

    /**
     * Gets or sets the type of the os.
     * 
     */
    @Import(name="osType")
    private @Nullable Output> osType;

    /**
     * @return Gets or sets the type of the os.
     * 
     */
    public Optional>> osType() {
        return Optional.ofNullable(this.osType);
    }

    private OsProfileForVMInstanceArgs() {}

    private OsProfileForVMInstanceArgs(OsProfileForVMInstanceArgs $) {
        this.adminPassword = $.adminPassword;
        this.adminUsername = $.adminUsername;
        this.computerName = $.computerName;
        this.guestId = $.guestId;
        this.osType = $.osType;
    }

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

    public static final class Builder {
        private OsProfileForVMInstanceArgs $;

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

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

        /**
         * @param adminPassword Sets administrator password.
         * 
         * @return builder
         * 
         */
        public Builder adminPassword(@Nullable Output adminPassword) {
            $.adminPassword = adminPassword;
            return this;
        }

        /**
         * @param adminPassword Sets administrator password.
         * 
         * @return builder
         * 
         */
        public Builder adminPassword(String adminPassword) {
            return adminPassword(Output.of(adminPassword));
        }

        /**
         * @param adminUsername Gets or sets administrator username.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(@Nullable Output adminUsername) {
            $.adminUsername = adminUsername;
            return this;
        }

        /**
         * @param adminUsername Gets or sets administrator username.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(String adminUsername) {
            return adminUsername(Output.of(adminUsername));
        }

        /**
         * @param computerName Gets or sets computer name.
         * 
         * @return builder
         * 
         */
        public Builder computerName(@Nullable Output computerName) {
            $.computerName = computerName;
            return this;
        }

        /**
         * @param computerName Gets or sets computer name.
         * 
         * @return builder
         * 
         */
        public Builder computerName(String computerName) {
            return computerName(Output.of(computerName));
        }

        /**
         * @param guestId Gets or sets the guestId.
         * 
         * @return builder
         * 
         */
        public Builder guestId(@Nullable Output guestId) {
            $.guestId = guestId;
            return this;
        }

        /**
         * @param guestId Gets or sets the guestId.
         * 
         * @return builder
         * 
         */
        public Builder guestId(String guestId) {
            return guestId(Output.of(guestId));
        }

        /**
         * @param osType Gets or sets the type of the os.
         * 
         * @return builder
         * 
         */
        public Builder osType(@Nullable Output> osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType Gets or sets the type of the os.
         * 
         * @return builder
         * 
         */
        public Builder osType(Either osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param osType Gets or sets the type of the os.
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Either.ofLeft(osType));
        }

        /**
         * @param osType Gets or sets the type of the os.
         * 
         * @return builder
         * 
         */
        public Builder osType(OsType osType) {
            return osType(Either.ofRight(osType));
        }

        public OsProfileForVMInstanceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy