Class VolumeFrom

    • Constructor Detail

      • VolumeFrom

        public VolumeFrom()
    • Method Detail

      • setSourceContainer

        public void setSourceContainer​(String sourceContainer)

        The name of the container to mount volumes from.

        Parameters:
        sourceContainer - The name of the container to mount volumes from.
      • getSourceContainer

        public String getSourceContainer()

        The name of the container to mount volumes from.

        Returns:
        The name of the container to mount volumes from.
      • withSourceContainer

        public VolumeFrom withSourceContainer​(String sourceContainer)

        The name of the container to mount volumes from.

        Parameters:
        sourceContainer - The name of the container to mount volumes from.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setReadOnly

        public void setReadOnly​(Boolean readOnly)

        If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

        Parameters:
        readOnly - If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.
      • getReadOnly

        public Boolean getReadOnly()

        If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

        Returns:
        If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.
      • withReadOnly

        public VolumeFrom withReadOnly​(Boolean readOnly)

        If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

        Parameters:
        readOnly - If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isReadOnly

        public Boolean isReadOnly()

        If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

        Returns:
        If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object