Class ImmutablePathProtocPlugin.Builder

java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.distributions.ImmutablePathProtocPlugin.Builder
Enclosing class:
ImmutablePathProtocPlugin

@Generated(from="PathProtocPlugin", generator="Immutables") public static final class ImmutablePathProtocPlugin.Builder extends Object
Builds instances of type ImmutablePathProtocPlugin. 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 Details

    • from

      Fill a builder with attribute values from the provided io.github.ascopes.protobufmavenplugin.plugins.distributions.PathProtocPlugin instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutablePathProtocPlugin.Builder from(ProtocPlugin instance)
      Fill a builder with attribute values from the provided io.github.ascopes.protobufmavenplugin.plugins.distributions.ProtocPlugin instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • options

      public final ImmutablePathProtocPlugin.Builder options(@Nullable String options)
      Initializes the value for the options attribute.
      Parameters:
      options - The value for options (can be null)
      Returns:
      this builder for use in a chained invocation
    • outputDirectory

      public final ImmutablePathProtocPlugin.Builder outputDirectory(@Nullable Path outputDirectory)
      Initializes the value for the outputDirectory attribute.
      Parameters:
      outputDirectory - The value for outputDirectory (can be null)
      Returns:
      this builder for use in a chained invocation
    • registerAsCompilationRoot

      public final ImmutablePathProtocPlugin.Builder registerAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot)
      Initializes the value for the registerAsCompilationRoot attribute.
      Parameters:
      registerAsCompilationRoot - The value for registerAsCompilationRoot (can be null)
      Returns:
      this builder for use in a chained invocation
    • order

      public final ImmutablePathProtocPlugin.Builder order(int order)
      Initializes the value for the order attribute.

      If not set, this attribute will have a default value as returned by the initializer of order.

      Parameters:
      order - The value for order
      Returns:
      this builder for use in a chained invocation
    • skip

      public final ImmutablePathProtocPlugin.Builder skip(boolean skip)
      Initializes the value for the skip attribute.

      If not set, this attribute will have a default value as returned by the initializer of skip.

      Parameters:
      skip - The value for skip
      Returns:
      this builder for use in a chained invocation
    • name

      public final ImmutablePathProtocPlugin.Builder name(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name (can be null)
      Returns:
      this builder for use in a chained invocation
    • digest

      public final ImmutablePathProtocPlugin.Builder digest(@Nullable Digest digest)
      Initializes the value for the digest attribute.
      Parameters:
      digest - The value for digest (can be null)
      Returns:
      this builder for use in a chained invocation
    • optional

      public final ImmutablePathProtocPlugin.Builder optional(boolean optional)
      Initializes the value for the optional attribute.

      If not set, this attribute will have a default value as returned by the initializer of optional.

      Parameters:
      optional - The value for optional
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutablePathProtocPlugin build()
      Returns:
      An immutable instance of PathProtocPlugin
      Throws:
      IllegalStateException - if any required attributes are missing