Class ImmutableGitInit

java.lang.Object
io.resys.hdes.client.spi.ImmutableGitInit
All Implemented Interfaces:
GitConfig.GitInit

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

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

  • Method Details

    • getBranch

      public String getBranch()
      Specified by:
      getBranch in interface GitConfig.GitInit
      Returns:
      The value of the branch attribute
    • getRemote

      public String getRemote()
      Specified by:
      getRemote in interface GitConfig.GitInit
      Returns:
      The value of the remote attribute
    • getSshPath

      public String getSshPath()
      Specified by:
      getSshPath in interface GitConfig.GitInit
      Returns:
      The value of the sshPath attribute
    • getStorage

      public String getStorage()
      Specified by:
      getStorage in interface GitConfig.GitInit
      Returns:
      The value of the storage attribute
    • withBranch

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

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

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

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

      public boolean equals​(@Nullable Object another)
      This instance is equal to all instances of ImmutableGitInit 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: branch, remote, sshPath, storage.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableGitInit copyOf​(GitConfig.GitInit instance)
      Creates an immutable copy of a GitConfig.GitInit 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 GitInit instance
    • builder

      public static ImmutableGitInit.Builder builder()
      Creates a builder for ImmutableGitInit.
       ImmutableGitInit.builder()
          .branch(String) // required branch
          .remote(String) // required remote
          .sshPath(String) // required sshPath
          .storage(String) // required storage
          .build();
       
      Returns:
      A new ImmutableGitInit builder