Class LinkedAccount
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LinkedAccount.Builder,LinkedAccount>
Represents different linked accounts that can be linked to an embedded wallet. Supports email, SMS, JWT, and OAuth2 approaches.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkedAccount.Builderbuilder()Developer JWT linked account with key ID and subject.final LinkedAccountEmailemail()Email-based linked account.final booleanfinal booleanequalsBySdkFields(Object obj) static LinkedAccountfromDeveloperJwt(Consumer<LinkedAccountDeveloperJwt.Builder> developerJwt) Create an instance of this class withdeveloperJwt()initialized to the given value.static LinkedAccountfromDeveloperJwt(LinkedAccountDeveloperJwt developerJwt) Create an instance of this class withdeveloperJwt()initialized to the given value.static LinkedAccountCreate an instance of this class withemail()initialized to the given value.static LinkedAccountfromEmail(LinkedAccountEmail email) Create an instance of this class withemail()initialized to the given value.static LinkedAccountCreate an instance of this class withoAuth2()initialized to the given value.static LinkedAccountfromOAuth2(LinkedAccountOAuth2 oAuth2) Create an instance of this class withoAuth2()initialized to the given value.static LinkedAccountCreate an instance of this class withsms()initialized to the given value.static LinkedAccountfromSms(LinkedAccountSms sms) Create an instance of this class withsms()initialized to the given value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LinkedAccountOAuth2oAuth2()OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).static Class<? extends LinkedAccount.Builder>final LinkedAccountSmssms()SMS-based linked account using phone number.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
email
Email-based linked account.
- Returns:
- Email-based linked account.
-
sms
SMS-based linked account using phone number.
- Returns:
- SMS-based linked account using phone number.
-
developerJwt
Developer JWT linked account with key ID and subject.
- Returns:
- Developer JWT linked account with key ID and subject.
-
oAuth2
OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).
- Returns:
- OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<LinkedAccount.Builder,LinkedAccount>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
fromEmail
Create an instance of this class withemail()initialized to the given value.Email-based linked account.
- Parameters:
email- Email-based linked account.
-
fromEmail
Create an instance of this class withemail()initialized to the given value.Email-based linked account.
- Parameters:
email- Email-based linked account.
-
fromSms
Create an instance of this class withsms()initialized to the given value.SMS-based linked account using phone number.
- Parameters:
sms- SMS-based linked account using phone number.
-
fromSms
Create an instance of this class withsms()initialized to the given value.SMS-based linked account using phone number.
- Parameters:
sms- SMS-based linked account using phone number.
-
fromDeveloperJwt
Create an instance of this class withdeveloperJwt()initialized to the given value.Developer JWT linked account with key ID and subject.
- Parameters:
developerJwt- Developer JWT linked account with key ID and subject.
-
fromDeveloperJwt
public static LinkedAccount fromDeveloperJwt(Consumer<LinkedAccountDeveloperJwt.Builder> developerJwt) Create an instance of this class withdeveloperJwt()initialized to the given value.Developer JWT linked account with key ID and subject.
- Parameters:
developerJwt- Developer JWT linked account with key ID and subject.
-
fromOAuth2
Create an instance of this class withoAuth2()initialized to the given value.OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).
- Parameters:
oAuth2- OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).
-
fromOAuth2
Create an instance of this class withoAuth2()initialized to the given value.OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).
- Parameters:
oAuth2- OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beLinkedAccount.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beLinkedAccount.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-