Interface Invitation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Invitation.Builder,
,Invitation> SdkBuilder<Invitation.Builder,
,Invitation> SdkPojo
- Enclosing class:
Invitation
@Mutable
@NotThreadSafe
public static interface Invitation.Builder
extends SdkPojo, CopyableBuilder<Invitation.Builder,Invitation>
-
Method Summary
Modifier and TypeMethodDescriptionA message accompanying the invitation.default Invitation.Builder
payload
(Consumer<Payload.Builder> payload) Sets the value of the Payload property for this object.Sets the value of the Payload property for this object.default Invitation.Builder
receiver
(Consumer<Receiver.Builder> receiver) Sets the value of the Receiver property for this object.Sets the value of the Receiver 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, sdkFieldNameToField, sdkFields
-
Method Details
-
message
A message accompanying the invitation.
- Parameters:
message
- A message accompanying the invitation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
Sets the value of the Payload property for this object.- Parameters:
payload
- The new value for the Payload property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
Sets the value of the Payload property for this object. This is a convenience method that creates an instance of thePayload.Builder
avoiding the need to create one manually viaPayload.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topayload(Payload)
.- Parameters:
payload
- a consumer that will call methods onPayload.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
receiver
Sets the value of the Receiver property for this object.- Parameters:
receiver
- The new value for the Receiver property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
receiver
Sets the value of the Receiver property for this object. This is a convenience method that creates an instance of theReceiver.Builder
avoiding the need to create one manually viaReceiver.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreceiver(Receiver)
.- Parameters:
receiver
- a consumer that will call methods onReceiver.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-