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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AttributeKeyAndValue.Builderkey(Consumer<AttributeKey.Builder> key)The key of the attribute.AttributeKeyAndValue.Builderkey(AttributeKey key)The key of the attribute.default AttributeKeyAndValue.Buildervalue(Consumer<TypedAttributeValue.Builder> value)The value of the attribute.AttributeKeyAndValue.Buildervalue(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 Detail
-
key
AttributeKeyAndValue.Builder key(AttributeKey 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
default AttributeKeyAndValue.Builder key(Consumer<AttributeKey.Builder> 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:
key(AttributeKey)
-
value
AttributeKeyAndValue.Builder value(TypedAttributeValue 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
default AttributeKeyAndValue.Builder value(Consumer<TypedAttributeValue.Builder> 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:
value(TypedAttributeValue)
-
-