Package io.resys.hdes.client.spi
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().
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGitInit.BuilderBuilds instances of typeImmutableGitInit. -
Method Summary
Modifier and Type Method Description static ImmutableGitInit.Builderbuilder()Creates a builder forImmutableGitInit.static ImmutableGitInitcopyOf(GitConfig.GitInit instance)Creates an immutable copy of aGitConfig.GitInitvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGitInitthat have equal attribute values.StringgetBranch()StringgetRemote()StringgetSshPath()StringgetStorage()inthashCode()Computes a hash code from attributes:branch,remote,sshPath,storage.StringtoString()Prints the immutable valueGitInitwith attribute values.ImmutableGitInitwithBranch(String value)Copy the current immutable object by setting a value for thebranchattribute.ImmutableGitInitwithRemote(String value)Copy the current immutable object by setting a value for theremoteattribute.ImmutableGitInitwithSshPath(String value)Copy the current immutable object by setting a value for thesshPathattribute.ImmutableGitInitwithStorage(String value)Copy the current immutable object by setting a value for thestorageattribute.
-
Method Details
-
getBranch
- Specified by:
getBranchin interfaceGitConfig.GitInit- Returns:
- The value of the
branchattribute
-
getRemote
- Specified by:
getRemotein interfaceGitConfig.GitInit- Returns:
- The value of the
remoteattribute
-
getSshPath
- Specified by:
getSshPathin interfaceGitConfig.GitInit- Returns:
- The value of the
sshPathattribute
-
getStorage
- Specified by:
getStoragein interfaceGitConfig.GitInit- Returns:
- The value of the
storageattribute
-
withBranch
Copy the current immutable object by setting a value for thebranchattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for branch- Returns:
- A modified copy of the
thisobject
-
withRemote
Copy the current immutable object by setting a value for theremoteattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for remote- Returns:
- A modified copy of the
thisobject
-
withSshPath
Copy the current immutable object by setting a value for thesshPathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sshPath- Returns:
- A modified copy of the
thisobject
-
withStorage
Copy the current immutable object by setting a value for thestorageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for storage- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableGitInitthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:branch,remote,sshPath,storage. -
toString
Prints the immutable valueGitInitwith attribute values. -
copyOf
Creates an immutable copy of aGitConfig.GitInitvalue. 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
Creates a builder forImmutableGitInit.ImmutableGitInit.builder() .branch(String) // requiredbranch.remote(String) // requiredremote.sshPath(String) // requiredsshPath.storage(String) // requiredstorage.build();- Returns:
- A new ImmutableGitInit builder
-