
com.pulumi.azurenative.scvmm.outputs.GetVirtualMachineTemplateResult 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.NetworkInterfacesResponse;
import com.pulumi.azurenative.scvmm.outputs.SystemDataResponse;
import com.pulumi.azurenative.scvmm.outputs.VirtualDiskResponse;
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 GetVirtualMachineTemplateResult {
/**
* @return Gets or sets computer name.
*
*/
private String computerName;
/**
* @return Gets or sets the desired number of vCPUs for the vm.
*
*/
private Integer cpuCount;
/**
* @return Gets or sets the disks of the template.
*
*/
private List disks;
/**
* @return Gets or sets a value indicating whether to enable dynamic memory or not.
*
*/
private String dynamicMemoryEnabled;
/**
* @return Gets or sets the max dynamic memory for the vm.
*
*/
private Integer dynamicMemoryMaxMB;
/**
* @return Gets or sets the min dynamic memory for the vm.
*
*/
private Integer dynamicMemoryMinMB;
/**
* @return The extended location.
*
*/
private ExtendedLocationResponse extendedLocation;
/**
* @return Gets or sets the generation for the vm.
*
*/
private Integer generation;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return Gets or sets the inventory Item ID for the resource.
*
*/
private @Nullable String inventoryItemId;
/**
* @return Gets or sets a value indicating whether the vm template is customizable or not.
*
*/
private String isCustomizable;
/**
* @return Gets highly available property.
*
*/
private String isHighlyAvailable;
/**
* @return Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
*
*/
private String limitCpuForMigration;
/**
* @return Gets or sets the location.
*
*/
private String location;
/**
* @return MemoryMB is the desired size of a virtual machine's memory, in MB.
*
*/
private Integer memoryMB;
/**
* @return Resource Name
*
*/
private String name;
/**
* @return Gets or sets the network interfaces of the template.
*
*/
private List networkInterfaces;
/**
* @return Gets or sets os name.
*
*/
private String osName;
/**
* @return Gets or sets the type of the os.
*
*/
private String osType;
/**
* @return Gets or sets the provisioning state.
*
*/
private String provisioningState;
/**
* @return The system data.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags
*
*/
private @Nullable Map tags;
/**
* @return Resource Type
*
*/
private String type;
/**
* @return Unique ID of the virtual machine template.
*
*/
private @Nullable String uuid;
/**
* @return ARM Id of the vmmServer resource in which this resource resides.
*
*/
private @Nullable String vmmServerId;
private GetVirtualMachineTemplateResult() {}
/**
* @return Gets or sets computer name.
*
*/
public String computerName() {
return this.computerName;
}
/**
* @return Gets or sets the desired number of vCPUs for the vm.
*
*/
public Integer cpuCount() {
return this.cpuCount;
}
/**
* @return Gets or sets the disks of the template.
*
*/
public List disks() {
return this.disks;
}
/**
* @return Gets or sets a value indicating whether to enable dynamic memory or not.
*
*/
public String dynamicMemoryEnabled() {
return this.dynamicMemoryEnabled;
}
/**
* @return Gets or sets the max dynamic memory for the vm.
*
*/
public Integer dynamicMemoryMaxMB() {
return this.dynamicMemoryMaxMB;
}
/**
* @return Gets or sets the min dynamic memory for the vm.
*
*/
public Integer dynamicMemoryMinMB() {
return this.dynamicMemoryMinMB;
}
/**
* @return The extended location.
*
*/
public ExtendedLocationResponse extendedLocation() {
return this.extendedLocation;
}
/**
* @return Gets or sets the generation for the vm.
*
*/
public Integer generation() {
return this.generation;
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the inventory Item ID for the resource.
*
*/
public Optional inventoryItemId() {
return Optional.ofNullable(this.inventoryItemId);
}
/**
* @return Gets or sets a value indicating whether the vm template is customizable or not.
*
*/
public String isCustomizable() {
return this.isCustomizable;
}
/**
* @return Gets highly available property.
*
*/
public String isHighlyAvailable() {
return this.isHighlyAvailable;
}
/**
* @return Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
*
*/
public String limitCpuForMigration() {
return this.limitCpuForMigration;
}
/**
* @return Gets or sets the location.
*
*/
public String location() {
return this.location;
}
/**
* @return MemoryMB is the desired size of a virtual machine's memory, in MB.
*
*/
public Integer memoryMB() {
return this.memoryMB;
}
/**
* @return Resource Name
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the network interfaces of the template.
*
*/
public List networkInterfaces() {
return this.networkInterfaces;
}
/**
* @return Gets or sets os name.
*
*/
public String osName() {
return this.osName;
}
/**
* @return Gets or sets the type of the os.
*
*/
public String osType() {
return this.osType;
}
/**
* @return Gets or sets the provisioning state.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @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 Resource Type
*
*/
public String type() {
return this.type;
}
/**
* @return Unique ID of the virtual machine template.
*
*/
public Optional uuid() {
return Optional.ofNullable(this.uuid);
}
/**
* @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(GetVirtualMachineTemplateResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String computerName;
private Integer cpuCount;
private List disks;
private String dynamicMemoryEnabled;
private Integer dynamicMemoryMaxMB;
private Integer dynamicMemoryMinMB;
private ExtendedLocationResponse extendedLocation;
private Integer generation;
private String id;
private @Nullable String inventoryItemId;
private String isCustomizable;
private String isHighlyAvailable;
private String limitCpuForMigration;
private String location;
private Integer memoryMB;
private String name;
private List networkInterfaces;
private String osName;
private String osType;
private String provisioningState;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable String uuid;
private @Nullable String vmmServerId;
public Builder() {}
public Builder(GetVirtualMachineTemplateResult defaults) {
Objects.requireNonNull(defaults);
this.computerName = defaults.computerName;
this.cpuCount = defaults.cpuCount;
this.disks = defaults.disks;
this.dynamicMemoryEnabled = defaults.dynamicMemoryEnabled;
this.dynamicMemoryMaxMB = defaults.dynamicMemoryMaxMB;
this.dynamicMemoryMinMB = defaults.dynamicMemoryMinMB;
this.extendedLocation = defaults.extendedLocation;
this.generation = defaults.generation;
this.id = defaults.id;
this.inventoryItemId = defaults.inventoryItemId;
this.isCustomizable = defaults.isCustomizable;
this.isHighlyAvailable = defaults.isHighlyAvailable;
this.limitCpuForMigration = defaults.limitCpuForMigration;
this.location = defaults.location;
this.memoryMB = defaults.memoryMB;
this.name = defaults.name;
this.networkInterfaces = defaults.networkInterfaces;
this.osName = defaults.osName;
this.osType = defaults.osType;
this.provisioningState = defaults.provisioningState;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.uuid = defaults.uuid;
this.vmmServerId = defaults.vmmServerId;
}
@CustomType.Setter
public Builder computerName(String computerName) {
if (computerName == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "computerName");
}
this.computerName = computerName;
return this;
}
@CustomType.Setter
public Builder cpuCount(Integer cpuCount) {
if (cpuCount == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "cpuCount");
}
this.cpuCount = cpuCount;
return this;
}
@CustomType.Setter
public Builder disks(List disks) {
if (disks == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "disks");
}
this.disks = disks;
return this;
}
public Builder disks(VirtualDiskResponse... disks) {
return disks(List.of(disks));
}
@CustomType.Setter
public Builder dynamicMemoryEnabled(String dynamicMemoryEnabled) {
if (dynamicMemoryEnabled == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "dynamicMemoryEnabled");
}
this.dynamicMemoryEnabled = dynamicMemoryEnabled;
return this;
}
@CustomType.Setter
public Builder dynamicMemoryMaxMB(Integer dynamicMemoryMaxMB) {
if (dynamicMemoryMaxMB == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "dynamicMemoryMaxMB");
}
this.dynamicMemoryMaxMB = dynamicMemoryMaxMB;
return this;
}
@CustomType.Setter
public Builder dynamicMemoryMinMB(Integer dynamicMemoryMinMB) {
if (dynamicMemoryMinMB == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "dynamicMemoryMinMB");
}
this.dynamicMemoryMinMB = dynamicMemoryMinMB;
return this;
}
@CustomType.Setter
public Builder extendedLocation(ExtendedLocationResponse extendedLocation) {
if (extendedLocation == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "extendedLocation");
}
this.extendedLocation = extendedLocation;
return this;
}
@CustomType.Setter
public Builder generation(Integer generation) {
if (generation == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "generation");
}
this.generation = generation;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder inventoryItemId(@Nullable String inventoryItemId) {
this.inventoryItemId = inventoryItemId;
return this;
}
@CustomType.Setter
public Builder isCustomizable(String isCustomizable) {
if (isCustomizable == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "isCustomizable");
}
this.isCustomizable = isCustomizable;
return this;
}
@CustomType.Setter
public Builder isHighlyAvailable(String isHighlyAvailable) {
if (isHighlyAvailable == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "isHighlyAvailable");
}
this.isHighlyAvailable = isHighlyAvailable;
return this;
}
@CustomType.Setter
public Builder limitCpuForMigration(String limitCpuForMigration) {
if (limitCpuForMigration == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "limitCpuForMigration");
}
this.limitCpuForMigration = limitCpuForMigration;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder memoryMB(Integer memoryMB) {
if (memoryMB == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "memoryMB");
}
this.memoryMB = memoryMB;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder networkInterfaces(List networkInterfaces) {
if (networkInterfaces == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "networkInterfaces");
}
this.networkInterfaces = networkInterfaces;
return this;
}
public Builder networkInterfaces(NetworkInterfacesResponse... networkInterfaces) {
return networkInterfaces(List.of(networkInterfaces));
}
@CustomType.Setter
public Builder osName(String osName) {
if (osName == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "osName");
}
this.osName = osName;
return this;
}
@CustomType.Setter
public Builder osType(String osType) {
if (osType == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "osType");
}
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineTemplateResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder uuid(@Nullable String uuid) {
this.uuid = uuid;
return this;
}
@CustomType.Setter
public Builder vmmServerId(@Nullable String vmmServerId) {
this.vmmServerId = vmmServerId;
return this;
}
public GetVirtualMachineTemplateResult build() {
final var _resultValue = new GetVirtualMachineTemplateResult();
_resultValue.computerName = computerName;
_resultValue.cpuCount = cpuCount;
_resultValue.disks = disks;
_resultValue.dynamicMemoryEnabled = dynamicMemoryEnabled;
_resultValue.dynamicMemoryMaxMB = dynamicMemoryMaxMB;
_resultValue.dynamicMemoryMinMB = dynamicMemoryMinMB;
_resultValue.extendedLocation = extendedLocation;
_resultValue.generation = generation;
_resultValue.id = id;
_resultValue.inventoryItemId = inventoryItemId;
_resultValue.isCustomizable = isCustomizable;
_resultValue.isHighlyAvailable = isHighlyAvailable;
_resultValue.limitCpuForMigration = limitCpuForMigration;
_resultValue.location = location;
_resultValue.memoryMB = memoryMB;
_resultValue.name = name;
_resultValue.networkInterfaces = networkInterfaces;
_resultValue.osName = osName;
_resultValue.osType = osType;
_resultValue.provisioningState = provisioningState;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.uuid = uuid;
_resultValue.vmmServerId = vmmServerId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy