Package kubevirt.io

Class V1SecretVolumeSource

java.lang.Object
kubevirt.io.V1SecretVolumeSource

@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1SecretVolumeSource extends Object
SecretVolumeSource adapts a Secret into a volume.
  • Field Details

    • optional

      private Boolean optional
    • secretName

      private String secretName
  • Constructor Details

    • V1SecretVolumeSource

      public V1SecretVolumeSource()
  • Method Details

    • optional

      public V1SecretVolumeSource optional(Boolean optional)
    • isOptional

      public Boolean isOptional()
      Specify whether the Secret or it's keys must be defined +optional
      Returns:
      optional
    • setOptional

      public void setOptional(Boolean optional)
    • secretName

      public V1SecretVolumeSource secretName(String secretName)
    • getSecretName

      public String getSecretName()
      Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional
      Returns:
      secretName
    • setSecretName

      public void setSecretName(String secretName)
    • 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
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).