Class ImmutableBinaryMavenProtocPlugin.Builder
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.ImmutableBinaryMavenProtocPlugin.Builder
- Enclosing class:
ImmutableBinaryMavenProtocPlugin
@Generated(from="BinaryMavenProtocPlugin",
generator="Immutables")
public static final class ImmutableBinaryMavenProtocPlugin.Builder
extends Object
Builds instances of type
ImmutableBinaryMavenProtocPlugin.
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 TypeMethodDescriptionartifactId(String artifactId) Initializes the value for theartifactIdattribute.build()Builds a newImmutableBinaryMavenProtocPlugin.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(BinaryMavenProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.BinaryMavenProtocPlugininstance.from(BinaryMavenProtocPluginBean instance) Fill a builder with attribute values from the providedBinaryMavenProtocPluginBeaninstance.from(ProtocPlugin instance) Fill a builder with attribute values from the providedio.github.ascopes.protobufmavenplugin.plugins.ProtocPlugininstance.Initializes the value for thegroupIdattribute.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 providedBinaryMavenProtocPluginBeaninstance.- 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
-
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.plugins.BinaryMavenProtocPlugininstance.- 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
public final ImmutableBinaryMavenProtocPlugin.Builder outputDirectory(@Nullable Path 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 ImmutableBinaryMavenProtocPlugin.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
-
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
-
version
Initializes the value for theversionattribute.- Parameters:
version- The value for version (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableBinaryMavenProtocPlugin.- Returns:
- An immutable instance of BinaryMavenProtocPlugin
- Throws:
IllegalStateException- if any required attributes are missing
-