Interface FacetAttributeDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FacetAttributeDefinition.Builder,
,FacetAttributeDefinition> SdkBuilder<FacetAttributeDefinition.Builder,
,FacetAttributeDefinition> SdkPojo
- Enclosing class:
FacetAttributeDefinition
public static interface FacetAttributeDefinition.Builder
extends SdkPojo, CopyableBuilder<FacetAttributeDefinition.Builder,FacetAttributeDefinition>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FacetAttributeDefinition.Builder
defaultValue
(Consumer<TypedAttributeValue.Builder> defaultValue) The default value of the attribute (if configured).defaultValue
(TypedAttributeValue defaultValue) The default value of the attribute (if configured).isImmutable
(Boolean isImmutable) Whether the attribute is mutable or not.Validation rules attached to the attribute definition.The type of the attribute.type
(FacetAttributeType type) The type of the attribute.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
type
The type of the attribute.
- Parameters:
type
- The type of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the attribute.
- Parameters:
type
- The type of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultValue
The default value of the attribute (if configured).
- Parameters:
defaultValue
- The default value of the attribute (if configured).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultValue
default FacetAttributeDefinition.Builder defaultValue(Consumer<TypedAttributeValue.Builder> defaultValue) The default value of the attribute (if configured).
This is a convenience method that creates an instance of theTypedAttributeValue.Builder
avoiding the need to create one manually viaTypedAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultValue(TypedAttributeValue)
.- Parameters:
defaultValue
- a consumer that will call methods onTypedAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isImmutable
Whether the attribute is mutable or not.
- Parameters:
isImmutable
- Whether the attribute is mutable or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Validation rules attached to the attribute definition.
- Parameters:
rules
- Validation rules attached to the attribute definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-