Class LaunchTemplateCpuOptionsRequest
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.LaunchTemplateCpuOptionsRequest
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LaunchTemplateCpuOptionsRequest.Builder,LaunchTemplateCpuOptionsRequest>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLaunchTemplateCpuOptionsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AmdSevSnpSpecificationamdSevSnp()Indicates whether to enable the instance for AMD SEV-SNP.StringamdSevSnpAsString()Indicates whether to enable the instance for AMD SEV-SNP.static LaunchTemplateCpuOptionsRequest.Builderbuilder()IntegercoreCount()The number of CPU cores for the instance.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LaunchTemplateCpuOptionsRequest.Builder>serializableBuilderClass()IntegerthreadsPerCore()The number of threads per CPU core.LaunchTemplateCpuOptionsRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
coreCount
public final Integer coreCount()
The number of CPU cores for the instance.
- Returns:
- The number of CPU cores for the instance.
-
threadsPerCore
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 of2.- Returns:
- The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1. Otherwise, specify the default value of2.
-
amdSevSnp
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. For more information, see AMD SEV-SNP for Amazon EC2 instances.
If the service returns an enum value that is not available in the current SDK version,
amdSevSnpwill returnAmdSevSnpSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromamdSevSnpAsString().- Returns:
- Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP for Amazon EC2 instances.
- See Also:
AmdSevSnpSpecification
-
amdSevSnpAsString
public 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. For more information, see AMD SEV-SNP for Amazon EC2 instances.
If the service returns an enum value that is not available in the current SDK version,
amdSevSnpwill returnAmdSevSnpSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromamdSevSnpAsString().- Returns:
- Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP for Amazon EC2 instances.
- See Also:
AmdSevSnpSpecification
-
toBuilder
public LaunchTemplateCpuOptionsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LaunchTemplateCpuOptionsRequest.Builder,LaunchTemplateCpuOptionsRequest>
-
builder
public static LaunchTemplateCpuOptionsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends LaunchTemplateCpuOptionsRequest.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-