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.
  • Field Details

  • Constructor Details

    • V1VolumeAttachmentSpec

      public V1VolumeAttachmentSpec()
  • Method Details

    • attacher

      public V1VolumeAttachmentSpec attacher(String attacher)
    • getAttacher

      @Nonnull public String getAttacher()
      attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
      Returns:
      attacher
    • setAttacher

      public void setAttacher(String attacher)
    • nodeName

      public V1VolumeAttachmentSpec nodeName(String nodeName)
    • getNodeName

      @Nonnull public String getNodeName()
      nodeName represents the node that the volume should be attached to.
      Returns:
      nodeName
    • setNodeName

      public void setNodeName(String nodeName)
    • source

    • getSource

      @Nonnull public V1VolumeAttachmentSource getSource()
      Get source
      Returns:
      source
    • setSource

      public void setSource(V1VolumeAttachmentSource source)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static V1VolumeAttachmentSpec fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1VolumeAttachmentSpec to an JSON string
      Returns:
      JSON string