@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","org.opendaylight.yangtools.yang.model.api.type.RangeConstraint"}) @NotThreadSafe public final class RangeConstraintBuilder extends Object
RangeConstraint.
Initialize attributes and then invoke the build() method to create an
immutable instance.
RangeConstraintBuilder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Constructor and Description |
|---|
RangeConstraintBuilder()
Creates a builder for
RangeConstraint instances. |
| Modifier and Type | Method and Description |
|---|---|
RangeConstraint |
build()
Builds a new
RangeConstraint. |
RangeConstraintBuilder |
description(String description)
Initializes the value for the
description attribute. |
RangeConstraintBuilder |
errorAppTag(String errorAppTag)
Initializes the value for the
errorAppTag attribute. |
RangeConstraintBuilder |
errorMessage(String errorMessage)
Initializes the value for the
errorMessage attribute. |
RangeConstraintBuilder |
max(Number max)
Initializes the value for the
max attribute. |
RangeConstraintBuilder |
min(Number min)
Initializes the value for the
min attribute. |
RangeConstraintBuilder |
reference(String reference)
Initializes the value for the
reference attribute. |
public RangeConstraintBuilder()
RangeConstraint instances.public final RangeConstraintBuilder min(Number min)
min attribute.min - The value for minthis builder for use in a chained invocationpublic final RangeConstraintBuilder max(Number max)
max attribute.max - The value for maxthis builder for use in a chained invocationpublic final RangeConstraintBuilder description(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocationpublic final RangeConstraintBuilder errorAppTag(String errorAppTag)
errorAppTag attribute.errorAppTag - The value for errorAppTagthis builder for use in a chained invocationpublic final RangeConstraintBuilder errorMessage(String errorMessage)
errorMessage attribute.errorMessage - The value for errorMessagethis builder for use in a chained invocationpublic final RangeConstraintBuilder reference(String reference)
reference attribute.reference - The value for referencethis builder for use in a chained invocationpublic RangeConstraint build()
RangeConstraint.IllegalStateException - if any required attributes are missingCopyright © 2018 OpenDaylight. All rights reserved.