Interface Handshake.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Handshake.Builder,,Handshake> SdkBuilder<Handshake.Builder,,Handshake> SdkPojo
- Enclosing class:
Handshake
-
Method Summary
Modifier and TypeMethodDescriptionThe type of handshake:action(ActionType action) The type of handshake:Amazon Resource Name (ARN) for the handshake.expirationTimestamp(Instant expirationTimestamp) Timestamp when the handshake expires.ID for the handshake.parties(Collection<HandshakeParty> parties) An array ofHandshakePartyobjects.parties(Consumer<HandshakeParty.Builder>... parties) An array ofHandshakePartyobjects.parties(HandshakeParty... parties) An array ofHandshakePartyobjects.requestedTimestamp(Instant requestedTimestamp) Timestamp when the handshake request was made.resources(Collection<HandshakeResource> resources) An array ofHandshakeResourceobjects.resources(Consumer<HandshakeResource.Builder>... resources) An array ofHandshakeResourceobjects.resources(HandshakeResource... resources) An array ofHandshakeResourceobjects.Current state for the handshake.state(HandshakeState state) Current state for the handshake.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
ID for the handshake.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
- Parameters:
id- ID for the handshake.The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Amazon Resource Name (ARN) for the handshake.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
- Parameters:
arn- Amazon Resource Name (ARN) for the handshake.For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parties
An array of
HandshakePartyobjects. Contains details for participant in a handshake.- Parameters:
parties- An array ofHandshakePartyobjects. Contains details for participant in a handshake.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parties
An array of
HandshakePartyobjects. Contains details for participant in a handshake.- Parameters:
parties- An array ofHandshakePartyobjects. Contains details for participant in a handshake.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parties
An array of
This is a convenience method that creates an instance of theHandshakePartyobjects. Contains details for participant in a handshake.HandshakeParty.Builderavoiding the need to create one manually viaHandshakeParty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toparties(List<HandshakeParty>).- Parameters:
parties- a consumer that will call methods onHandshakeParty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Current state for the handshake.
-
REQUESTED: Handshake awaiting a response from the recipient.
-
OPEN: Handshake sent to multiple recipients and all recipients have responded. The sender can now complete the handshake action.
-
CANCELED: Handshake canceled by the sender.
-
ACCEPTED: Handshake accepted by the recipient.
-
DECLINED: Handshake declined by the recipient.
-
EXPIRED: Handshake has expired.
- Parameters:
state- Current state for the handshake.-
REQUESTED: Handshake awaiting a response from the recipient.
-
OPEN: Handshake sent to multiple recipients and all recipients have responded. The sender can now complete the handshake action.
-
CANCELED: Handshake canceled by the sender.
-
ACCEPTED: Handshake accepted by the recipient.
-
DECLINED: Handshake declined by the recipient.
-
EXPIRED: Handshake has expired.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
Current state for the handshake.
-
REQUESTED: Handshake awaiting a response from the recipient.
-
OPEN: Handshake sent to multiple recipients and all recipients have responded. The sender can now complete the handshake action.
-
CANCELED: Handshake canceled by the sender.
-
ACCEPTED: Handshake accepted by the recipient.
-
DECLINED: Handshake declined by the recipient.
-
EXPIRED: Handshake has expired.
- Parameters:
state- Current state for the handshake.-
REQUESTED: Handshake awaiting a response from the recipient.
-
OPEN: Handshake sent to multiple recipients and all recipients have responded. The sender can now complete the handshake action.
-
CANCELED: Handshake canceled by the sender.
-
ACCEPTED: Handshake accepted by the recipient.
-
DECLINED: Handshake declined by the recipient.
-
EXPIRED: Handshake has expired.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
requestedTimestamp
Timestamp when the handshake request was made.
- Parameters:
requestedTimestamp- Timestamp when the handshake request was made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationTimestamp
Timestamp when the handshake expires.
- Parameters:
expirationTimestamp- Timestamp when the handshake expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The type of handshake:
-
INVITE: Handshake sent to a standalone account requesting that it to join the sender's organization.
-
ENABLE_ALL_FEATURES: Handshake sent to invited member accounts to enable all features for the organization.
-
APPROVE_ALL_FEATURES: Handshake sent to the management account when all invited member accounts have approved to enable all features.
-
TRANSFER_RESPONSIBILITY: Handshake sent to another organization's management account requesting that it designate the sender with the specified responsibilities for recipient's organization.
- Parameters:
action- The type of handshake:-
INVITE: Handshake sent to a standalone account requesting that it to join the sender's organization.
-
ENABLE_ALL_FEATURES: Handshake sent to invited member accounts to enable all features for the organization.
-
APPROVE_ALL_FEATURES: Handshake sent to the management account when all invited member accounts have approved to enable all features.
-
TRANSFER_RESPONSIBILITY: Handshake sent to another organization's management account requesting that it designate the sender with the specified responsibilities for recipient's organization.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
action
The type of handshake:
-
INVITE: Handshake sent to a standalone account requesting that it to join the sender's organization.
-
ENABLE_ALL_FEATURES: Handshake sent to invited member accounts to enable all features for the organization.
-
APPROVE_ALL_FEATURES: Handshake sent to the management account when all invited member accounts have approved to enable all features.
-
TRANSFER_RESPONSIBILITY: Handshake sent to another organization's management account requesting that it designate the sender with the specified responsibilities for recipient's organization.
- Parameters:
action- The type of handshake:-
INVITE: Handshake sent to a standalone account requesting that it to join the sender's organization.
-
ENABLE_ALL_FEATURES: Handshake sent to invited member accounts to enable all features for the organization.
-
APPROVE_ALL_FEATURES: Handshake sent to the management account when all invited member accounts have approved to enable all features.
-
TRANSFER_RESPONSIBILITY: Handshake sent to another organization's management account requesting that it designate the sender with the specified responsibilities for recipient's organization.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
resources
An array of
HandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.- Parameters:
resources- An array ofHandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
An array of
HandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.- Parameters:
resources- An array ofHandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
An array of
This is a convenience method that creates an instance of theHandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.HandshakeResource.Builderavoiding the need to create one manually viaHandshakeResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(List<HandshakeResource>).- Parameters:
resources- a consumer that will call methods onHandshakeResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-