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 tojvmArgs
list.addAllJvmConfigArgs
(Iterable<@Nullable String> elements) Adds elements tojvmConfigArgs
list.addJvmArgs
(@Nullable String element) Adds one element tojvmArgs
list.addJvmArgs
(@Nullable String... elements) Adds elements tojvmArgs
list.addJvmConfigArgs
(@Nullable String element) Adds one element tojvmConfigArgs
list.addJvmConfigArgs
(@Nullable String... elements) Adds elements tojvmConfigArgs
list.artifactId
(String artifactId) Initializes the value for theartifactId
attribute.build()
Builds a newImmutableMavenProtocPlugin
.classifier
(@Nullable String classifier) Initializes the value for theclassifier
attribute.from
(MavenArtifact instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
instance.from
(MavenProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugin
instance.from
(MavenProtocPluginBean instance) Fill a builder with attribute values from the providedMavenProtocPluginBean
instance.from
(ProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.ProtocPlugin
instance.Initializes the value for thegroupId
attribute.Sets or replaces all elements forjvmArgs
list.jvmConfigArgs
(@Nullable Iterable<@Nullable String> elements) Sets or replaces all elements forjvmConfigArgs
list.Initializes the value for themainClass
attribute.Initializes the value for theoptions
attribute.order
(int order) Initializes the value for theorder
attribute.outputDirectory
(@Nullable Path outputDirectory) Initializes the value for theoutputDirectory
attribute.registerAsCompilationRoot
(@Nullable Boolean registerAsCompilationRoot) Initializes the value for theregisterAsCompilationRoot
attribute.skip
(boolean skip) Initializes the value for theskip
attribute.Initializes the value for thetype
attribute.Initializes the value for theversion
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedMavenProtocPluginBean
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.MavenProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.ProtocPlugin
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
groupId
Initializes the value for thegroupId
attribute.- Parameters:
groupId
- The value for groupId (can benull
)- Returns:
this
builder for use in a chained invocation
-
artifactId
Initializes the value for theartifactId
attribute.- Parameters:
artifactId
- The value for artifactId (can benull
)- Returns:
this
builder for use in a chained invocation
-
type
Initializes the value for thetype
attribute.- Parameters:
type
- The value for type (can benull
)- Returns:
this
builder for use in a chained invocation
-
classifier
Initializes the value for theclassifier
attribute.- Parameters:
classifier
- The value for classifier (can benull
)- Returns:
this
builder for use in a chained invocation
-
options
Initializes the value for theoptions
attribute.- Parameters:
options
- The value for options (can benull
)- Returns:
this
builder for use in a chained invocation
-
outputDirectory
Initializes the value for theoutputDirectory
attribute.- Parameters:
outputDirectory
- The value for outputDirectory (can benull
)- Returns:
this
builder for use in a chained invocation
-
registerAsCompilationRoot
public final ImmutableMavenProtocPlugin.Builder registerAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot) Initializes the value for theregisterAsCompilationRoot
attribute.- Parameters:
registerAsCompilationRoot
- The value for registerAsCompilationRoot (can benull
)- Returns:
this
builder for use in a chained invocation
-
order
-
skip
-
version
Initializes the value for theversion
attribute.- Parameters:
version
- The value for version (can benull
)- Returns:
this
builder for use in a chained invocation
-
addJvmArgs
Adds one element tojvmArgs
list.- Parameters:
element
- A jvmArgs element- Returns:
this
builder for use in a chained invocation
-
addJvmArgs
Adds elements tojvmArgs
list.- Parameters:
elements
- An array of jvmArgs elements- Returns:
this
builder for use in a chained invocation
-
jvmArgs
public final ImmutableMavenProtocPlugin.Builder jvmArgs(@Nullable Iterable<@Nullable String> elements) Sets or replaces all elements forjvmArgs
list.- Parameters:
elements
- An iterable of jvmArgs elements- Returns:
this
builder for use in a chained invocation
-
addAllJvmArgs
Adds elements tojvmArgs
list.- Parameters:
elements
- An iterable of jvmArgs elements- Returns:
this
builder for use in a chained invocation
-
addJvmConfigArgs
Adds one element tojvmConfigArgs
list.- Parameters:
element
- A jvmConfigArgs element- Returns:
this
builder for use in a chained invocation
-
addJvmConfigArgs
Adds elements tojvmConfigArgs
list.- Parameters:
elements
- An array of jvmConfigArgs elements- Returns:
this
builder for use in a chained invocation
-
jvmConfigArgs
public final ImmutableMavenProtocPlugin.Builder jvmConfigArgs(@Nullable Iterable<@Nullable String> elements) Sets or replaces all elements forjvmConfigArgs
list.- Parameters:
elements
- An iterable of jvmConfigArgs elements- Returns:
this
builder for use in a chained invocation
-
addAllJvmConfigArgs
public final ImmutableMavenProtocPlugin.Builder addAllJvmConfigArgs(Iterable<@Nullable String> elements) Adds elements tojvmConfigArgs
list.- Parameters:
elements
- An iterable of jvmConfigArgs elements- Returns:
this
builder for use in a chained invocation
-
mainClass
Initializes the value for themainClass
attribute.- Parameters:
mainClass
- The value for mainClass (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableMavenProtocPlugin
.- Returns:
- An immutable instance of MavenProtocPlugin
- Throws:
IllegalStateException
- if any required attributes are missing
-