Interface PayloadPart.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<PayloadPart.Builder,PayloadPart>
,SdkBuilder<PayloadPart.Builder,PayloadPart>
,SdkPojo
- All Known Subinterfaces:
DefaultChunk.Builder
- All Known Implementing Classes:
PayloadPart.BuilderImpl
- Enclosing class:
- PayloadPart
public static interface PayloadPart.Builder extends SdkPojo, CopyableBuilder<PayloadPart.Builder,PayloadPart>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PayloadPart.Builder
attribution(Consumer<Attribution.Builder> attribution)
Sets the value of the Attribution property for this object.PayloadPart.Builder
attribution(Attribution attribution)
Sets the value of the Attribution property for this object.PayloadPart.Builder
bytes(SdkBytes bytes)
Sets the value of the Bytes property for this object.-
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
-
bytes
PayloadPart.Builder bytes(SdkBytes bytes)
Sets the value of the Bytes property for this object.- Parameters:
bytes
- The new value for the Bytes property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attribution
PayloadPart.Builder attribution(Attribution attribution)
Sets the value of the Attribution property for this object.- Parameters:
attribution
- The new value for the Attribution property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attribution
default PayloadPart.Builder attribution(Consumer<Attribution.Builder> attribution)
Sets the value of the Attribution property for this object. This is a convenience method that creates an instance of theAttribution.Builder
avoiding the need to create one manually viaAttribution.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattribution(Attribution)
.- Parameters:
attribution
- a consumer that will call methods onAttribution.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
attribution(Attribution)
-
-