Class ClusterVolumeSpec

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ClusterVolumeSpec
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ClusterVolumeSpec extends Object implements Serializable
ClusterVolumeSpec
See Also:
  • Field Details

  • Constructor Details

    • ClusterVolumeSpec

      public ClusterVolumeSpec()
  • Method Details

    • accessMode

      public ClusterVolumeSpec accessMode(AccessMode accessMode)
    • getAccessMode

      @Nullable @Valid public @Valid AccessMode getAccessMode()
      Get accessMode
      Returns:
      accessMode
    • setAccessMode

      public void setAccessMode(AccessMode accessMode)
    • accessibilityRequirements

      public ClusterVolumeSpec accessibilityRequirements(TopologyRequirement accessibilityRequirements)
    • getAccessibilityRequirements

      @Nullable @Valid public @Valid TopologyRequirement getAccessibilityRequirements()
      Get accessibilityRequirements
      Returns:
      accessibilityRequirements
    • setAccessibilityRequirements

      public void setAccessibilityRequirements(TopologyRequirement accessibilityRequirements)
    • availability

      public ClusterVolumeSpec availability(String availability)
    • getAvailability

      @Nullable public String getAvailability()
      Get availability
      Returns:
      availability
    • setAvailability

      public void setAvailability(String availability)
    • capacityRange

      public ClusterVolumeSpec capacityRange(CapacityRange capacityRange)
    • getCapacityRange

      @Nullable @Valid public @Valid CapacityRange getCapacityRange()
      Get capacityRange
      Returns:
      capacityRange
    • setCapacityRange

      public void setCapacityRange(CapacityRange capacityRange)
    • group

      public ClusterVolumeSpec group(String group)
    • getGroup

      @Nullable public String getGroup()
      Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group.
      Returns:
      group
    • setGroup

      public void setGroup(String group)
    • secrets

      public ClusterVolumeSpec secrets(List<Secret> secrets)
    • addSecretsItem

      public ClusterVolumeSpec addSecretsItem(Secret secretsItem)
    • getSecrets

      @Nullable @Valid public @Valid List<Secret> getSecrets()
      Secrets defines Swarm Secrets that are passed to the CSI storage plugin when operating on this volume.
      Returns:
      secrets
    • setSecrets

      public void setSecrets(List<Secret> secrets)
    • 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 ClusterVolumeSpec
    • fromJson

      public static ClusterVolumeSpec fromJson(String jsonString) throws IOException
      Create an instance of ClusterVolumeSpec given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ClusterVolumeSpec
      Throws:
      IOException - if the JSON string is invalid with respect to ClusterVolumeSpec
    • toJson

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