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

com.pulumi.azurenative.scvmm.outputs.GetVirtualMachineInstanceResult Maven / Gradle / Ivy

// *** 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.outputs;

import com.pulumi.azurenative.scvmm.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.scvmm.outputs.HardwareProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.InfrastructureProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.NetworkProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.OsProfileForVMInstanceResponse;
import com.pulumi.azurenative.scvmm.outputs.StorageProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.SystemDataResponse;
import com.pulumi.azurenative.scvmm.outputs.VirtualMachineInstancePropertiesResponseAvailabilitySets;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetVirtualMachineInstanceResult {
    /**
     * @return Availability Sets in vm.
     * 
     */
    private @Nullable List availabilitySets;
    /**
     * @return Gets or sets the extended location.
     * 
     */
    private ExtendedLocationResponse extendedLocation;
    /**
     * @return Hardware properties.
     * 
     */
    private @Nullable HardwareProfileResponse hardwareProfile;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Gets the infrastructure profile.
     * 
     */
    private @Nullable InfrastructureProfileResponse infrastructureProfile;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Network properties.
     * 
     */
    private @Nullable NetworkProfileResponse networkProfile;
    /**
     * @return OS properties.
     * 
     */
    private @Nullable OsProfileForVMInstanceResponse osProfile;
    /**
     * @return Gets the power state of the virtual machine.
     * 
     */
    private String powerState;
    /**
     * @return Gets or sets the provisioning state.
     * 
     */
    private String provisioningState;
    /**
     * @return Storage properties.
     * 
     */
    private @Nullable StorageProfileResponse storageProfile;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetVirtualMachineInstanceResult() {}
    /**
     * @return Availability Sets in vm.
     * 
     */
    public List availabilitySets() {
        return this.availabilitySets == null ? List.of() : this.availabilitySets;
    }
    /**
     * @return Gets or sets the extended location.
     * 
     */
    public ExtendedLocationResponse extendedLocation() {
        return this.extendedLocation;
    }
    /**
     * @return Hardware properties.
     * 
     */
    public Optional hardwareProfile() {
        return Optional.ofNullable(this.hardwareProfile);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Gets the infrastructure profile.
     * 
     */
    public Optional infrastructureProfile() {
        return Optional.ofNullable(this.infrastructureProfile);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Network properties.
     * 
     */
    public Optional networkProfile() {
        return Optional.ofNullable(this.networkProfile);
    }
    /**
     * @return OS properties.
     * 
     */
    public Optional osProfile() {
        return Optional.ofNullable(this.osProfile);
    }
    /**
     * @return Gets the power state of the virtual machine.
     * 
     */
    public String powerState() {
        return this.powerState;
    }
    /**
     * @return Gets or sets the provisioning state.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Storage properties.
     * 
     */
    public Optional storageProfile() {
        return Optional.ofNullable(this.storageProfile);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetVirtualMachineInstanceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List availabilitySets;
        private ExtendedLocationResponse extendedLocation;
        private @Nullable HardwareProfileResponse hardwareProfile;
        private String id;
        private @Nullable InfrastructureProfileResponse infrastructureProfile;
        private String name;
        private @Nullable NetworkProfileResponse networkProfile;
        private @Nullable OsProfileForVMInstanceResponse osProfile;
        private String powerState;
        private String provisioningState;
        private @Nullable StorageProfileResponse storageProfile;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetVirtualMachineInstanceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.availabilitySets = defaults.availabilitySets;
    	      this.extendedLocation = defaults.extendedLocation;
    	      this.hardwareProfile = defaults.hardwareProfile;
    	      this.id = defaults.id;
    	      this.infrastructureProfile = defaults.infrastructureProfile;
    	      this.name = defaults.name;
    	      this.networkProfile = defaults.networkProfile;
    	      this.osProfile = defaults.osProfile;
    	      this.powerState = defaults.powerState;
    	      this.provisioningState = defaults.provisioningState;
    	      this.storageProfile = defaults.storageProfile;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder availabilitySets(@Nullable List availabilitySets) {

            this.availabilitySets = availabilitySets;
            return this;
        }
        public Builder availabilitySets(VirtualMachineInstancePropertiesResponseAvailabilitySets... availabilitySets) {
            return availabilitySets(List.of(availabilitySets));
        }
        @CustomType.Setter
        public Builder extendedLocation(ExtendedLocationResponse extendedLocation) {
            if (extendedLocation == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "extendedLocation");
            }
            this.extendedLocation = extendedLocation;
            return this;
        }
        @CustomType.Setter
        public Builder hardwareProfile(@Nullable HardwareProfileResponse hardwareProfile) {

            this.hardwareProfile = hardwareProfile;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder infrastructureProfile(@Nullable InfrastructureProfileResponse infrastructureProfile) {

            this.infrastructureProfile = infrastructureProfile;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkProfile(@Nullable NetworkProfileResponse networkProfile) {

            this.networkProfile = networkProfile;
            return this;
        }
        @CustomType.Setter
        public Builder osProfile(@Nullable OsProfileForVMInstanceResponse osProfile) {

            this.osProfile = osProfile;
            return this;
        }
        @CustomType.Setter
        public Builder powerState(String powerState) {
            if (powerState == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "powerState");
            }
            this.powerState = powerState;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder storageProfile(@Nullable StorageProfileResponse storageProfile) {

            this.storageProfile = storageProfile;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineInstanceResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetVirtualMachineInstanceResult build() {
            final var _resultValue = new GetVirtualMachineInstanceResult();
            _resultValue.availabilitySets = availabilitySets;
            _resultValue.extendedLocation = extendedLocation;
            _resultValue.hardwareProfile = hardwareProfile;
            _resultValue.id = id;
            _resultValue.infrastructureProfile = infrastructureProfile;
            _resultValue.name = name;
            _resultValue.networkProfile = networkProfile;
            _resultValue.osProfile = osProfile;
            _resultValue.powerState = powerState;
            _resultValue.provisioningState = provisioningState;
            _resultValue.storageProfile = storageProfile;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy