@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlatformDevice extends Object implements Serializable, Cloneable, StructuredPojo
The devices that are available on the container instance. The only supported device type is a GPU.
| Constructor and Description |
|---|
PlatformDevice() |
| Modifier and Type | Method and Description |
|---|---|
PlatformDevice |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID for the GPUs on the container instance.
|
String |
getType()
The type of device that's available on the container instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setId(String id)
The ID for the GPUs on the container instance.
|
void |
setType(String type)
The type of device that's available on the container instance.
|
String |
toString()
Returns a string representation of this object.
|
PlatformDevice |
withId(String id)
The ID for the GPUs on the container instance.
|
PlatformDevice |
withType(PlatformDeviceType type)
The type of device that's available on the container instance.
|
PlatformDevice |
withType(String type)
The type of device that's available on the container instance.
|
public void setId(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.
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.public String getId()
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 PlatformDevice withId(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.
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.public void setType(String type)
The type of device that's available on the container instance. The only supported value is GPU.
type - The type of device that's available on the container instance. The only supported value is
GPU.PlatformDeviceTypepublic String getType()
The type of device that's available on the container instance. The only supported value is GPU.
GPU.PlatformDeviceTypepublic PlatformDevice withType(String type)
The type of device that's available on the container instance. The only supported value is GPU.
type - The type of device that's available on the container instance. The only supported value is
GPU.PlatformDeviceTypepublic PlatformDevice withType(PlatformDeviceType type)
The type of device that's available on the container instance. The only supported value is GPU.
type - The type of device that's available on the container instance. The only supported value is
GPU.PlatformDeviceTypepublic String toString()
toString in class ObjectObject.toString()public PlatformDevice clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.