Class ImmutableGitFileReload

java.lang.Object
io.resys.hdes.client.spi.ImmutableGitFileReload
All Implemented Interfaces:
GitConfig.GitFileReload

@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGitFileReload
extends Object
implements GitConfig.GitFileReload
Immutable implementation of GitConfig.GitFileReload.

Use the builder to create immutable instances: ImmutableGitFileReload.builder().

  • Method Details

    • getTreeValue

      public String getTreeValue()
      Specified by:
      getTreeValue in interface GitConfig.GitFileReload
      Returns:
      The value of the treeValue attribute
    • getId

      public String getId()
      Specified by:
      getId in interface GitConfig.GitFileReload
      Returns:
      The value of the id attribute
    • getBodyType

      public AstBody.AstBodyType getBodyType()
      Specified by:
      getBodyType in interface GitConfig.GitFileReload
      Returns:
      The value of the bodyType attribute
    • getFile

      public Optional<GitConfig.GitFile> getFile()
      Specified by:
      getFile in interface GitConfig.GitFileReload
      Returns:
      The value of the file attribute
    • withTreeValue

      public final ImmutableGitFileReload withTreeValue​(String value)
      Copy the current immutable object by setting a value for the treeValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for treeValue
      Returns:
      A modified copy of the this object
    • withId

      public final ImmutableGitFileReload withId​(String value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy of the this object
    • withBodyType

      public final ImmutableGitFileReload withBodyType​(AstBody.AstBodyType value)
      Copy the current immutable object by setting a value for the bodyType attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for bodyType
      Returns:
      A modified copy of the this object
    • withFile

      public final ImmutableGitFileReload withFile​(GitConfig.GitFile value)
      Copy the current immutable object by setting a present value for the optional file attribute.
      Parameters:
      value - The value for file
      Returns:
      A modified copy of this object
    • withFile

      public final ImmutableGitFileReload withFile​(Optional<? extends GitConfig.GitFile> optional)
      Copy the current immutable object by setting an optional value for the file attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for file
      Returns:
      A modified copy of this object
    • equals

      public boolean equals​(@Nullable Object another)
      This instance is equal to all instances of ImmutableGitFileReload that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: treeValue, id, bodyType, file.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value GitFileReload with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableGitFileReload copyOf​(GitConfig.GitFileReload instance)
      Creates an immutable copy of a GitConfig.GitFileReload value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable GitFileReload instance
    • builder

      public static ImmutableGitFileReload.Builder builder()
      Creates a builder for ImmutableGitFileReload.
       ImmutableGitFileReload.builder()
          .treeValue(String) // required treeValue
          .id(String) // required id
          .bodyType(io.resys.hdes.client.api.ast.AstBody.AstBodyType) // required bodyType
          .file(io.resys.hdes.client.spi.GitConfig.GitFile) // optional file
          .build();
       
      Returns:
      A new ImmutableGitFileReload builder