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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FacetAttributeDefinition.BuilderdefaultValue(Consumer<TypedAttributeValue.Builder> defaultValue)The default value of the attribute (if configured).FacetAttributeDefinition.BuilderdefaultValue(TypedAttributeValue defaultValue)The default value of the attribute (if configured).FacetAttributeDefinition.BuilderisImmutable(Boolean isImmutable)Whether the attribute is mutable or not.FacetAttributeDefinition.Builderrules(Map<String,Rule> rules)Validation rules attached to the attribute definition.FacetAttributeDefinition.Buildertype(String type)The type of the attribute.FacetAttributeDefinition.Buildertype(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 Detail
-
type
FacetAttributeDefinition.Builder type(String 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:
FacetAttributeType,FacetAttributeType
-
type
FacetAttributeDefinition.Builder type(FacetAttributeType 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:
FacetAttributeType,FacetAttributeType
-
defaultValue
FacetAttributeDefinition.Builder defaultValue(TypedAttributeValue 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.Builderavoiding the need to create one manually viaTypedAttributeValue.builder().When the
Consumercompletes,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:
defaultValue(TypedAttributeValue)
-
isImmutable
FacetAttributeDefinition.Builder isImmutable(Boolean 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
FacetAttributeDefinition.Builder rules(Map<String,Rule> 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.
-
-