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

com.pulumi.azurenative.migrate.inputs.VirtualMachineResourceSettingsArgs 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.migrate.inputs;

import com.pulumi.azurenative.migrate.enums.TargetAvailabilityZone;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Gets or sets the virtual machine resource settings.
 * 
 */
public final class VirtualMachineResourceSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualMachineResourceSettingsArgs Empty = new VirtualMachineResourceSettingsArgs();

    /**
     * The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Compute/virtualMachines'.
     * 
     */
    @Import(name="resourceType", required=true)
    private Output resourceType;

    /**
     * @return The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Compute/virtualMachines'.
     * 
     */
    public Output resourceType() {
        return this.resourceType;
    }

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

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

    /**
     * Gets or sets the target availability set id for virtual machines not in an availability set at source.
     * 
     */
    @Import(name="targetAvailabilitySetId")
    private @Nullable Output targetAvailabilitySetId;

    /**
     * @return Gets or sets the target availability set id for virtual machines not in an availability set at source.
     * 
     */
    public Optional> targetAvailabilitySetId() {
        return Optional.ofNullable(this.targetAvailabilitySetId);
    }

    /**
     * Gets or sets the target availability zone.
     * 
     */
    @Import(name="targetAvailabilityZone")
    private @Nullable Output> targetAvailabilityZone;

    /**
     * @return Gets or sets the target availability zone.
     * 
     */
    public Optional>> targetAvailabilityZone() {
        return Optional.ofNullable(this.targetAvailabilityZone);
    }

    /**
     * Gets or sets the target resource group name.
     * 
     */
    @Import(name="targetResourceGroupName")
    private @Nullable Output targetResourceGroupName;

    /**
     * @return Gets or sets the target resource group name.
     * 
     */
    public Optional> targetResourceGroupName() {
        return Optional.ofNullable(this.targetResourceGroupName);
    }

    /**
     * Gets or sets the target Resource name.
     * 
     */
    @Import(name="targetResourceName", required=true)
    private Output targetResourceName;

    /**
     * @return Gets or sets the target Resource name.
     * 
     */
    public Output targetResourceName() {
        return this.targetResourceName;
    }

    /**
     * Gets or sets the target virtual machine size.
     * 
     */
    @Import(name="targetVmSize")
    private @Nullable Output targetVmSize;

    /**
     * @return Gets or sets the target virtual machine size.
     * 
     */
    public Optional> targetVmSize() {
        return Optional.ofNullable(this.targetVmSize);
    }

    /**
     * Gets or sets user-managed identities
     * 
     */
    @Import(name="userManagedIdentities")
    private @Nullable Output> userManagedIdentities;

    /**
     * @return Gets or sets user-managed identities
     * 
     */
    public Optional>> userManagedIdentities() {
        return Optional.ofNullable(this.userManagedIdentities);
    }

    private VirtualMachineResourceSettingsArgs() {}

    private VirtualMachineResourceSettingsArgs(VirtualMachineResourceSettingsArgs $) {
        this.resourceType = $.resourceType;
        this.tags = $.tags;
        this.targetAvailabilitySetId = $.targetAvailabilitySetId;
        this.targetAvailabilityZone = $.targetAvailabilityZone;
        this.targetResourceGroupName = $.targetResourceGroupName;
        this.targetResourceName = $.targetResourceName;
        this.targetVmSize = $.targetVmSize;
        this.userManagedIdentities = $.userManagedIdentities;
    }

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

    public static final class Builder {
        private VirtualMachineResourceSettingsArgs $;

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

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

        /**
         * @param resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
         * Expected value is 'Microsoft.Compute/virtualMachines'.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
         * Expected value is 'Microsoft.Compute/virtualMachines'.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

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

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

        /**
         * @param targetAvailabilitySetId Gets or sets the target availability set id for virtual machines not in an availability set at source.
         * 
         * @return builder
         * 
         */
        public Builder targetAvailabilitySetId(@Nullable Output targetAvailabilitySetId) {
            $.targetAvailabilitySetId = targetAvailabilitySetId;
            return this;
        }

        /**
         * @param targetAvailabilitySetId Gets or sets the target availability set id for virtual machines not in an availability set at source.
         * 
         * @return builder
         * 
         */
        public Builder targetAvailabilitySetId(String targetAvailabilitySetId) {
            return targetAvailabilitySetId(Output.of(targetAvailabilitySetId));
        }

        /**
         * @param targetAvailabilityZone Gets or sets the target availability zone.
         * 
         * @return builder
         * 
         */
        public Builder targetAvailabilityZone(@Nullable Output> targetAvailabilityZone) {
            $.targetAvailabilityZone = targetAvailabilityZone;
            return this;
        }

        /**
         * @param targetAvailabilityZone Gets or sets the target availability zone.
         * 
         * @return builder
         * 
         */
        public Builder targetAvailabilityZone(Either targetAvailabilityZone) {
            return targetAvailabilityZone(Output.of(targetAvailabilityZone));
        }

        /**
         * @param targetAvailabilityZone Gets or sets the target availability zone.
         * 
         * @return builder
         * 
         */
        public Builder targetAvailabilityZone(String targetAvailabilityZone) {
            return targetAvailabilityZone(Either.ofLeft(targetAvailabilityZone));
        }

        /**
         * @param targetAvailabilityZone Gets or sets the target availability zone.
         * 
         * @return builder
         * 
         */
        public Builder targetAvailabilityZone(TargetAvailabilityZone targetAvailabilityZone) {
            return targetAvailabilityZone(Either.ofRight(targetAvailabilityZone));
        }

        /**
         * @param targetResourceGroupName Gets or sets the target resource group name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceGroupName(@Nullable Output targetResourceGroupName) {
            $.targetResourceGroupName = targetResourceGroupName;
            return this;
        }

        /**
         * @param targetResourceGroupName Gets or sets the target resource group name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceGroupName(String targetResourceGroupName) {
            return targetResourceGroupName(Output.of(targetResourceGroupName));
        }

        /**
         * @param targetResourceName Gets or sets the target Resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceName(Output targetResourceName) {
            $.targetResourceName = targetResourceName;
            return this;
        }

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

        /**
         * @param targetVmSize Gets or sets the target virtual machine size.
         * 
         * @return builder
         * 
         */
        public Builder targetVmSize(@Nullable Output targetVmSize) {
            $.targetVmSize = targetVmSize;
            return this;
        }

        /**
         * @param targetVmSize Gets or sets the target virtual machine size.
         * 
         * @return builder
         * 
         */
        public Builder targetVmSize(String targetVmSize) {
            return targetVmSize(Output.of(targetVmSize));
        }

        /**
         * @param userManagedIdentities Gets or sets user-managed identities
         * 
         * @return builder
         * 
         */
        public Builder userManagedIdentities(@Nullable Output> userManagedIdentities) {
            $.userManagedIdentities = userManagedIdentities;
            return this;
        }

        /**
         * @param userManagedIdentities Gets or sets user-managed identities
         * 
         * @return builder
         * 
         */
        public Builder userManagedIdentities(List userManagedIdentities) {
            return userManagedIdentities(Output.of(userManagedIdentities));
        }

        /**
         * @param userManagedIdentities Gets or sets user-managed identities
         * 
         * @return builder
         * 
         */
        public Builder userManagedIdentities(String... userManagedIdentities) {
            return userManagedIdentities(List.of(userManagedIdentities));
        }

        public VirtualMachineResourceSettingsArgs build() {
            $.resourceType = Codegen.stringProp("resourceType").output().arg($.resourceType).require();
            if ($.targetResourceName == null) {
                throw new MissingRequiredPropertyException("VirtualMachineResourceSettingsArgs", "targetResourceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy