Class ImmutableMavenProtocPlugin.Builder
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.ImmutableMavenProtocPlugin.Builder
- Enclosing class:
ImmutableMavenProtocPlugin
@Generated(from="MavenProtocPlugin",
generator="Immutables")
public static final class ImmutableMavenProtocPlugin.Builder
extends Object
Builds instances of type
ImmutableMavenProtocPlugin.
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 TypeMethodDescriptionaddAllJvmArgs(Iterable<@Nullable String> elements) Adds elements tojvmArgslist.addAllJvmConfigArgs(Iterable<@Nullable String> elements) Adds elements tojvmConfigArgslist.addJvmArgs(@Nullable String element) Adds one element tojvmArgslist.addJvmArgs(@Nullable String... elements) Adds elements tojvmArgslist.addJvmConfigArgs(@Nullable String element) Adds one element tojvmConfigArgslist.addJvmConfigArgs(@Nullable String... elements) Adds elements tojvmConfigArgslist.artifactId(String artifactId) Initializes the value for theartifactIdattribute.build()Builds a newImmutableMavenProtocPlugin.classifier(@Nullable String classifier) Initializes the value for theclassifierattribute.from(MavenArtifact instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.dependencies.MavenArtifactinstance.from(MavenProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugininstance.from(MavenProtocPluginBean instance) Fill a builder with attribute values from the providedMavenProtocPluginBeaninstance.from(ProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.ProtocPlugininstance.Initializes the value for thegroupIdattribute.Sets or replaces all elements forjvmArgslist.jvmConfigArgs(@Nullable Iterable<@Nullable String> elements) Sets or replaces all elements forjvmConfigArgslist.Initializes the value for themainClassattribute.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 thetypeattribute.Initializes the value for theversionattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedMavenProtocPluginBeaninstance.- 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.MavenProtocPlugininstance.- 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.ProtocPlugininstance.- 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.dependencies.MavenArtifactinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
groupId
Initializes the value for thegroupIdattribute.- Parameters:
groupId- The value for groupId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
artifactId
Initializes the value for theartifactIdattribute.- Parameters:
artifactId- The value for artifactId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
classifier
Initializes the value for theclassifierattribute.- Parameters:
classifier- The value for classifier (can benull)- 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 ImmutableMavenProtocPlugin.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
-
version
Initializes the value for theversionattribute.- Parameters:
version- The value for version (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addJvmArgs
Adds one element tojvmArgslist.- Parameters:
element- A jvmArgs element- Returns:
thisbuilder for use in a chained invocation
-
addJvmArgs
Adds elements tojvmArgslist.- Parameters:
elements- An array of jvmArgs elements- Returns:
thisbuilder for use in a chained invocation
-
jvmArgs
public final ImmutableMavenProtocPlugin.Builder jvmArgs(@Nullable Iterable<@Nullable String> elements) Sets or replaces all elements forjvmArgslist.- Parameters:
elements- An iterable of jvmArgs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllJvmArgs
Adds elements tojvmArgslist.- Parameters:
elements- An iterable of jvmArgs elements- Returns:
thisbuilder for use in a chained invocation
-
addJvmConfigArgs
Adds one element tojvmConfigArgslist.- Parameters:
element- A jvmConfigArgs element- Returns:
thisbuilder for use in a chained invocation
-
addJvmConfigArgs
Adds elements tojvmConfigArgslist.- Parameters:
elements- An array of jvmConfigArgs elements- Returns:
thisbuilder for use in a chained invocation
-
jvmConfigArgs
public final ImmutableMavenProtocPlugin.Builder jvmConfigArgs(@Nullable Iterable<@Nullable String> elements) Sets or replaces all elements forjvmConfigArgslist.- Parameters:
elements- An iterable of jvmConfigArgs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllJvmConfigArgs
public final ImmutableMavenProtocPlugin.Builder addAllJvmConfigArgs(Iterable<@Nullable String> elements) Adds elements tojvmConfigArgslist.- Parameters:
elements- An iterable of jvmConfigArgs elements- Returns:
thisbuilder for use in a chained invocation
-
mainClass
Initializes the value for themainClassattribute.- Parameters:
mainClass- The value for mainClass (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableMavenProtocPlugin.- Returns:
- An immutable instance of MavenProtocPlugin
- Throws:
IllegalStateException- if any required attributes are missing
-