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

com.pulumi.azure.devtest.inputs.WindowsVirtualMachineState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.devtest.inputs;

import com.pulumi.azure.devtest.inputs.WindowsVirtualMachineGalleryImageReferenceArgs;
import com.pulumi.azure.devtest.inputs.WindowsVirtualMachineInboundNatRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WindowsVirtualMachineState Empty = new WindowsVirtualMachineState();

    /**
     * Can this Virtual Machine be claimed by users? Defaults to `true`.
     * 
     */
    @Import(name="allowClaim")
    private @Nullable Output allowClaim;

    /**
     * @return Can this Virtual Machine be claimed by users? Defaults to `true`.
     * 
     */
    public Optional> allowClaim() {
        return Optional.ofNullable(this.allowClaim);
    }

    /**
     * Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
     * 
     */
    @Import(name="disallowPublicIpAddress")
    private @Nullable Output disallowPublicIpAddress;

    /**
     * @return Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
     * 
     */
    public Optional> disallowPublicIpAddress() {
        return Optional.ofNullable(this.disallowPublicIpAddress);
    }

    /**
     * The FQDN of the Virtual Machine.
     * 
     */
    @Import(name="fqdn")
    private @Nullable Output fqdn;

    /**
     * @return The FQDN of the Virtual Machine.
     * 
     */
    public Optional> fqdn() {
        return Optional.ofNullable(this.fqdn);
    }

    /**
     * A `gallery_image_reference` block as defined below.
     * 
     */
    @Import(name="galleryImageReference")
    private @Nullable Output galleryImageReference;

    /**
     * @return A `gallery_image_reference` block as defined below.
     * 
     */
    public Optional> galleryImageReference() {
        return Optional.ofNullable(this.galleryImageReference);
    }

    /**
     * One or more `inbound_nat_rule` blocks as defined below. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** If any `inbound_nat_rule` blocks are specified then `disallow_public_ip_address` must be set to `true`.
     * 
     */
    @Import(name="inboundNatRules")
    private @Nullable Output> inboundNatRules;

    /**
     * @return One or more `inbound_nat_rule` blocks as defined below. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** If any `inbound_nat_rule` blocks are specified then `disallow_public_ip_address` must be set to `true`.
     * 
     */
    public Optional>> inboundNatRules() {
        return Optional.ofNullable(this.inboundNatRules);
    }

    /**
     * Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="labName")
    private @Nullable Output labName;

    /**
     * @return Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> labName() {
        return Optional.ofNullable(this.labName);
    }

    /**
     * The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="labSubnetName")
    private @Nullable Output labSubnetName;

    /**
     * @return The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> labSubnetName() {
        return Optional.ofNullable(this.labSubnetName);
    }

    /**
     * The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="labVirtualNetworkId")
    private @Nullable Output labVirtualNetworkId;

    /**
     * @return The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> labVirtualNetworkId() {
        return Optional.ofNullable(this.labVirtualNetworkId);
    }

    /**
     * Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** The validation requirements for the Name change based on the `os_type` used in this Virtual Machine. For a Linux VM the name must be between 1-62 characters, and for a Windows VM the name must be between 1-15 characters. It must begin and end with a letter or number, and cannot be all numbers.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** The validation requirements for the Name change based on the `os_type` used in this Virtual Machine. For a Linux VM the name must be between 1-62 characters, and for a Windows VM the name must be between 1-15 characters. It must begin and end with a letter or number, and cannot be all numbers.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Any notes about the Virtual Machine.
     * 
     */
    @Import(name="notes")
    private @Nullable Output notes;

    /**
     * @return Any notes about the Virtual Machine.
     * 
     */
    public Optional> notes() {
        return Optional.ofNullable(this.notes);
    }

    /**
     * The Password associated with the `username` used to login to this Virtual Machine. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The Password associated with the `username` used to login to this Virtual Machine. Changing this forces a new resource to be created.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * The Machine Size to use for this Virtual Machine, such as `Standard_F2`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return The Machine Size to use for this Virtual Machine, such as `Standard_F2`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    /**
     * The type of Storage to use on this Virtual Machine. Possible values are `Standard` and `Premium`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="storageType")
    private @Nullable Output storageType;

    /**
     * @return The type of Storage to use on this Virtual Machine. Possible values are `Standard` and `Premium`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> storageType() {
        return Optional.ofNullable(this.storageType);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The unique immutable identifier of the Virtual Machine.
     * 
     */
    @Import(name="uniqueIdentifier")
    private @Nullable Output uniqueIdentifier;

    /**
     * @return The unique immutable identifier of the Virtual Machine.
     * 
     */
    public Optional> uniqueIdentifier() {
        return Optional.ofNullable(this.uniqueIdentifier);
    }

    /**
     * The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private WindowsVirtualMachineState() {}

    private WindowsVirtualMachineState(WindowsVirtualMachineState $) {
        this.allowClaim = $.allowClaim;
        this.disallowPublicIpAddress = $.disallowPublicIpAddress;
        this.fqdn = $.fqdn;
        this.galleryImageReference = $.galleryImageReference;
        this.inboundNatRules = $.inboundNatRules;
        this.labName = $.labName;
        this.labSubnetName = $.labSubnetName;
        this.labVirtualNetworkId = $.labVirtualNetworkId;
        this.location = $.location;
        this.name = $.name;
        this.notes = $.notes;
        this.password = $.password;
        this.resourceGroupName = $.resourceGroupName;
        this.size = $.size;
        this.storageType = $.storageType;
        this.tags = $.tags;
        this.uniqueIdentifier = $.uniqueIdentifier;
        this.username = $.username;
    }

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

    public static final class Builder {
        private WindowsVirtualMachineState $;

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

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

        /**
         * @param allowClaim Can this Virtual Machine be claimed by users? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder allowClaim(@Nullable Output allowClaim) {
            $.allowClaim = allowClaim;
            return this;
        }

        /**
         * @param allowClaim Can this Virtual Machine be claimed by users? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder allowClaim(Boolean allowClaim) {
            return allowClaim(Output.of(allowClaim));
        }

        /**
         * @param disallowPublicIpAddress Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder disallowPublicIpAddress(@Nullable Output disallowPublicIpAddress) {
            $.disallowPublicIpAddress = disallowPublicIpAddress;
            return this;
        }

        /**
         * @param disallowPublicIpAddress Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder disallowPublicIpAddress(Boolean disallowPublicIpAddress) {
            return disallowPublicIpAddress(Output.of(disallowPublicIpAddress));
        }

        /**
         * @param fqdn The FQDN of the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(@Nullable Output fqdn) {
            $.fqdn = fqdn;
            return this;
        }

        /**
         * @param fqdn The FQDN of the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(String fqdn) {
            return fqdn(Output.of(fqdn));
        }

        /**
         * @param galleryImageReference A `gallery_image_reference` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder galleryImageReference(@Nullable Output galleryImageReference) {
            $.galleryImageReference = galleryImageReference;
            return this;
        }

        /**
         * @param galleryImageReference A `gallery_image_reference` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder galleryImageReference(WindowsVirtualMachineGalleryImageReferenceArgs galleryImageReference) {
            return galleryImageReference(Output.of(galleryImageReference));
        }

        /**
         * @param inboundNatRules One or more `inbound_nat_rule` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** If any `inbound_nat_rule` blocks are specified then `disallow_public_ip_address` must be set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder inboundNatRules(@Nullable Output> inboundNatRules) {
            $.inboundNatRules = inboundNatRules;
            return this;
        }

        /**
         * @param inboundNatRules One or more `inbound_nat_rule` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** If any `inbound_nat_rule` blocks are specified then `disallow_public_ip_address` must be set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder inboundNatRules(List inboundNatRules) {
            return inboundNatRules(Output.of(inboundNatRules));
        }

        /**
         * @param inboundNatRules One or more `inbound_nat_rule` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** If any `inbound_nat_rule` blocks are specified then `disallow_public_ip_address` must be set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder inboundNatRules(WindowsVirtualMachineInboundNatRuleArgs... inboundNatRules) {
            return inboundNatRules(List.of(inboundNatRules));
        }

        /**
         * @param labName Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labName(@Nullable Output labName) {
            $.labName = labName;
            return this;
        }

        /**
         * @param labName Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labName(String labName) {
            return labName(Output.of(labName));
        }

        /**
         * @param labSubnetName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labSubnetName(@Nullable Output labSubnetName) {
            $.labSubnetName = labSubnetName;
            return this;
        }

        /**
         * @param labSubnetName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labSubnetName(String labSubnetName) {
            return labSubnetName(Output.of(labSubnetName));
        }

        /**
         * @param labVirtualNetworkId The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labVirtualNetworkId(@Nullable Output labVirtualNetworkId) {
            $.labVirtualNetworkId = labVirtualNetworkId;
            return this;
        }

        /**
         * @param labVirtualNetworkId The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder labVirtualNetworkId(String labVirtualNetworkId) {
            return labVirtualNetworkId(Output.of(labVirtualNetworkId));
        }

        /**
         * @param location Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** The validation requirements for the Name change based on the `os_type` used in this Virtual Machine. For a Linux VM the name must be between 1-62 characters, and for a Windows VM the name must be between 1-15 characters. It must begin and end with a letter or number, and cannot be all numbers.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** The validation requirements for the Name change based on the `os_type` used in this Virtual Machine. For a Linux VM the name must be between 1-62 characters, and for a Windows VM the name must be between 1-15 characters. It must begin and end with a letter or number, and cannot be all numbers.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notes Any notes about the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder notes(@Nullable Output notes) {
            $.notes = notes;
            return this;
        }

        /**
         * @param notes Any notes about the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder notes(String notes) {
            return notes(Output.of(notes));
        }

        /**
         * @param password The Password associated with the `username` used to login to this Virtual Machine. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The Password associated with the `username` used to login to this Virtual Machine. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param resourceGroupName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param size The Machine Size to use for this Virtual Machine, such as `Standard_F2`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size The Machine Size to use for this Virtual Machine, such as `Standard_F2`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder size(String size) {
            return size(Output.of(size));
        }

        /**
         * @param storageType The type of Storage to use on this Virtual Machine. Possible values are `Standard` and `Premium`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageType(@Nullable Output storageType) {
            $.storageType = storageType;
            return this;
        }

        /**
         * @param storageType The type of Storage to use on this Virtual Machine. Possible values are `Standard` and `Premium`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageType(String storageType) {
            return storageType(Output.of(storageType));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param uniqueIdentifier The unique immutable identifier of the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder uniqueIdentifier(@Nullable Output uniqueIdentifier) {
            $.uniqueIdentifier = uniqueIdentifier;
            return this;
        }

        /**
         * @param uniqueIdentifier The unique immutable identifier of the Virtual Machine.
         * 
         * @return builder
         * 
         */
        public Builder uniqueIdentifier(String uniqueIdentifier) {
            return uniqueIdentifier(Output.of(uniqueIdentifier));
        }

        /**
         * @param username The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public WindowsVirtualMachineState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy