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

com.pulumi.azurenative.scvmm.VirtualMachineInstanceArgs 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.scvmm;

import com.pulumi.azurenative.scvmm.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.scvmm.inputs.HardwareProfileArgs;
import com.pulumi.azurenative.scvmm.inputs.InfrastructureProfileArgs;
import com.pulumi.azurenative.scvmm.inputs.NetworkProfileArgs;
import com.pulumi.azurenative.scvmm.inputs.OsProfileForVMInstanceArgs;
import com.pulumi.azurenative.scvmm.inputs.StorageProfileArgs;
import com.pulumi.azurenative.scvmm.inputs.VirtualMachineInstancePropertiesAvailabilitySetsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualMachineInstanceArgs Empty = new VirtualMachineInstanceArgs();

    /**
     * Availability Sets in vm.
     * 
     */
    @Import(name="availabilitySets")
    private @Nullable Output> availabilitySets;

    /**
     * @return Availability Sets in vm.
     * 
     */
    public Optional>> availabilitySets() {
        return Optional.ofNullable(this.availabilitySets);
    }

    /**
     * Gets or sets the extended location.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return Gets or sets the extended location.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * Hardware properties.
     * 
     */
    @Import(name="hardwareProfile")
    private @Nullable Output hardwareProfile;

    /**
     * @return Hardware properties.
     * 
     */
    public Optional> hardwareProfile() {
        return Optional.ofNullable(this.hardwareProfile);
    }

    /**
     * Gets the infrastructure profile.
     * 
     */
    @Import(name="infrastructureProfile")
    private @Nullable Output infrastructureProfile;

    /**
     * @return Gets the infrastructure profile.
     * 
     */
    public Optional> infrastructureProfile() {
        return Optional.ofNullable(this.infrastructureProfile);
    }

    /**
     * Network properties.
     * 
     */
    @Import(name="networkProfile")
    private @Nullable Output networkProfile;

    /**
     * @return Network properties.
     * 
     */
    public Optional> networkProfile() {
        return Optional.ofNullable(this.networkProfile);
    }

    /**
     * OS properties.
     * 
     */
    @Import(name="osProfile")
    private @Nullable Output osProfile;

    /**
     * @return OS properties.
     * 
     */
    public Optional> osProfile() {
        return Optional.ofNullable(this.osProfile);
    }

    /**
     * The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
     * 
     */
    @Import(name="resourceUri", required=true)
    private Output resourceUri;

    /**
     * @return The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
     * 
     */
    public Output resourceUri() {
        return this.resourceUri;
    }

    /**
     * Storage properties.
     * 
     */
    @Import(name="storageProfile")
    private @Nullable Output storageProfile;

    /**
     * @return Storage properties.
     * 
     */
    public Optional> storageProfile() {
        return Optional.ofNullable(this.storageProfile);
    }

    private VirtualMachineInstanceArgs() {}

    private VirtualMachineInstanceArgs(VirtualMachineInstanceArgs $) {
        this.availabilitySets = $.availabilitySets;
        this.extendedLocation = $.extendedLocation;
        this.hardwareProfile = $.hardwareProfile;
        this.infrastructureProfile = $.infrastructureProfile;
        this.networkProfile = $.networkProfile;
        this.osProfile = $.osProfile;
        this.resourceUri = $.resourceUri;
        this.storageProfile = $.storageProfile;
    }

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

    public static final class Builder {
        private VirtualMachineInstanceArgs $;

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

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

        /**
         * @param availabilitySets Availability Sets in vm.
         * 
         * @return builder
         * 
         */
        public Builder availabilitySets(@Nullable Output> availabilitySets) {
            $.availabilitySets = availabilitySets;
            return this;
        }

        /**
         * @param availabilitySets Availability Sets in vm.
         * 
         * @return builder
         * 
         */
        public Builder availabilitySets(List availabilitySets) {
            return availabilitySets(Output.of(availabilitySets));
        }

        /**
         * @param availabilitySets Availability Sets in vm.
         * 
         * @return builder
         * 
         */
        public Builder availabilitySets(VirtualMachineInstancePropertiesAvailabilitySetsArgs... availabilitySets) {
            return availabilitySets(List.of(availabilitySets));
        }

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

        /**
         * @param extendedLocation Gets or sets the extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param hardwareProfile Hardware properties.
         * 
         * @return builder
         * 
         */
        public Builder hardwareProfile(@Nullable Output hardwareProfile) {
            $.hardwareProfile = hardwareProfile;
            return this;
        }

        /**
         * @param hardwareProfile Hardware properties.
         * 
         * @return builder
         * 
         */
        public Builder hardwareProfile(HardwareProfileArgs hardwareProfile) {
            return hardwareProfile(Output.of(hardwareProfile));
        }

        /**
         * @param infrastructureProfile Gets the infrastructure profile.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureProfile(@Nullable Output infrastructureProfile) {
            $.infrastructureProfile = infrastructureProfile;
            return this;
        }

        /**
         * @param infrastructureProfile Gets the infrastructure profile.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureProfile(InfrastructureProfileArgs infrastructureProfile) {
            return infrastructureProfile(Output.of(infrastructureProfile));
        }

        /**
         * @param networkProfile Network properties.
         * 
         * @return builder
         * 
         */
        public Builder networkProfile(@Nullable Output networkProfile) {
            $.networkProfile = networkProfile;
            return this;
        }

        /**
         * @param networkProfile Network properties.
         * 
         * @return builder
         * 
         */
        public Builder networkProfile(NetworkProfileArgs networkProfile) {
            return networkProfile(Output.of(networkProfile));
        }

        /**
         * @param osProfile OS properties.
         * 
         * @return builder
         * 
         */
        public Builder osProfile(@Nullable Output osProfile) {
            $.osProfile = osProfile;
            return this;
        }

        /**
         * @param osProfile OS properties.
         * 
         * @return builder
         * 
         */
        public Builder osProfile(OsProfileForVMInstanceArgs osProfile) {
            return osProfile(Output.of(osProfile));
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(Output resourceUri) {
            $.resourceUri = resourceUri;
            return this;
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(String resourceUri) {
            return resourceUri(Output.of(resourceUri));
        }

        /**
         * @param storageProfile Storage properties.
         * 
         * @return builder
         * 
         */
        public Builder storageProfile(@Nullable Output storageProfile) {
            $.storageProfile = storageProfile;
            return this;
        }

        /**
         * @param storageProfile Storage properties.
         * 
         * @return builder
         * 
         */
        public Builder storageProfile(StorageProfileArgs storageProfile) {
            return storageProfile(Output.of(storageProfile));
        }

        public VirtualMachineInstanceArgs build() {
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("VirtualMachineInstanceArgs", "extendedLocation");
            }
            if ($.resourceUri == null) {
                throw new MissingRequiredPropertyException("VirtualMachineInstanceArgs", "resourceUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy