com.pulumi.azurenative.scvmm.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.scvmm.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class HardwareProfileResponse {
/**
* @return Gets or sets the number of vCPUs for the vm.
*
*/
private @Nullable Integer cpuCount;
/**
* @return Gets or sets a value indicating whether to enable dynamic memory or not.
*
*/
private @Nullable String dynamicMemoryEnabled;
/**
* @return Gets or sets the max dynamic memory for the vm.
*
*/
private @Nullable Integer dynamicMemoryMaxMB;
/**
* @return Gets or sets the min dynamic memory for the vm.
*
*/
private @Nullable Integer dynamicMemoryMinMB;
/**
* @return Gets highly available property.
*
*/
private @Nullable String isHighlyAvailable;
/**
* @return Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
*
*/
private @Nullable String limitCpuForMigration;
/**
* @return MemoryMB is the size of a virtual machine's memory, in MB.
*
*/
private @Nullable Integer memoryMB;
private HardwareProfileResponse() {}
/**
* @return Gets or sets the number of vCPUs for the vm.
*
*/
public Optional cpuCount() {
return Optional.ofNullable(this.cpuCount);
}
/**
* @return Gets or sets a value indicating whether to enable dynamic memory or not.
*
*/
public Optional dynamicMemoryEnabled() {
return Optional.ofNullable(this.dynamicMemoryEnabled);
}
/**
* @return Gets or sets the max dynamic memory for the vm.
*
*/
public Optional dynamicMemoryMaxMB() {
return Optional.ofNullable(this.dynamicMemoryMaxMB);
}
/**
* @return Gets or sets the min dynamic memory for the vm.
*
*/
public Optional dynamicMemoryMinMB() {
return Optional.ofNullable(this.dynamicMemoryMinMB);
}
/**
* @return Gets highly available property.
*
*/
public Optional isHighlyAvailable() {
return Optional.ofNullable(this.isHighlyAvailable);
}
/**
* @return Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
*
*/
public Optional limitCpuForMigration() {
return Optional.ofNullable(this.limitCpuForMigration);
}
/**
* @return MemoryMB is the size of a virtual machine's memory, in MB.
*
*/
public Optional memoryMB() {
return Optional.ofNullable(this.memoryMB);
}
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 Integer cpuCount;
private @Nullable String dynamicMemoryEnabled;
private @Nullable Integer dynamicMemoryMaxMB;
private @Nullable Integer dynamicMemoryMinMB;
private @Nullable String isHighlyAvailable;
private @Nullable String limitCpuForMigration;
private @Nullable Integer memoryMB;
public Builder() {}
public Builder(HardwareProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.cpuCount = defaults.cpuCount;
this.dynamicMemoryEnabled = defaults.dynamicMemoryEnabled;
this.dynamicMemoryMaxMB = defaults.dynamicMemoryMaxMB;
this.dynamicMemoryMinMB = defaults.dynamicMemoryMinMB;
this.isHighlyAvailable = defaults.isHighlyAvailable;
this.limitCpuForMigration = defaults.limitCpuForMigration;
this.memoryMB = defaults.memoryMB;
}
@CustomType.Setter
public Builder cpuCount(@Nullable Integer cpuCount) {
this.cpuCount = cpuCount;
return this;
}
@CustomType.Setter
public Builder dynamicMemoryEnabled(@Nullable String dynamicMemoryEnabled) {
this.dynamicMemoryEnabled = dynamicMemoryEnabled;
return this;
}
@CustomType.Setter
public Builder dynamicMemoryMaxMB(@Nullable Integer dynamicMemoryMaxMB) {
this.dynamicMemoryMaxMB = dynamicMemoryMaxMB;
return this;
}
@CustomType.Setter
public Builder dynamicMemoryMinMB(@Nullable Integer dynamicMemoryMinMB) {
this.dynamicMemoryMinMB = dynamicMemoryMinMB;
return this;
}
@CustomType.Setter
public Builder isHighlyAvailable(@Nullable String isHighlyAvailable) {
this.isHighlyAvailable = isHighlyAvailable;
return this;
}
@CustomType.Setter
public Builder limitCpuForMigration(@Nullable String limitCpuForMigration) {
this.limitCpuForMigration = limitCpuForMigration;
return this;
}
@CustomType.Setter
public Builder memoryMB(@Nullable Integer memoryMB) {
this.memoryMB = memoryMB;
return this;
}
public HardwareProfileResponse build() {
final var _resultValue = new HardwareProfileResponse();
_resultValue.cpuCount = cpuCount;
_resultValue.dynamicMemoryEnabled = dynamicMemoryEnabled;
_resultValue.dynamicMemoryMaxMB = dynamicMemoryMaxMB;
_resultValue.dynamicMemoryMinMB = dynamicMemoryMinMB;
_resultValue.isHighlyAvailable = isHighlyAvailable;
_resultValue.limitCpuForMigration = limitCpuForMigration;
_resultValue.memoryMB = memoryMB;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy