Class StoreAttributeDefinition.Builder
- java.lang.Object
-
- com.unboundid.directory.sdk.broker.types.StoreAttributeDefinition.Builder
-
- Enclosing class:
- StoreAttributeDefinition
public static class StoreAttributeDefinition.Builder extends java.lang.Object
Builder class to build an instance of StoreAttributeDefinition.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Create a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreAttributeDefinition.Builder
addSubAttributes(StoreAttributeDefinition... subAttributes)
Adds sub-attributes for a complex datatype attribute.StoreAttributeDefinition
build()
Builds a new StoreAttributeDefinition.StoreAttributeDefinition.Builder
clear()
Clears all values in this builder, so that it can be reused.StoreAttributeDefinition.Builder
setDescription(java.lang.String description)
Sets the description of the attribute.StoreAttributeDefinition.Builder
setMultiValued(boolean multiValued)
Sets a boolean indicating if the attribute is multi-valued.StoreAttributeDefinition.Builder
setName(java.lang.String name)
Sets the attribute name.StoreAttributeDefinition.Builder
setType(StoreAttributeDefinition.Type type)
Sets the type of the attribute.
-
-
-
Constructor Detail
-
Builder
public Builder()
Create a new builder.
-
-
Method Detail
-
setName
public StoreAttributeDefinition.Builder setName(java.lang.String name)
Sets the attribute name.- Parameters:
name
- the attribute name.- Returns:
- this
-
setType
public StoreAttributeDefinition.Builder setType(StoreAttributeDefinition.Type type)
Sets the type of the attribute.- Parameters:
type
- the type of the attribute.- Returns:
- this.
-
addSubAttributes
public StoreAttributeDefinition.Builder addSubAttributes(StoreAttributeDefinition... subAttributes)
Adds sub-attributes for a complex datatype attribute.- Parameters:
subAttributes
- The sub-attributes of the attribute.- Returns:
- this.
-
setMultiValued
public StoreAttributeDefinition.Builder setMultiValued(boolean multiValued)
Sets a boolean indicating if the attribute is multi-valued.- Parameters:
multiValued
- a boolean indicating if the attribute is multi-valued.- Returns:
- this.
-
setDescription
public StoreAttributeDefinition.Builder setDescription(java.lang.String description)
Sets the description of the attribute.- Parameters:
description
- the description of the attribute.- Returns:
- this.
-
clear
public StoreAttributeDefinition.Builder clear()
Clears all values in this builder, so that it can be reused.- Returns:
- this.
-
build
public StoreAttributeDefinition build()
Builds a new StoreAttributeDefinition.- Returns:
- a new StoreAttributeDefinition.
-
-