Class V1VolumeAttachmentSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1VolumeAttachmentSpec
extends Object
VolumeAttachmentSpec is the specification of a VolumeAttachment request.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1VolumeAttachmentSpec
Create an instance of V1VolumeAttachmentSpec given an JSON stringattacher indicates the name of the volume driver that MUST handle this request.nodeName represents the node that the volume should be attached to.Get sourceint
hashCode()
void
setAttacher
(String attacher) void
setNodeName
(String nodeName) void
setSource
(V1VolumeAttachmentSource source) source
(V1VolumeAttachmentSource source) toJson()
Convert an instance of V1VolumeAttachmentSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ATTACHER
- See Also:
-
SERIALIZED_NAME_NODE_NAME
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1VolumeAttachmentSpec
public V1VolumeAttachmentSpec()
-
-
Method Details
-
attacher
-
getAttacher
attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().- Returns:
- attacher
-
setAttacher
-
nodeName
-
getNodeName
nodeName represents the node that the volume should be attached to.- Returns:
- nodeName
-
setNodeName
-
source
-
getSource
Get source- Returns:
- source
-
setSource
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1VolumeAttachmentSpec
-
fromJson
Create an instance of V1VolumeAttachmentSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1VolumeAttachmentSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1VolumeAttachmentSpec
-
toJson
Convert an instance of V1VolumeAttachmentSpec to an JSON string- Returns:
- JSON string
-