Interface AttributeKeyAndValue.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AttributeKeyAndValue.Builder,,AttributeKeyAndValue> SdkBuilder<AttributeKeyAndValue.Builder,,AttributeKeyAndValue> SdkPojo
- Enclosing class:
AttributeKeyAndValue
@Mutable
@NotThreadSafe
public static interface AttributeKeyAndValue.Builder
extends SdkPojo, CopyableBuilder<AttributeKeyAndValue.Builder,AttributeKeyAndValue>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttributeKeyAndValue.Builderkey(Consumer<AttributeKey.Builder> key) The key of the attribute.key(AttributeKey key) The key of the attribute.default AttributeKeyAndValue.Buildervalue(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaAttributeKey.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaTypedAttributeValue.builder().When the
Consumercompletes,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:
-