Class ImmutableUriProtocPlugin.Builder
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.distributions.ImmutableUriProtocPlugin.Builder
- Enclosing class:
ImmutableUriProtocPlugin
@Generated(from="UriProtocPlugin",
generator="Immutables")
public static final class ImmutableUriProtocPlugin.Builder
extends Object
Builds instances of type
ImmutableUriProtocPlugin.
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 TypeMethodDescriptionbuild()Builds a newImmutableUriProtocPlugin.Initializes the value for thedigestattribute.from(ProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.ProtocPlugininstance.from(UriProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.UriProtocPlugininstance.optional(boolean optional) Initializes the value for theoptionalattribute.Initializes the value for theoptionsattribute.order(int order) Initializes the value for theorderattribute.outputDirectory(@Nullable Path outputDirectory) Initializes the value for theoutputDirectoryattribute.registerAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot) Initializes the value for theregisterAsCompilationRootattribute.skip(boolean skip) Initializes the value for theskipattribute.Initializes the value for theurlattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.UriProtocPlugininstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.distributions.ProtocPlugininstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
options
Initializes the value for theoptionsattribute.- Parameters:
options- The value for options (can benull)- Returns:
thisbuilder for use in a chained invocation
-
outputDirectory
Initializes the value for theoutputDirectoryattribute.- Parameters:
outputDirectory- The value for outputDirectory (can benull)- Returns:
thisbuilder for use in a chained invocation
-
registerAsCompilationRoot
public final ImmutableUriProtocPlugin.Builder registerAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot) Initializes the value for theregisterAsCompilationRootattribute.- Parameters:
registerAsCompilationRoot- The value for registerAsCompilationRoot (can benull)- Returns:
thisbuilder for use in a chained invocation
-
order
-
skip
-
url
Initializes the value for theurlattribute.- Parameters:
url- The value for url (can benull)- Returns:
thisbuilder for use in a chained invocation
-
digest
Initializes the value for thedigestattribute.- Parameters:
digest- The value for digest (can benull)- Returns:
thisbuilder for use in a chained invocation
-
optional
-
build
Builds a newImmutableUriProtocPlugin.- Returns:
- An immutable instance of UriProtocPlugin
- Throws:
IllegalStateException- if any required attributes are missing
-