Package kubevirt.io

Class V1SecretVolumeSource


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

      Fields 
      Modifier and Type Field Description
      private java.lang.Boolean optional  
      private java.lang.String secretName  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getSecretName()
      Name of the secret in the pod's namespace to use.
      int hashCode()  
      java.lang.Boolean isOptional()
      Specify whether the Secret or it's keys must be defined +optional
      V1SecretVolumeSource optional​(java.lang.Boolean optional)  
      V1SecretVolumeSource secretName​(java.lang.String secretName)  
      void setOptional​(java.lang.Boolean optional)  
      void setSecretName​(java.lang.String secretName)  
      private java.lang.String toIndentedString​(java.lang.Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • optional

        private java.lang.Boolean optional
      • secretName

        private java.lang.String secretName
    • Constructor Detail

      • V1SecretVolumeSource

        public V1SecretVolumeSource()
    • Method Detail

      • isOptional

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

        public void setOptional​(java.lang.Boolean optional)
      • getSecretName

        public java.lang.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​(java.lang.String secretName)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toIndentedString

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