Package io.resys.hdes.client.spi
Class ImmutableGitFileReload.Builder
java.lang.Object
io.resys.hdes.client.spi.ImmutableGitFileReload.Builder
- Enclosing class:
- ImmutableGitFileReload
@NotThreadSafe public static final class ImmutableGitFileReload.Builder extends Object
Builds instances of type
ImmutableGitFileReload.
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 ImmutableGitFileReload.BuilderbodyType(AstBody.AstBodyType bodyType)Initializes the value for thebodyTypeattribute.ImmutableGitFileReloadbuild()Builds a newImmutableGitFileReload.ImmutableGitFileReload.Builderfile(GitConfig.GitFile file)Initializes the optional valuefileto file.ImmutableGitFileReload.Builderfile(Optional<? extends GitConfig.GitFile> file)Initializes the optional valuefileto file.ImmutableGitFileReload.Builderfrom(GitConfig.GitFileReload instance)Fill a builder with attribute values from the providedGitFileReloadinstance.ImmutableGitFileReload.Builderid(String id)Initializes the value for theidattribute.ImmutableGitFileReload.BuildertreeValue(String treeValue)Initializes the value for thetreeValueattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableGitFileReload.Builder from(GitConfig.GitFileReload instance)Fill a builder with attribute values from the providedGitFileReloadinstance. 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
-
treeValue
Initializes the value for thetreeValueattribute.- Parameters:
treeValue- The value for treeValue- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
bodyType
@CanIgnoreReturnValue public final ImmutableGitFileReload.Builder bodyType(AstBody.AstBodyType bodyType)Initializes the value for thebodyTypeattribute.- Parameters:
bodyType- The value for bodyType- Returns:
thisbuilder for use in a chained invocation
-
file
Initializes the optional valuefileto file.- Parameters:
file- The value for file- Returns:
thisbuilder for chained invocation
-
file
@CanIgnoreReturnValue public final ImmutableGitFileReload.Builder file(Optional<? extends GitConfig.GitFile> file)Initializes the optional valuefileto file.- Parameters:
file- The value for file- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableGitFileReload.- Returns:
- An immutable instance of GitFileReload
- Throws:
IllegalStateException- if any required attributes are missing
-