
com.pulumi.azurenative.awsconnector.outputs.CpuOptionsResponse 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.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.AmdSevSnpSpecificationEnumValueResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CpuOptionsResponse {
/**
* @return <p>Indicates whether the instance is enabled for AMD SEV-SNP. For more information, see <a href='https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html'>AMD SEV-SNP</a>.</p>
*
*/
private @Nullable AmdSevSnpSpecificationEnumValueResponse amdSevSnp;
/**
* @return <p>The number of CPU cores for the instance.</p>
*
*/
private @Nullable Integer coreCount;
/**
* @return <p>The number of threads per CPU core.</p>
*
*/
private @Nullable Integer threadsPerCore;
private CpuOptionsResponse() {}
/**
* @return <p>Indicates whether the instance is enabled for AMD SEV-SNP. For more information, see <a href='https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html'>AMD SEV-SNP</a>.</p>
*
*/
public Optional amdSevSnp() {
return Optional.ofNullable(this.amdSevSnp);
}
/**
* @return <p>The number of CPU cores for the instance.</p>
*
*/
public Optional coreCount() {
return Optional.ofNullable(this.coreCount);
}
/**
* @return <p>The number of threads per CPU core.</p>
*
*/
public Optional threadsPerCore() {
return Optional.ofNullable(this.threadsPerCore);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CpuOptionsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AmdSevSnpSpecificationEnumValueResponse amdSevSnp;
private @Nullable Integer coreCount;
private @Nullable Integer threadsPerCore;
public Builder() {}
public Builder(CpuOptionsResponse defaults) {
Objects.requireNonNull(defaults);
this.amdSevSnp = defaults.amdSevSnp;
this.coreCount = defaults.coreCount;
this.threadsPerCore = defaults.threadsPerCore;
}
@CustomType.Setter
public Builder amdSevSnp(@Nullable AmdSevSnpSpecificationEnumValueResponse amdSevSnp) {
this.amdSevSnp = amdSevSnp;
return this;
}
@CustomType.Setter
public Builder coreCount(@Nullable Integer coreCount) {
this.coreCount = coreCount;
return this;
}
@CustomType.Setter
public Builder threadsPerCore(@Nullable Integer threadsPerCore) {
this.threadsPerCore = threadsPerCore;
return this;
}
public CpuOptionsResponse build() {
final var _resultValue = new CpuOptionsResponse();
_resultValue.amdSevSnp = amdSevSnp;
_resultValue.coreCount = coreCount;
_resultValue.threadsPerCore = threadsPerCore;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy