Class Property.Builder
java.lang.Object
io.micronaut.starter.feature.buildtools.maven.Property.Builder
- Enclosing class:
- Property
Builder class for creating Property instances.
Provides a fluent API for setting property name and value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Property
build()
Builds a new Property instance with the configured name and value.@NonNull Property.Builder
Sets the name of the property.@NonNull Property.Builder
Sets the value of the property.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the name of the property.- Parameters:
name
- The property name.- Returns:
- This builder instance.
-
value
Sets the value of the property.- Parameters:
value
- The property value.- Returns:
- This builder instance.
-
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
-