Class LaunchTemplateCpuOptions
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.LaunchTemplateCpuOptions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LaunchTemplateCpuOptions.Builder,LaunchTemplateCpuOptions>
@Generated("software.amazon.awssdk:codegen") public final class LaunchTemplateCpuOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateCpuOptions.Builder,LaunchTemplateCpuOptions>
The CPU options for the instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLaunchTemplateCpuOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AmdSevSnpSpecificationamdSevSnp()Indicates whether the instance is enabled for AMD SEV-SNP.StringamdSevSnpAsString()Indicates whether the instance is enabled for AMD SEV-SNP.static LaunchTemplateCpuOptions.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()NestedVirtualizationSpecificationnestedVirtualization()Indicates whether the instance is enabled for nested virtualization.StringnestedVirtualizationAsString()Indicates whether the instance is enabled for nested virtualization.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LaunchTemplateCpuOptions.Builder>serializableBuilderClass()IntegerthreadsPerCore()The number of threads per CPU core.LaunchTemplateCpuOptions.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.
- Returns:
- The number of threads per CPU core.
-
amdSevSnp
public final AmdSevSnpSpecification amdSevSnp()
Indicates whether the instance is enabled for AMD SEV-SNP. 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 the instance is enabled for AMD SEV-SNP. For more information, see AMD SEV-SNP for Amazon EC2 instances.
- See Also:
AmdSevSnpSpecification
-
amdSevSnpAsString
public final String amdSevSnpAsString()
Indicates whether the instance is enabled for AMD SEV-SNP. 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 the instance is enabled for AMD SEV-SNP. For more information, see AMD SEV-SNP for Amazon EC2 instances.
- See Also:
AmdSevSnpSpecification
-
nestedVirtualization
public final NestedVirtualizationSpecification nestedVirtualization()
Indicates whether the instance is enabled for nested virtualization.
If the service returns an enum value that is not available in the current SDK version,
nestedVirtualizationwill returnNestedVirtualizationSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnestedVirtualizationAsString().- Returns:
- Indicates whether the instance is enabled for nested virtualization.
- See Also:
NestedVirtualizationSpecification
-
nestedVirtualizationAsString
public final String nestedVirtualizationAsString()
Indicates whether the instance is enabled for nested virtualization.
If the service returns an enum value that is not available in the current SDK version,
nestedVirtualizationwill returnNestedVirtualizationSpecification.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnestedVirtualizationAsString().- Returns:
- Indicates whether the instance is enabled for nested virtualization.
- See Also:
NestedVirtualizationSpecification
-
toBuilder
public LaunchTemplateCpuOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LaunchTemplateCpuOptions.Builder,LaunchTemplateCpuOptions>
-
builder
public static LaunchTemplateCpuOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends LaunchTemplateCpuOptions.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
-
-