@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksVolume extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an Amazon EKS volume for a job definition.
Constructor and Description |
---|
EksVolume() |
Modifier and Type | Method and Description |
---|---|
EksVolume |
clone() |
boolean |
equals(Object obj) |
EksEmptyDir |
getEmptyDir()
Specifies the configuration of a Kubernetes
emptyDir volume. |
EksHostPath |
getHostPath()
Specifies the configuration of a Kubernetes
hostPath volume. |
String |
getName()
The name of the volume.
|
EksSecret |
getSecret()
Specifies the configuration of a Kubernetes
secret volume. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEmptyDir(EksEmptyDir emptyDir)
Specifies the configuration of a Kubernetes
emptyDir volume. |
void |
setHostPath(EksHostPath hostPath)
Specifies the configuration of a Kubernetes
hostPath volume. |
void |
setName(String name)
The name of the volume.
|
void |
setSecret(EksSecret secret)
Specifies the configuration of a Kubernetes
secret volume. |
String |
toString()
Returns a string representation of this object.
|
EksVolume |
withEmptyDir(EksEmptyDir emptyDir)
Specifies the configuration of a Kubernetes
emptyDir volume. |
EksVolume |
withHostPath(EksHostPath hostPath)
Specifies the configuration of a Kubernetes
hostPath volume. |
EksVolume |
withName(String name)
The name of the volume.
|
EksVolume |
withSecret(EksSecret secret)
Specifies the configuration of a Kubernetes
secret volume. |
public void setName(String name)
The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation.
name
- The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS
subdomain names in the Kubernetes documentation.public String getName()
The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation.
public EksVolume withName(String name)
The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation.
name
- The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS
subdomain names in the Kubernetes documentation.public void setHostPath(EksHostPath hostPath)
Specifies the configuration of a Kubernetes hostPath
volume. For more information, see hostPath in the Kubernetes
documentation.
hostPath
- Specifies the configuration of a Kubernetes hostPath
volume. For more information, see hostPath in the Kubernetes
documentation.public EksHostPath getHostPath()
Specifies the configuration of a Kubernetes hostPath
volume. For more information, see hostPath in the Kubernetes
documentation.
hostPath
volume. For more information, see hostPath in the Kubernetes
documentation.public EksVolume withHostPath(EksHostPath hostPath)
Specifies the configuration of a Kubernetes hostPath
volume. For more information, see hostPath in the Kubernetes
documentation.
hostPath
- Specifies the configuration of a Kubernetes hostPath
volume. For more information, see hostPath in the Kubernetes
documentation.public void setEmptyDir(EksEmptyDir emptyDir)
Specifies the configuration of a Kubernetes emptyDir
volume. For more information, see emptyDir in the Kubernetes
documentation.
emptyDir
- Specifies the configuration of a Kubernetes emptyDir
volume. For more information, see emptyDir in the Kubernetes
documentation.public EksEmptyDir getEmptyDir()
Specifies the configuration of a Kubernetes emptyDir
volume. For more information, see emptyDir in the Kubernetes
documentation.
emptyDir
volume. For more information, see emptyDir in the Kubernetes
documentation.public EksVolume withEmptyDir(EksEmptyDir emptyDir)
Specifies the configuration of a Kubernetes emptyDir
volume. For more information, see emptyDir in the Kubernetes
documentation.
emptyDir
- Specifies the configuration of a Kubernetes emptyDir
volume. For more information, see emptyDir in the Kubernetes
documentation.public void setSecret(EksSecret secret)
Specifies the configuration of a Kubernetes secret
volume. For more information, see secret in the Kubernetes
documentation.
secret
- Specifies the configuration of a Kubernetes secret
volume. For more information, see secret in the Kubernetes
documentation.public EksSecret getSecret()
Specifies the configuration of a Kubernetes secret
volume. For more information, see secret in the Kubernetes
documentation.
secret
volume. For more information, see secret in the Kubernetes
documentation.public EksVolume withSecret(EksSecret secret)
Specifies the configuration of a Kubernetes secret
volume. For more information, see secret in the Kubernetes
documentation.
secret
- Specifies the configuration of a Kubernetes secret
volume. For more information, see secret in the Kubernetes
documentation.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.