public static interface FacetAttributeDefinition.Builder extends SdkPojo, CopyableBuilder<FacetAttributeDefinition.Builder,FacetAttributeDefinition>
Modifier and Type | Method and Description |
---|---|
default FacetAttributeDefinition.Builder |
defaultValue(Consumer<TypedAttributeValue.Builder> defaultValue)
The default value of the attribute (if configured).
|
FacetAttributeDefinition.Builder |
defaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
|
FacetAttributeDefinition.Builder |
isImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
|
FacetAttributeDefinition.Builder |
rules(Map<String,Rule> rules)
Validation rules attached to the attribute definition.
|
FacetAttributeDefinition.Builder |
type(FacetAttributeType type)
The type of the attribute.
|
FacetAttributeDefinition.Builder |
type(String type)
The type of the attribute.
|
copy
applyMutation, build
FacetAttributeDefinition.Builder type(String type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
,
FacetAttributeType
FacetAttributeDefinition.Builder type(FacetAttributeType type)
The type of the attribute.
type
- The type of the attribute.FacetAttributeType
,
FacetAttributeType
FacetAttributeDefinition.Builder defaultValue(TypedAttributeValue defaultValue)
The default value of the attribute (if configured).
defaultValue
- The default value of the attribute (if configured).default FacetAttributeDefinition.Builder defaultValue(Consumer<TypedAttributeValue.Builder> defaultValue)
The default value of the attribute (if configured).
This is a convenience that creates an instance of theTypedAttributeValue.Builder
avoiding the need
to create one manually via TypedAttributeValue.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to defaultValue(TypedAttributeValue)
.defaultValue
- a consumer that will call methods on TypedAttributeValue.Builder
defaultValue(TypedAttributeValue)
FacetAttributeDefinition.Builder isImmutable(Boolean isImmutable)
Whether the attribute is mutable or not.
isImmutable
- Whether the attribute is mutable or not.FacetAttributeDefinition.Builder rules(Map<String,Rule> rules)
Validation rules attached to the attribute definition.
rules
- Validation rules attached to the attribute definition.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.