@Generated(value="software.amazon.awssdk:codegen") public final class Device extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Device.Builder,Device>
An object representing a container instance host device.
Modifier and Type | Class and Description |
---|---|
static interface |
Device.Builder |
Modifier and Type | Method and Description |
---|---|
static Device.Builder |
builder() |
String |
containerPath()
The path inside the container at which to expose the host device.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPermissions()
Returns true if the Permissions property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
hostPath()
The path for the device on the host container instance.
|
List<DeviceCgroupPermission> |
permissions()
The explicit permissions to provide to the container for the device.
|
List<String> |
permissionsAsStrings()
The explicit permissions to provide to the container for the device.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Device.Builder> |
serializableBuilderClass() |
Device.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String hostPath()
The path for the device on the host container instance.
public String containerPath()
The path inside the container at which to expose the host device. By default the hostPath
value is
used.
hostPath
value is used.public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPermissions()
to see if a value was sent in this field.
read
, write
, and mknod
for the device.public boolean hasPermissions()
public List<String> permissionsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPermissions()
to see if a value was sent in this field.
read
, write
, and mknod
for the device.public Device.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Device.Builder,Device>
public static Device.Builder builder()
public static Class<? extends Device.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.