@Generated(value="software.amazon.awssdk:codegen") public final class VCpuInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VCpuInfo.Builder,VCpuInfo>
Describes the vCPU configurations for the instance type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
VCpuInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
static VCpuInfo.Builder |
builder() |
Integer |
defaultCores()
The default number of cores for the instance type.
|
Integer |
defaultThreadsPerCore()
The default number of threads per core for the instance type.
|
Integer |
defaultVCpus()
The default number of vCPUs for the instance type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValidCores()
For responses, this returns true if the service returned a value for the ValidCores property.
|
boolean |
hasValidThreadsPerCore()
For responses, this returns true if the service returned a value for the ValidThreadsPerCore property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends VCpuInfo.Builder> |
serializableBuilderClass() |
VCpuInfo.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<Integer> |
validCores()
The valid number of cores that can be configured for the instance type.
|
List<Integer> |
validThreadsPerCore()
The valid number of threads per core that can be configured for the instance type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer defaultVCpus()
The default number of vCPUs for the instance type.
public final Integer defaultCores()
The default number of cores for the instance type.
public final Integer defaultThreadsPerCore()
The default number of threads per core for the instance type.
public final boolean hasValidCores()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Integer> validCores()
The valid number of cores that can be configured for the instance type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasValidCores() method.
public final boolean hasValidThreadsPerCore()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Integer> validThreadsPerCore()
The valid number of threads per core that can be configured for the instance type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasValidThreadsPerCore() method.
public VCpuInfo.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<VCpuInfo.Builder,VCpuInfo>public static VCpuInfo.Builder builder()
public static Class<? extends VCpuInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.