@NotThreadSafe public final class IdentitySchemaNodeBuilder extends Object
IdentitySchemaNode
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
IdentitySchemaNodeBuilder
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 |
---|
IdentitySchemaNodeBuilder()
Creates a builder for
IdentitySchemaNode instances. |
public IdentitySchemaNodeBuilder()
IdentitySchemaNode
instances.public final IdentitySchemaNodeBuilder addBaseIdentities(IdentitySchemaNode element)
baseIdentities
set.element
- A baseIdentities elementthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder addBaseIdentities(IdentitySchemaNode... elements)
baseIdentities
set.elements
- An array of baseIdentities elementsthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder addAllBaseIdentities(Iterable<? extends IdentitySchemaNode> elements)
baseIdentities
set.elements
- An iterable of baseIdentities elementsthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder addDerivedIdentities(IdentitySchemaNode element)
derivedIdentities
set.element
- A derivedIdentities elementthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder addDerivedIdentities(IdentitySchemaNode... elements)
derivedIdentities
set.elements
- An array of derivedIdentities elementsthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder addAllDerivedIdentities(Iterable<? extends IdentitySchemaNode> elements)
derivedIdentities
set.elements
- An iterable of derivedIdentities elementsthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder qName(QName qName)
qName
attribute.qName
- The value for qNamethis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder path(SchemaPath path)
path
attribute.path
- The value for paththis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder status(Status status)
status
attribute.status
- The value for statusthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder description(String description)
description
to description.description
- The value for descriptionthis
builder for chained invocationpublic final IdentitySchemaNodeBuilder description(Optional<String> description)
description
to description.description
- The value for descriptionthis
builder for use in a chained invocationpublic final IdentitySchemaNodeBuilder reference(String reference)
reference
to reference.reference
- The value for referencethis
builder for chained invocationpublic final IdentitySchemaNodeBuilder reference(Optional<String> reference)
reference
to reference.reference
- The value for referencethis
builder for use in a chained invocationpublic IdentitySchemaNode build()
IdentitySchemaNode
.IllegalStateException
- if any required attributes are missingCopyright © 2019 OpenDaylight. All rights reserved.