
com.pulumi.azurenative.compute.outputs.HardwareProfileResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.VMSizePropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class HardwareProfileResponse {
/**
* @return Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region](https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set.
*
*/
private @Nullable String vmSize;
/**
* @return Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.
*
*/
private @Nullable VMSizePropertiesResponse vmSizeProperties;
private HardwareProfileResponse() {}
/**
* @return Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region](https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set.
*
*/
public Optional vmSize() {
return Optional.ofNullable(this.vmSize);
}
/**
* @return Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.
*
*/
public Optional vmSizeProperties() {
return Optional.ofNullable(this.vmSizeProperties);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HardwareProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String vmSize;
private @Nullable VMSizePropertiesResponse vmSizeProperties;
public Builder() {}
public Builder(HardwareProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.vmSize = defaults.vmSize;
this.vmSizeProperties = defaults.vmSizeProperties;
}
@CustomType.Setter
public Builder vmSize(@Nullable String vmSize) {
this.vmSize = vmSize;
return this;
}
@CustomType.Setter
public Builder vmSizeProperties(@Nullable VMSizePropertiesResponse vmSizeProperties) {
this.vmSizeProperties = vmSizeProperties;
return this;
}
public HardwareProfileResponse build() {
final var _resultValue = new HardwareProfileResponse();
_resultValue.vmSize = vmSize;
_resultValue.vmSizeProperties = vmSizeProperties;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy