Interface MetadataAttribute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetadataAttribute.Builder,MetadataAttribute>,SdkBuilder<MetadataAttribute.Builder,MetadataAttribute>,SdkPojo
- Enclosing class:
- MetadataAttribute
@Mutable @NotThreadSafe public static interface MetadataAttribute.Builder extends SdkPojo, CopyableBuilder<MetadataAttribute.Builder,MetadataAttribute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetadataAttribute.Builderkey(String key)The key of the metadata attribute.default MetadataAttribute.Buildervalue(Consumer<MetadataAttributeValue.Builder> value)Contains the value of the metadata attribute.MetadataAttribute.Buildervalue(MetadataAttributeValue value)Contains the value of the metadata 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
key
MetadataAttribute.Builder key(String key)
The key of the metadata attribute.
- Parameters:
key- The key of the metadata attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
MetadataAttribute.Builder value(MetadataAttributeValue value)
Contains the value of the metadata attribute.
- Parameters:
value- Contains the value of the metadata attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default MetadataAttribute.Builder value(Consumer<MetadataAttributeValue.Builder> value)
Contains the value of the metadata attribute.
This is a convenience method that creates an instance of theMetadataAttributeValue.Builderavoiding the need to create one manually viaMetadataAttributeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(MetadataAttributeValue).- Parameters:
value- a consumer that will call methods onMetadataAttributeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(MetadataAttributeValue)
-
-