@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","org.opendaylight.yangtools.yang.model.api.type.LengthConstraint"}) @NotThreadSafe public final class LengthConstraintBuilder extends Object
LengthConstraint
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
LengthConstraintBuilder
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 |
---|
LengthConstraintBuilder()
Creates a builder for
LengthConstraint instances. |
Modifier and Type | Method and Description |
---|---|
LengthConstraint |
build()
Builds a new
LengthConstraint . |
LengthConstraintBuilder |
description(String description)
Initializes the value for the
description attribute. |
LengthConstraintBuilder |
errorAppTag(String errorAppTag)
Initializes the value for the
errorAppTag attribute. |
LengthConstraintBuilder |
errorMessage(String errorMessage)
Initializes the value for the
errorMessage attribute. |
LengthConstraintBuilder |
max(Number max)
Initializes the value for the
max attribute. |
LengthConstraintBuilder |
min(Number min)
Initializes the value for the
min attribute. |
LengthConstraintBuilder |
reference(String reference)
Initializes the value for the
reference attribute. |
public LengthConstraintBuilder()
LengthConstraint
instances.public final LengthConstraintBuilder min(Number min)
min
attribute.min
- The value for minthis
builder for use in a chained invocationpublic final LengthConstraintBuilder max(Number max)
max
attribute.max
- The value for maxthis
builder for use in a chained invocationpublic final LengthConstraintBuilder description(String description)
description
attribute.description
- The value for descriptionthis
builder for use in a chained invocationpublic final LengthConstraintBuilder errorAppTag(String errorAppTag)
errorAppTag
attribute.errorAppTag
- The value for errorAppTagthis
builder for use in a chained invocationpublic final LengthConstraintBuilder errorMessage(String errorMessage)
errorMessage
attribute.errorMessage
- The value for errorMessagethis
builder for use in a chained invocationpublic final LengthConstraintBuilder reference(String reference)
reference
attribute.reference
- The value for referencethis
builder for use in a chained invocationpublic LengthConstraint build()
LengthConstraint
.IllegalStateException
- if any required attributes are missingCopyright © 2018 OpenDaylight. All rights reserved.