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

com.pulumi.azurenative.serialconsole.SerialPortArgs 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.serialconsole;

import com.pulumi.azurenative.serialconsole.enums.SerialPortState;
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 SerialPortArgs extends com.pulumi.resources.ResourceArgs {

    public static final SerialPortArgs Empty = new SerialPortArgs();

    /**
     * The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
     * 
     */
    @Import(name="parentResource", required=true)
    private Output parentResource;

    /**
     * @return The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
     * 
     */
    public Output parentResource() {
        return this.parentResource;
    }

    /**
     * The resource type of the parent resource.  For example: 'virtualMachines' or 'virtualMachineScaleSets'
     * 
     */
    @Import(name="parentResourceType", required=true)
    private Output parentResourceType;

    /**
     * @return The resource type of the parent resource.  For example: 'virtualMachines' or 'virtualMachineScaleSets'
     * 
     */
    public Output parentResourceType() {
        return this.parentResourceType;
    }

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

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

    /**
     * The namespace of the resource provider.
     * 
     */
    @Import(name="resourceProviderNamespace", required=true)
    private Output resourceProviderNamespace;

    /**
     * @return The namespace of the resource provider.
     * 
     */
    public Output resourceProviderNamespace() {
        return this.resourceProviderNamespace;
    }

    /**
     * The name of the serial port to create.
     * 
     */
    @Import(name="serialPort")
    private @Nullable Output serialPort;

    /**
     * @return The name of the serial port to create.
     * 
     */
    public Optional> serialPort() {
        return Optional.ofNullable(this.serialPort);
    }

    /**
     * Specifies whether the port is enabled for a serial console connection.
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return Specifies whether the port is enabled for a serial console connection.
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    private SerialPortArgs() {}

    private SerialPortArgs(SerialPortArgs $) {
        this.parentResource = $.parentResource;
        this.parentResourceType = $.parentResourceType;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceProviderNamespace = $.resourceProviderNamespace;
        this.serialPort = $.serialPort;
        this.state = $.state;
    }

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

    public static final class Builder {
        private SerialPortArgs $;

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

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

        /**
         * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder parentResource(Output parentResource) {
            $.parentResource = parentResource;
            return this;
        }

        /**
         * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder parentResource(String parentResource) {
            return parentResource(Output.of(parentResource));
        }

        /**
         * @param parentResourceType The resource type of the parent resource.  For example: 'virtualMachines' or 'virtualMachineScaleSets'
         * 
         * @return builder
         * 
         */
        public Builder parentResourceType(Output parentResourceType) {
            $.parentResourceType = parentResourceType;
            return this;
        }

        /**
         * @param parentResourceType The resource type of the parent resource.  For example: 'virtualMachines' or 'virtualMachineScaleSets'
         * 
         * @return builder
         * 
         */
        public Builder parentResourceType(String parentResourceType) {
            return parentResourceType(Output.of(parentResourceType));
        }

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

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

        /**
         * @param resourceProviderNamespace The namespace of the resource provider.
         * 
         * @return builder
         * 
         */
        public Builder resourceProviderNamespace(Output resourceProviderNamespace) {
            $.resourceProviderNamespace = resourceProviderNamespace;
            return this;
        }

        /**
         * @param resourceProviderNamespace The namespace of the resource provider.
         * 
         * @return builder
         * 
         */
        public Builder resourceProviderNamespace(String resourceProviderNamespace) {
            return resourceProviderNamespace(Output.of(resourceProviderNamespace));
        }

        /**
         * @param serialPort The name of the serial port to create.
         * 
         * @return builder
         * 
         */
        public Builder serialPort(@Nullable Output serialPort) {
            $.serialPort = serialPort;
            return this;
        }

        /**
         * @param serialPort The name of the serial port to create.
         * 
         * @return builder
         * 
         */
        public Builder serialPort(String serialPort) {
            return serialPort(Output.of(serialPort));
        }

        /**
         * @param state Specifies whether the port is enabled for a serial console connection.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Specifies whether the port is enabled for a serial console connection.
         * 
         * @return builder
         * 
         */
        public Builder state(SerialPortState state) {
            return state(Output.of(state));
        }

        public SerialPortArgs build() {
            if ($.parentResource == null) {
                throw new MissingRequiredPropertyException("SerialPortArgs", "parentResource");
            }
            if ($.parentResourceType == null) {
                throw new MissingRequiredPropertyException("SerialPortArgs", "parentResourceType");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SerialPortArgs", "resourceGroupName");
            }
            if ($.resourceProviderNamespace == null) {
                throw new MissingRequiredPropertyException("SerialPortArgs", "resourceProviderNamespace");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy