@Generated(value="software.amazon.awssdk:codegen") public final class PlatformDevice extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlatformDevice.Builder,PlatformDevice>
The devices that are available on the container instance. The only supported device type is a GPU.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlatformDevice.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PlatformDevice.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID for the GPUs on the container instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PlatformDevice.Builder> |
serializableBuilderClass() |
PlatformDevice.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PlatformDeviceType |
type()
The type of device that's available on the container instance.
|
String |
typeAsString()
The type of device that's available on the container instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID for the GPUs on the container instance. The available GPU IDs can also be obtained on the container
instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file.
/var/lib/ecs/gpu/nvidia_gpu_info.json file.public final PlatformDeviceType type()
The type of device that's available on the container instance. The only supported value is GPU.
If the service returns an enum value that is not available in the current SDK version, type will return
PlatformDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
GPU.PlatformDeviceTypepublic final String typeAsString()
The type of device that's available on the container instance. The only supported value is GPU.
If the service returns an enum value that is not available in the current SDK version, type will return
PlatformDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
GPU.PlatformDeviceTypepublic PlatformDevice.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PlatformDevice.Builder,PlatformDevice>public static PlatformDevice.Builder builder()
public static Class<? extends PlatformDevice.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.