Package io.resys.hdes.client.spi
Class ImmutableGitInit.Builder
java.lang.Object
io.resys.hdes.client.spi.ImmutableGitInit.Builder
- Enclosing class:
- ImmutableGitInit
@NotThreadSafe public static final class ImmutableGitInit.Builder extends Object
Builds instances of type
ImmutableGitInit.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and Type Method Description ImmutableGitInit.Builderbranch(String branch)Initializes the value for thebranchattribute.ImmutableGitInitbuild()Builds a newImmutableGitInit.ImmutableGitInit.Builderfrom(GitConfig.GitInit instance)Fill a builder with attribute values from the providedGitInitinstance.ImmutableGitInit.Builderremote(String remote)Initializes the value for theremoteattribute.ImmutableGitInit.BuildersshPath(String sshPath)Initializes the value for thesshPathattribute.ImmutableGitInit.Builderstorage(String storage)Initializes the value for thestorageattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedGitInitinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
branch
Initializes the value for thebranchattribute.- Parameters:
branch- The value for branch- Returns:
thisbuilder for use in a chained invocation
-
remote
Initializes the value for theremoteattribute.- Parameters:
remote- The value for remote- Returns:
thisbuilder for use in a chained invocation
-
sshPath
Initializes the value for thesshPathattribute.- Parameters:
sshPath- The value for sshPath- Returns:
thisbuilder for use in a chained invocation
-
storage
Initializes the value for thestorageattribute.- Parameters:
storage- The value for storage- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableGitInit.- Returns:
- An immutable instance of GitInit
- Throws:
IllegalStateException- if any required attributes are missing
-