
com.pulumi.azurenative.scvmm.outputs.GetVirtualMachineResult 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.CheckpointResponse;
import com.pulumi.azurenative.scvmm.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.scvmm.outputs.GuestAgentProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.HardwareProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.IdentityResponse;
import com.pulumi.azurenative.scvmm.outputs.NetworkProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.OsProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.StorageProfileResponse;
import com.pulumi.azurenative.scvmm.outputs.SystemDataResponse;
import com.pulumi.azurenative.scvmm.outputs.VirtualMachinePropertiesResponseAvailabilitySets;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVirtualMachineResult {
/**
* @return Availability Sets in vm.
*
*/
private @Nullable List availabilitySets;
/**
* @return Type of checkpoint supported for the vm.
*
*/
private @Nullable String checkpointType;
/**
* @return Checkpoints in the vm.
*
*/
private @Nullable List checkpoints;
/**
* @return ARM Id of the cloud resource to use for deploying the vm.
*
*/
private @Nullable String cloudId;
/**
* @return The extended location.
*
*/
private ExtendedLocationResponse extendedLocation;
/**
* @return Gets or sets the generation for the vm.
*
*/
private @Nullable Integer generation;
/**
* @return Guest agent status properties.
*
*/
private @Nullable GuestAgentProfileResponse guestAgentProfile;
/**
* @return Hardware properties.
*
*/
private @Nullable HardwareProfileResponse hardwareProfile;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return The identity of the resource.
*
*/
private @Nullable IdentityResponse identity;
/**
* @return Gets or sets the inventory Item ID for the resource.
*
*/
private @Nullable String inventoryItemId;
/**
* @return Last restored checkpoint in the vm.
*
*/
private CheckpointResponse lastRestoredVMCheckpoint;
/**
* @return Gets or sets the location.
*
*/
private String location;
/**
* @return Resource Name
*
*/
private String name;
/**
* @return Network properties.
*
*/
private @Nullable NetworkProfileResponse networkProfile;
/**
* @return OS properties.
*
*/
private @Nullable OsProfileResponse 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 The system data.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags
*
*/
private @Nullable Map tags;
/**
* @return ARM Id of the template resource to use for deploying the vm.
*
*/
private @Nullable String templateId;
/**
* @return Resource Type
*
*/
private String type;
/**
* @return Unique ID of the virtual machine.
*
*/
private @Nullable String uuid;
/**
* @return VMName is the name of VM on the SCVMM server.
*
*/
private @Nullable String vmName;
/**
* @return ARM Id of the vmmServer resource in which this resource resides.
*
*/
private @Nullable String vmmServerId;
private GetVirtualMachineResult() {}
/**
* @return Availability Sets in vm.
*
*/
public List availabilitySets() {
return this.availabilitySets == null ? List.of() : this.availabilitySets;
}
/**
* @return Type of checkpoint supported for the vm.
*
*/
public Optional checkpointType() {
return Optional.ofNullable(this.checkpointType);
}
/**
* @return Checkpoints in the vm.
*
*/
public List checkpoints() {
return this.checkpoints == null ? List.of() : this.checkpoints;
}
/**
* @return ARM Id of the cloud resource to use for deploying the vm.
*
*/
public Optional cloudId() {
return Optional.ofNullable(this.cloudId);
}
/**
* @return The extended location.
*
*/
public ExtendedLocationResponse extendedLocation() {
return this.extendedLocation;
}
/**
* @return Gets or sets the generation for the vm.
*
*/
public Optional generation() {
return Optional.ofNullable(this.generation);
}
/**
* @return Guest agent status properties.
*
*/
public Optional guestAgentProfile() {
return Optional.ofNullable(this.guestAgentProfile);
}
/**
* @return Hardware properties.
*
*/
public Optional hardwareProfile() {
return Optional.ofNullable(this.hardwareProfile);
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return The identity of the resource.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return Gets or sets the inventory Item ID for the resource.
*
*/
public Optional inventoryItemId() {
return Optional.ofNullable(this.inventoryItemId);
}
/**
* @return Last restored checkpoint in the vm.
*
*/
public CheckpointResponse lastRestoredVMCheckpoint() {
return this.lastRestoredVMCheckpoint;
}
/**
* @return Gets or sets the location.
*
*/
public String location() {
return this.location;
}
/**
* @return Resource Name
*
*/
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 The system data.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return ARM Id of the template resource to use for deploying the vm.
*
*/
public Optional templateId() {
return Optional.ofNullable(this.templateId);
}
/**
* @return Resource Type
*
*/
public String type() {
return this.type;
}
/**
* @return Unique ID of the virtual machine.
*
*/
public Optional uuid() {
return Optional.ofNullable(this.uuid);
}
/**
* @return VMName is the name of VM on the SCVMM server.
*
*/
public Optional vmName() {
return Optional.ofNullable(this.vmName);
}
/**
* @return ARM Id of the vmmServer resource in which this resource resides.
*
*/
public Optional vmmServerId() {
return Optional.ofNullable(this.vmmServerId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualMachineResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List availabilitySets;
private @Nullable String checkpointType;
private @Nullable List checkpoints;
private @Nullable String cloudId;
private ExtendedLocationResponse extendedLocation;
private @Nullable Integer generation;
private @Nullable GuestAgentProfileResponse guestAgentProfile;
private @Nullable HardwareProfileResponse hardwareProfile;
private String id;
private @Nullable IdentityResponse identity;
private @Nullable String inventoryItemId;
private CheckpointResponse lastRestoredVMCheckpoint;
private String location;
private String name;
private @Nullable NetworkProfileResponse networkProfile;
private @Nullable OsProfileResponse osProfile;
private String powerState;
private String provisioningState;
private @Nullable StorageProfileResponse storageProfile;
private SystemDataResponse systemData;
private @Nullable Map tags;
private @Nullable String templateId;
private String type;
private @Nullable String uuid;
private @Nullable String vmName;
private @Nullable String vmmServerId;
public Builder() {}
public Builder(GetVirtualMachineResult defaults) {
Objects.requireNonNull(defaults);
this.availabilitySets = defaults.availabilitySets;
this.checkpointType = defaults.checkpointType;
this.checkpoints = defaults.checkpoints;
this.cloudId = defaults.cloudId;
this.extendedLocation = defaults.extendedLocation;
this.generation = defaults.generation;
this.guestAgentProfile = defaults.guestAgentProfile;
this.hardwareProfile = defaults.hardwareProfile;
this.id = defaults.id;
this.identity = defaults.identity;
this.inventoryItemId = defaults.inventoryItemId;
this.lastRestoredVMCheckpoint = defaults.lastRestoredVMCheckpoint;
this.location = defaults.location;
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.tags = defaults.tags;
this.templateId = defaults.templateId;
this.type = defaults.type;
this.uuid = defaults.uuid;
this.vmName = defaults.vmName;
this.vmmServerId = defaults.vmmServerId;
}
@CustomType.Setter
public Builder availabilitySets(@Nullable List availabilitySets) {
this.availabilitySets = availabilitySets;
return this;
}
public Builder availabilitySets(VirtualMachinePropertiesResponseAvailabilitySets... availabilitySets) {
return availabilitySets(List.of(availabilitySets));
}
@CustomType.Setter
public Builder checkpointType(@Nullable String checkpointType) {
this.checkpointType = checkpointType;
return this;
}
@CustomType.Setter
public Builder checkpoints(@Nullable List checkpoints) {
this.checkpoints = checkpoints;
return this;
}
public Builder checkpoints(CheckpointResponse... checkpoints) {
return checkpoints(List.of(checkpoints));
}
@CustomType.Setter
public Builder cloudId(@Nullable String cloudId) {
this.cloudId = cloudId;
return this;
}
@CustomType.Setter
public Builder extendedLocation(ExtendedLocationResponse extendedLocation) {
if (extendedLocation == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "extendedLocation");
}
this.extendedLocation = extendedLocation;
return this;
}
@CustomType.Setter
public Builder generation(@Nullable Integer generation) {
this.generation = generation;
return this;
}
@CustomType.Setter
public Builder guestAgentProfile(@Nullable GuestAgentProfileResponse guestAgentProfile) {
this.guestAgentProfile = guestAgentProfile;
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("GetVirtualMachineResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identity(@Nullable IdentityResponse identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder inventoryItemId(@Nullable String inventoryItemId) {
this.inventoryItemId = inventoryItemId;
return this;
}
@CustomType.Setter
public Builder lastRestoredVMCheckpoint(CheckpointResponse lastRestoredVMCheckpoint) {
if (lastRestoredVMCheckpoint == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "lastRestoredVMCheckpoint");
}
this.lastRestoredVMCheckpoint = lastRestoredVMCheckpoint;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "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 OsProfileResponse osProfile) {
this.osProfile = osProfile;
return this;
}
@CustomType.Setter
public Builder powerState(String powerState) {
if (powerState == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "powerState");
}
this.powerState = powerState;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "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("GetVirtualMachineResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder templateId(@Nullable String templateId) {
this.templateId = templateId;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder uuid(@Nullable String uuid) {
this.uuid = uuid;
return this;
}
@CustomType.Setter
public Builder vmName(@Nullable String vmName) {
this.vmName = vmName;
return this;
}
@CustomType.Setter
public Builder vmmServerId(@Nullable String vmmServerId) {
this.vmmServerId = vmmServerId;
return this;
}
public GetVirtualMachineResult build() {
final var _resultValue = new GetVirtualMachineResult();
_resultValue.availabilitySets = availabilitySets;
_resultValue.checkpointType = checkpointType;
_resultValue.checkpoints = checkpoints;
_resultValue.cloudId = cloudId;
_resultValue.extendedLocation = extendedLocation;
_resultValue.generation = generation;
_resultValue.guestAgentProfile = guestAgentProfile;
_resultValue.hardwareProfile = hardwareProfile;
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.inventoryItemId = inventoryItemId;
_resultValue.lastRestoredVMCheckpoint = lastRestoredVMCheckpoint;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.networkProfile = networkProfile;
_resultValue.osProfile = osProfile;
_resultValue.powerState = powerState;
_resultValue.provisioningState = provisioningState;
_resultValue.storageProfile = storageProfile;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.templateId = templateId;
_resultValue.type = type;
_resultValue.uuid = uuid;
_resultValue.vmName = vmName;
_resultValue.vmmServerId = vmmServerId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy