@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Device extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a container instance host device.
This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
Device |
clone() |
boolean |
equals(Object obj) |
String |
getContainerPath()
The path inside the container that's used to expose the host device.
|
String |
getHostPath()
The path for the device on the host container instance.
|
List<String> |
getPermissions()
The explicit permissions to provide to the container for the device.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerPath(String containerPath)
The path inside the container that's used to expose the host device.
|
void |
setHostPath(String hostPath)
The path for the device on the host container instance.
|
void |
setPermissions(Collection<String> permissions)
The explicit permissions to provide to the container for the device.
|
String |
toString()
Returns a string representation of this object.
|
Device |
withContainerPath(String containerPath)
The path inside the container that's used to expose the host device.
|
Device |
withHostPath(String hostPath)
The path for the device on the host container instance.
|
Device |
withPermissions(Collection<String> permissions)
The explicit permissions to provide to the container for the device.
|
Device |
withPermissions(DeviceCgroupPermission... permissions)
The explicit permissions to provide to the container for the device.
|
Device |
withPermissions(String... permissions)
The explicit permissions to provide to the container for the device.
|
public void setHostPath(String hostPath)
The path for the device on the host container instance.
hostPath
- The path for the device on the host container instance.public String getHostPath()
The path for the device on the host container instance.
public Device withHostPath(String hostPath)
The path for the device on the host container instance.
hostPath
- The path for the device on the host container instance.public void setContainerPath(String containerPath)
The path inside the container that's used to expose the host device. By default, the hostPath
value
is used.
containerPath
- The path inside the container that's used to expose the host device. By default, the hostPath
value is used.public String getContainerPath()
The path inside the container that's used to expose the host device. By default, the hostPath
value
is used.
hostPath
value is used.public Device withContainerPath(String containerPath)
The path inside the container that's used to expose the host device. By default, the hostPath
value
is used.
containerPath
- The path inside the container that's used to expose the host device. By default, the hostPath
value is used.public List<String> getPermissions()
The explicit permissions to provide to the container for the device. By default, the container has permissions
for read
, write
, and mknod
for the device.
read
, write
, and mknod
for the device.DeviceCgroupPermission
public void setPermissions(Collection<String> permissions)
The explicit permissions to provide to the container for the device. By default, the container has permissions
for read
, write
, and mknod
for the device.
permissions
- The explicit permissions to provide to the container for the device. By default, the container has
permissions for read
, write
, and mknod
for the device.DeviceCgroupPermission
public Device withPermissions(String... permissions)
The explicit permissions to provide to the container for the device. By default, the container has permissions
for read
, write
, and mknod
for the device.
NOTE: This method appends the values to the existing list (if any). Use
setPermissions(java.util.Collection)
or withPermissions(java.util.Collection)
if you want to
override the existing values.
permissions
- The explicit permissions to provide to the container for the device. By default, the container has
permissions for read
, write
, and mknod
for the device.DeviceCgroupPermission
public Device withPermissions(Collection<String> permissions)
The explicit permissions to provide to the container for the device. By default, the container has permissions
for read
, write
, and mknod
for the device.
permissions
- The explicit permissions to provide to the container for the device. By default, the container has
permissions for read
, write
, and mknod
for the device.DeviceCgroupPermission
public Device withPermissions(DeviceCgroupPermission... permissions)
The explicit permissions to provide to the container for the device. By default, the container has permissions
for read
, write
, and mknod
for the device.
permissions
- The explicit permissions to provide to the container for the device. By default, the container has
permissions for read
, write
, and mknod
for the device.DeviceCgroupPermission
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.