Class Property.Builder

java.lang.Object
io.micronaut.starter.feature.buildtools.maven.Property.Builder
Enclosing class:
Property

public static class Property.Builder extends Object
Builder class for creating Property instances. Provides a fluent API for setting property name and value.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      @NonNull public @NonNull Property.Builder name(@NonNull @NonNull String name)
      Sets the name of the property.
      Parameters:
      name - The property name.
      Returns:
      This builder instance.
    • value

      @NonNull public @NonNull Property.Builder value(@NonNull @NonNull String value)
      Sets the value of the property.
      Parameters:
      value - The property value.
      Returns:
      This builder instance.
    • build

      @NonNull public @NonNull Property build()
      Builds a new Property instance with the configured name and value.
      Returns:
      a new Property instance
      Throws:
      IllegalArgumentException - if name or value is null