@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Volume extends Object implements Serializable, Cloneable, StructuredPojo
Volume used by the Kubernetes workload.
Constructor and Description |
---|
Volume() |
Modifier and Type | Method and Description |
---|---|
Volume |
clone() |
boolean |
equals(Object obj) |
HostPath |
getHostPath()
Represents a pre-existing file or directory on the host machine that the volume maps to.
|
String |
getName()
Volume name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHostPath(HostPath hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
|
void |
setName(String name)
Volume name.
|
String |
toString()
Returns a string representation of this object.
|
Volume |
withHostPath(HostPath hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
|
Volume |
withName(String name)
Volume name.
|
public void setName(String name)
Volume name.
name
- Volume name.public String getName()
Volume name.
public Volume withName(String name)
Volume name.
name
- Volume name.public void setHostPath(HostPath hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
hostPath
- Represents a pre-existing file or directory on the host machine that the volume maps to.public HostPath getHostPath()
Represents a pre-existing file or directory on the host machine that the volume maps to.
public Volume withHostPath(HostPath hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
hostPath
- Represents a pre-existing file or directory on the host machine that the volume maps to.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.