@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateCpuOptionsRequest extends Object implements Serializable, Cloneable
The CPU options for the instance. Both the core count and threads per core must be specified in the request.
Constructor and Description |
---|
LaunchTemplateCpuOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateCpuOptionsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAmdSevSnp()
Indicates whether to enable the instance for AMD SEV-SNP.
|
Integer |
getCoreCount()
The number of CPU cores for the instance.
|
Integer |
getThreadsPerCore()
The number of threads per CPU core.
|
int |
hashCode() |
void |
setAmdSevSnp(String amdSevSnp)
Indicates whether to enable the instance for AMD SEV-SNP.
|
void |
setCoreCount(Integer coreCount)
The number of CPU cores for the instance.
|
void |
setThreadsPerCore(Integer threadsPerCore)
The number of threads per CPU core.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateCpuOptionsRequest |
withAmdSevSnp(AmdSevSnpSpecification amdSevSnp)
Indicates whether to enable the instance for AMD SEV-SNP.
|
LaunchTemplateCpuOptionsRequest |
withAmdSevSnp(String amdSevSnp)
Indicates whether to enable the instance for AMD SEV-SNP.
|
LaunchTemplateCpuOptionsRequest |
withCoreCount(Integer coreCount)
The number of CPU cores for the instance.
|
LaunchTemplateCpuOptionsRequest |
withThreadsPerCore(Integer threadsPerCore)
The number of threads per CPU core.
|
public void setCoreCount(Integer coreCount)
The number of CPU cores for the instance.
coreCount
- The number of CPU cores for the instance.public Integer getCoreCount()
The number of CPU cores for the instance.
public LaunchTemplateCpuOptionsRequest withCoreCount(Integer coreCount)
The number of CPU cores for the instance.
coreCount
- The number of CPU cores for the instance.public void setThreadsPerCore(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
.
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
.public Integer getThreadsPerCore()
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 LaunchTemplateCpuOptionsRequest withThreadsPerCore(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
.
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
.public void setAmdSevSnp(String 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.
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.AmdSevSnpSpecification
public String getAmdSevSnp()
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.
AmdSevSnpSpecification
public LaunchTemplateCpuOptionsRequest withAmdSevSnp(String 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.
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.AmdSevSnpSpecification
public LaunchTemplateCpuOptionsRequest withAmdSevSnp(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.
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.AmdSevSnpSpecification
public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateCpuOptionsRequest clone()