Interface Invitation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Invitation.Builder,Invitation>,SdkBuilder<Invitation.Builder,Invitation>,SdkPojo
- Enclosing class:
- Invitation
public static interface Invitation.Builder extends SdkPojo, CopyableBuilder<Invitation.Builder,Invitation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Invitation.Builderarn(String arn)The Amazon Resource Name (ARN) of the invitation.Invitation.BuildercreationDate(Instant creationDate)The date and time that the invitation was created.Invitation.BuilderexpirationDate(Instant expirationDate)The date and time that the invitation expires.Invitation.BuilderinvitationId(String invitationId)The unique identifier for the invitation.default Invitation.BuildernetworkSummary(Consumer<NetworkSummary.Builder> networkSummary)Sets the value of the NetworkSummary property for this object.Invitation.BuildernetworkSummary(NetworkSummary networkSummary)Sets the value of the NetworkSummary property for this object.Invitation.Builderstatus(String status)The status of the invitation:Invitation.Builderstatus(InvitationStatus status)The status of the invitation:-
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
-
invitationId
Invitation.Builder invitationId(String invitationId)
The unique identifier for the invitation.
- Parameters:
invitationId- The unique identifier for the invitation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
Invitation.Builder creationDate(Instant creationDate)
The date and time that the invitation was created.
- Parameters:
creationDate- The date and time that the invitation was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationDate
Invitation.Builder expirationDate(Instant expirationDate)
The date and time that the invitation expires. This is the
CreationDateplus theProposalDurationInHoursthat is specified in theProposalThresholdPolicy. After this date and time, the invitee can no longer create a member and join the network using thisInvitationId.- Parameters:
expirationDate- The date and time that the invitation expires. This is theCreationDateplus theProposalDurationInHoursthat is specified in theProposalThresholdPolicy. After this date and time, the invitee can no longer create a member and join the network using thisInvitationId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Invitation.Builder status(String status)
The status of the invitation:
-
PENDING- The invitee hasn't created a member to join the network, and the invitation hasn't yet expired. -
ACCEPTING- The invitee has begun creating a member, and creation hasn't yet completed. -
ACCEPTED- The invitee created a member and joined the network using theInvitationID. -
REJECTED- The invitee rejected the invitation. -
EXPIRED- The invitee neither created a member nor rejected the invitation before theExpirationDate.
- Parameters:
status- The status of the invitation:-
PENDING- The invitee hasn't created a member to join the network, and the invitation hasn't yet expired. -
ACCEPTING- The invitee has begun creating a member, and creation hasn't yet completed. -
ACCEPTED- The invitee created a member and joined the network using theInvitationID. -
REJECTED- The invitee rejected the invitation. -
EXPIRED- The invitee neither created a member nor rejected the invitation before theExpirationDate.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InvitationStatus,InvitationStatus
-
-
status
Invitation.Builder status(InvitationStatus status)
The status of the invitation:
-
PENDING- The invitee hasn't created a member to join the network, and the invitation hasn't yet expired. -
ACCEPTING- The invitee has begun creating a member, and creation hasn't yet completed. -
ACCEPTED- The invitee created a member and joined the network using theInvitationID. -
REJECTED- The invitee rejected the invitation. -
EXPIRED- The invitee neither created a member nor rejected the invitation before theExpirationDate.
- Parameters:
status- The status of the invitation:-
PENDING- The invitee hasn't created a member to join the network, and the invitation hasn't yet expired. -
ACCEPTING- The invitee has begun creating a member, and creation hasn't yet completed. -
ACCEPTED- The invitee created a member and joined the network using theInvitationID. -
REJECTED- The invitee rejected the invitation. -
EXPIRED- The invitee neither created a member nor rejected the invitation before theExpirationDate.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InvitationStatus,InvitationStatus
-
-
networkSummary
Invitation.Builder networkSummary(NetworkSummary networkSummary)
Sets the value of the NetworkSummary property for this object.- Parameters:
networkSummary- The new value for the NetworkSummary property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkSummary
default Invitation.Builder networkSummary(Consumer<NetworkSummary.Builder> networkSummary)
Sets the value of the NetworkSummary property for this object. This is a convenience method that creates an instance of theNetworkSummary.Builderavoiding the need to create one manually viaNetworkSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkSummary(NetworkSummary).- Parameters:
networkSummary- a consumer that will call methods onNetworkSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networkSummary(NetworkSummary)
-
arn
Invitation.Builder arn(String arn)
The Amazon Resource Name (ARN) of the invitation. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
- Parameters:
arn- The Amazon Resource Name (ARN) of the invitation. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-