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 Details

    • from

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

      public final ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin.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
    • url

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

      public final ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin.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 ImmutableUriProtocPlugin build()
      Returns:
      An immutable instance of UriProtocPlugin
      Throws:
      IllegalStateException - if any required attributes are missing