Interface AttributeKeyAndValue.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AttributeKeyAndValue.Builder,
,AttributeKeyAndValue> SdkBuilder<AttributeKeyAndValue.Builder,
,AttributeKeyAndValue> SdkPojo
- Enclosing class:
AttributeKeyAndValue
public static interface AttributeKeyAndValue.Builder
extends SdkPojo, CopyableBuilder<AttributeKeyAndValue.Builder,AttributeKeyAndValue>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttributeKeyAndValue.Builder
key
(Consumer<AttributeKey.Builder> key) The key of the attribute.key
(AttributeKey key) The key of the attribute.default AttributeKeyAndValue.Builder
value
(Consumer<TypedAttributeValue.Builder> value) The value of the attribute.value
(TypedAttributeValue value) The value 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
-
key
The key of the attribute.
- Parameters:
key
- The key of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
The key of the attribute.
This is a convenience method that creates an instance of theAttributeKey.Builder
avoiding the need to create one manually viaAttributeKey.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokey(AttributeKey)
.- Parameters:
key
- a consumer that will call methods onAttributeKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
The value of the attribute.
- Parameters:
value
- The value of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value of the attribute.
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 tovalue(TypedAttributeValue)
.- Parameters:
value
- 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:
-