@NotThreadSafe public static final class ImmutableRangeConstraint.Builder extends Object
ImmutableRangeConstraint.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableRangeConstraint |
build()
Builds a new
ImmutableRangeConstraint. |
ImmutableRangeConstraint.Builder |
from(RangeConstraint instance)
Fill a builder with attribute values from the provided
RangeConstraint instance. |
ImmutableRangeConstraint.Builder |
maxRange(BigDecimal maxRange)
Initializes the value for the
maxRange attribute. |
ImmutableRangeConstraint.Builder |
minRange(BigDecimal minRange)
Initializes the value for the
minRange attribute. |
public final ImmutableRangeConstraint.Builder from(RangeConstraint instance)
RangeConstraint instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableRangeConstraint.Builder minRange(BigDecimal minRange)
minRange attribute.minRange - The value for minRangethis builder for use in a chained invocationpublic final ImmutableRangeConstraint.Builder maxRange(BigDecimal maxRange)
maxRange attribute.maxRange - The value for maxRangethis builder for use in a chained invocationpublic ImmutableRangeConstraint build()
ImmutableRangeConstraint.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.