Class Handshake
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Handshake.Builder,Handshake>
Contains details for a handshake. A handshake is the secure exchange of information between two Amazon Web Services accounts: a sender and a recipient.
Note: Handshakes that are CANCELED, ACCEPTED, DECLINED, or
EXPIRED show up in lists for only 30 days after entering that state After that they are deleted.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal ActionTypeaction()The type of handshake:final StringThe type of handshake:final Stringarn()Amazon Resource Name (ARN) for the handshake.static Handshake.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantTimestamp when the handshake expires.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Parties property.final booleanFor responses, this returns true if the service returned a value for the Resources property.final Stringid()ID for the handshake.final List<HandshakeParty> parties()An array ofHandshakePartyobjects.final InstantTimestamp when the handshake request was made.final List<HandshakeResource> An array ofHandshakeResourceobjects.static Class<? extends Handshake.Builder> final HandshakeStatestate()Current state for the handshake.final StringCurrent state for the handshake.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- ID for the handshake.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
-
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:
- 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.
-
hasParties
public final boolean hasParties()For responses, this returns true if the service returned a value for the Parties property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
parties
An array of
HandshakePartyobjects. Contains details for participant in a handshake.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasParties()method.- Returns:
- An array of
HandshakePartyobjects. Contains details for participant in a handshake.
-
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.
If the service returns an enum value that is not available in the current SDK version,
statewill returnHandshakeState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- 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.
-
- See Also:
-
-
stateAsString
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.
If the service returns an enum value that is not available in the current SDK version,
statewill returnHandshakeState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- 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.
-
- See Also:
-
-
requestedTimestamp
Timestamp when the handshake request was made.
- Returns:
- Timestamp when the handshake request was made.
-
expirationTimestamp
Timestamp when the handshake expires.
- Returns:
- Timestamp when the handshake expires.
-
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.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- 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.
-
- See Also:
-
-
actionAsString
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.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- 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.
-
- See Also:
-
-
hasResources
public final boolean hasResources()For responses, this returns true if the service returned a value for the Resources property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
resources
An array of
HandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasResources()method.- Returns:
- An array of
HandshakeResourceobjects. When needed, contains additional details for a handshake. For example, the email address for the sender.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Handshake.Builder,Handshake> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-