Class PlatformDevice
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.PlatformDevice
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PlatformDevice.Builder,PlatformDevice>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlatformDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlatformDevice.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID for the GPUs on the container instance.List<SdkField<?>>sdkFields()static Class<? extends PlatformDevice.Builder>serializableBuilderClass()PlatformDevice.BuildertoBuilder()StringtoString()Returns a string representation of this object.PlatformDeviceTypetype()The type of device that's available on the container instance.StringtypeAsString()The type of device that's available on the container instance.-
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
-
id
public 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.jsonfile.- Returns:
- 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.jsonfile.
-
type
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,
typewill returnPlatformDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of device that's available on the container instance. The only supported value is
GPU. - See Also:
PlatformDeviceType
-
typeAsString
public 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,
typewill returnPlatformDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of device that's available on the container instance. The only supported value is
GPU. - See Also:
PlatformDeviceType
-
toBuilder
public PlatformDevice.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PlatformDevice.Builder,PlatformDevice>
-
builder
public static PlatformDevice.Builder builder()
-
serializableBuilderClass
public static Class<? extends PlatformDevice.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.
-
-