Class ImmutableMavenExclusion.Builder

java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.ImmutableMavenExclusion.Builder
Enclosing class:
ImmutableMavenExclusion

@Generated(from="MavenExclusion", generator="Immutables") public static final class ImmutableMavenExclusion.Builder extends Object
Builds instances of type ImmutableMavenExclusion. 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 ImmutableMavenExclusion.Builder from(MavenExclusion instance)
      Fill a builder with attribute values from the provided MavenExclusion instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • groupId

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

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

      public final ImmutableMavenExclusion.Builder classifier(String classifier)
      Initializes the value for the classifier attribute.

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

      Parameters:
      classifier - The value for classifier
      Returns:
      this builder for use in a chained invocation
    • type

      public final ImmutableMavenExclusion.Builder type(String type)
      Initializes the value for the type attribute.

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

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

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