@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksContainerVolumeMount extends Object implements Serializable, Cloneable, StructuredPojo
The volume mounts for a container for an Amazon EKS job. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.
Constructor and Description |
---|
EksContainerVolumeMount() |
Modifier and Type | Method and Description |
---|---|
EksContainerVolumeMount |
clone() |
boolean |
equals(Object obj) |
String |
getMountPath()
The path on the container where the volume is mounted.
|
String |
getName()
The name the volume mount.
|
Boolean |
getReadOnly()
If this value is
true , the container has read-only access to the volume. |
int |
hashCode() |
Boolean |
isReadOnly()
If this value is
true , the container has read-only access to the volume. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMountPath(String mountPath)
The path on the container where the volume is mounted.
|
void |
setName(String name)
The name the volume mount.
|
void |
setReadOnly(Boolean readOnly)
If this value is
true , the container has read-only access to the volume. |
String |
toString()
Returns a string representation of this object.
|
EksContainerVolumeMount |
withMountPath(String mountPath)
The path on the container where the volume is mounted.
|
EksContainerVolumeMount |
withName(String name)
The name the volume mount.
|
EksContainerVolumeMount |
withReadOnly(Boolean readOnly)
If this value is
true , the container has read-only access to the volume. |
public void setName(String name)
The name the volume mount. This must match the name of one of the volumes in the pod.
name
- The name the volume mount. This must match the name of one of the volumes in the pod.public String getName()
The name the volume mount. This must match the name of one of the volumes in the pod.
public EksContainerVolumeMount withName(String name)
The name the volume mount. This must match the name of one of the volumes in the pod.
name
- The name the volume mount. This must match the name of one of the volumes in the pod.public void setMountPath(String mountPath)
The path on the container where the volume is mounted.
mountPath
- The path on the container where the volume is mounted.public String getMountPath()
The path on the container where the volume is mounted.
public EksContainerVolumeMount withMountPath(String mountPath)
The path on the container where the volume is mounted.
mountPath
- The path on the container where the volume is mounted.public void setReadOnly(Boolean readOnly)
If this value is true
, the container has read-only access to the volume. Otherwise, the container
can write to the volume. The default value is false
.
readOnly
- If this value is true
, the container has read-only access to the volume. Otherwise, the
container can write to the volume. The default value is false
.public Boolean getReadOnly()
If this value is true
, the container has read-only access to the volume. Otherwise, the container
can write to the volume. The default value is false
.
true
, the container has read-only access to the volume. Otherwise, the
container can write to the volume. The default value is false
.public EksContainerVolumeMount withReadOnly(Boolean readOnly)
If this value is true
, the container has read-only access to the volume. Otherwise, the container
can write to the volume. The default value is false
.
readOnly
- If this value is true
, the container has read-only access to the volume. Otherwise, the
container can write to the volume. The default value is false
.public Boolean isReadOnly()
If this value is true
, the container has read-only access to the volume. Otherwise, the container
can write to the volume. The default value is false
.
true
, the container has read-only access to the volume. Otherwise, the
container can write to the volume. The default value is false
.public String toString()
toString
in class Object
Object.toString()
public EksContainerVolumeMount clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.