@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplateCpuOptionsRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateCpuOptionsRequest.Builder,LaunchTemplateCpuOptionsRequest>
The CPU options for the instance. Both the core count and threads per core must be specified in the request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LaunchTemplateCpuOptionsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AmdSevSnpSpecification |
amdSevSnp()
Indicates whether to enable the instance for AMD SEV-SNP.
|
String |
amdSevSnpAsString()
Indicates whether to enable the instance for AMD SEV-SNP.
|
static LaunchTemplateCpuOptionsRequest.Builder |
builder() |
Integer |
coreCount()
The number of CPU cores for the instance.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LaunchTemplateCpuOptionsRequest.Builder> |
serializableBuilderClass() |
Integer |
threadsPerCore()
The number of threads per CPU core.
|
LaunchTemplateCpuOptionsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer coreCount()
The number of CPU cores for the instance.
public final Integer threadsPerCore()
The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1
. Otherwise, specify the default value of 2.
1. Otherwise, specify the default value of 2.public final AmdSevSnpSpecification amdSevSnp()
Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only.
If the service returns an enum value that is not available in the current SDK version, amdSevSnp will
return AmdSevSnpSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from amdSevSnpAsString().
AmdSevSnpSpecificationpublic final String amdSevSnpAsString()
Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only.
If the service returns an enum value that is not available in the current SDK version, amdSevSnp will
return AmdSevSnpSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from amdSevSnpAsString().
AmdSevSnpSpecificationpublic LaunchTemplateCpuOptionsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LaunchTemplateCpuOptionsRequest.Builder,LaunchTemplateCpuOptionsRequest>public static LaunchTemplateCpuOptionsRequest.Builder builder()
public static Class<? extends LaunchTemplateCpuOptionsRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.