Class AuthenticationFieldParams.Builder
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder<P,B>
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder<AuthenticationFieldParams,AuthenticationFieldParams.Builder>
-
- com.cheetahdigital.corekit.authentication.core.api.AuthenticationFieldParams.Builder
-
- Enclosing class:
- AuthenticationFieldParams
public static final class AuthenticationFieldParams.Builder extends BaseListQueryParams.BaseListQueryBuilder<AuthenticationFieldParams,AuthenticationFieldParams.Builder>
Builder class forAuthenticationFieldParams
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
mQueryParams
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructorBuilder(AuthenticationFieldParams queryParams)
Create a builder class from an existingAuthenticationFieldParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationFieldParams
build()
protected AuthenticationFieldParams
createQueryParams()
Instantiates the implementation classAuthenticationFieldParams.Builder
setAssertion(java.lang.String assertion)
Set the assertionAuthenticationFieldParams.Builder
setBirthdate(java.lang.String birthdate)
Set the birthDate of the userAuthenticationFieldParams.Builder
setCardId(java.lang.String cardId)
Set the card id of the userAuthenticationFieldParams.Builder
setClientId(java.lang.String clientId)
Set the client id of the environmentAuthenticationFieldParams.Builder
setClientSecret(java.lang.String clientSecret)
Set the client secret of the environmentAuthenticationFieldParams.Builder
setCurrentPassword(java.lang.String currentPassword)
Set the currentPasswordAuthenticationFieldParams.Builder
setDeviceId(java.lang.String deviceId)
Set the device idAuthenticationFieldParams.Builder
setEmail(java.lang.String email)
Set the email of the userAuthenticationFieldParams.Builder
setEmailAlias(java.lang.String emailAlias)
Set the user's email aliasAuthenticationFieldParams.Builder
setFields(java.util.Map<java.lang.String,java.lang.Object> fields)
Set additional fields for the userAuthenticationFieldParams.Builder
setFirstName(java.lang.String firstName)
Set the first name of the userAuthenticationFieldParams.Builder
setGrantType(java.lang.String grantType)
Set the grant typeAuthenticationFieldParams.Builder
setLastName(java.lang.String lastName)
Set the last name of the userAuthenticationFieldParams.Builder
setMailingCity(java.lang.String mailingCity)
Set the mailing city of the userAuthenticationFieldParams.Builder
setMailingPostalCode(java.lang.String mailingPostalCode)
Set the mailing postal code of the userAuthenticationFieldParams.Builder
setMailingState(java.lang.String mailingState)
Set the mailing state of the userAuthenticationFieldParams.Builder
setMailingStreet(java.lang.String mailingStreet)
Set the mailing street of the userAuthenticationFieldParams.Builder
setMessageName(java.lang.String messageName)
Set message nameAuthenticationFieldParams.Builder
setMobilePhone(java.lang.String mobilePhone)
Set the mobile phone of the userAuthenticationFieldParams.Builder
setPassword(java.lang.String password)
Set the password of the userAuthenticationFieldParams.Builder
setPasswordConfirmation(java.lang.String passwordConfirmation)
Set the password confirmation of the userAuthenticationFieldParams.Builder
setPlaceIntegrationId(java.lang.String placeIntegrationId)
Set the place integration id of the userAuthenticationFieldParams.Builder
setProvider(java.lang.String provider)
Set the provider of the userAuthenticationFieldParams.Builder
setReferralCode(java.lang.String referralCode)
Set the referral code of the userAuthenticationFieldParams.Builder
setRefreshToken(java.lang.String refreshToken)
Set refreshTokenAuthenticationFieldParams.Builder
setResetPasswordToken(java.lang.String resetPasswordToken)
Set reset password token from URL paramAuthenticationFieldParams.Builder
setToken(java.lang.String token)
Set token-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder
addCategories, addCategory, setItemsPerPage, setLayout, setPage, setSortBy, setSortOrder
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
setId
-
-
-
-
Constructor Detail
-
Builder
public Builder(AuthenticationFieldParams queryParams)
Create a builder class from an existingAuthenticationFieldParams
- Parameters:
queryParams
- instance ofAuthenticationFieldParams
containing all parameters to be used
-
Builder
public Builder()
Default constructor
-
-
Method Detail
-
createQueryParams
protected AuthenticationFieldParams createQueryParams()
Description copied from class:BaseParams.BaseBuilder
Instantiates the implementation class- Specified by:
createQueryParams
in classBaseParams.BaseBuilder<AuthenticationFieldParams,AuthenticationFieldParams.Builder>
- Returns:
- implementation class of
BaseParams.BaseBuilder
-
setClientId
public AuthenticationFieldParams.Builder setClientId(@Nullable java.lang.String clientId)
Set the client id of the environment- Parameters:
clientId
- of the environment- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setClientSecret
public AuthenticationFieldParams.Builder setClientSecret(@Nullable java.lang.String clientSecret)
Set the client secret of the environment- Parameters:
clientSecret
- of the environment- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setEmail
public AuthenticationFieldParams.Builder setEmail(@Nullable java.lang.String email)
Set the email of the user- Parameters:
email
- user's email- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setPassword
public AuthenticationFieldParams.Builder setPassword(@Nullable java.lang.String password)
Set the password of the user- Parameters:
password
- user's password- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setPasswordConfirmation
public AuthenticationFieldParams.Builder setPasswordConfirmation(@Nullable java.lang.String passwordConfirmation)
Set the password confirmation of the user- Parameters:
passwordConfirmation
- user's password confirmation- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setMobilePhone
public AuthenticationFieldParams.Builder setMobilePhone(@Nullable java.lang.String mobilePhone)
Set the mobile phone of the user- Parameters:
mobilePhone
- user's phone number- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setCardId
public AuthenticationFieldParams.Builder setCardId(@Nullable java.lang.String cardId)
Set the card id of the user- Parameters:
cardId
- user's card id- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setProvider
public AuthenticationFieldParams.Builder setProvider(@Nullable java.lang.String provider)
Set the provider of the user- Parameters:
provider
- user's provider- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setAssertion
public AuthenticationFieldParams.Builder setAssertion(@Nullable java.lang.String assertion)
Set the assertion- Parameters:
assertion
- The access token gathered from integrating the social media’s login API- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setGrantType
public AuthenticationFieldParams.Builder setGrantType(@Nullable java.lang.String grantType)
Set the grant type- Parameters:
grantType
- For the social login, this value should be assertion. For regular sign-in, this value should be password- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setRefreshToken
public AuthenticationFieldParams.Builder setRefreshToken(@Nullable java.lang.String refreshToken)
Set refreshToken- Parameters:
refreshToken
- The refresh_token value gathered from earlier logins or when token refreshes- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setDeviceId
public AuthenticationFieldParams.Builder setDeviceId(@Nullable java.lang.String deviceId)
Set the device id- Parameters:
deviceId
- The unique device id- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setToken
public AuthenticationFieldParams.Builder setToken(@Nullable java.lang.String token)
Set token- Parameters:
token
- The device specific token- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setCurrentPassword
public AuthenticationFieldParams.Builder setCurrentPassword(@Nullable java.lang.String currentPassword)
Set the currentPassword- Parameters:
currentPassword
- current password of the user- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setMessageName
public AuthenticationFieldParams.Builder setMessageName(@Nullable java.lang.String messageName)
Set message name- Parameters:
messageName
- message name- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setFirstName
public AuthenticationFieldParams.Builder setFirstName(@Nullable java.lang.String firstName)
Set the first name of the user- Parameters:
firstName
- user's first name- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setLastName
public AuthenticationFieldParams.Builder setLastName(@Nullable java.lang.String lastName)
Set the last name of the user- Parameters:
lastName
- user's last name- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setBirthdate
public AuthenticationFieldParams.Builder setBirthdate(@Nullable java.lang.String birthdate)
Set the birthDate of the user- Parameters:
birthdate
- user's birthdate- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setMailingStreet
public AuthenticationFieldParams.Builder setMailingStreet(@Nullable java.lang.String mailingStreet)
Set the mailing street of the user- Parameters:
mailingStreet
- user's mailing street- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setMailingCity
public AuthenticationFieldParams.Builder setMailingCity(@Nullable java.lang.String mailingCity)
Set the mailing city of the user- Parameters:
mailingCity
- user's mailing city- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setMailingState
public AuthenticationFieldParams.Builder setMailingState(@Nullable java.lang.String mailingState)
Set the mailing state of the user- Parameters:
mailingState
- user's mailing state- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setMailingPostalCode
public AuthenticationFieldParams.Builder setMailingPostalCode(@Nullable java.lang.String mailingPostalCode)
Set the mailing postal code of the user- Parameters:
mailingPostalCode
- user's mailing postal code- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setReferralCode
public AuthenticationFieldParams.Builder setReferralCode(@Nullable java.lang.String referralCode)
Set the referral code of the user- Parameters:
referralCode
- user's referral code- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setPlaceIntegrationId
public AuthenticationFieldParams.Builder setPlaceIntegrationId(@Nullable java.lang.String placeIntegrationId)
Set the place integration id of the user- Parameters:
placeIntegrationId
- user's place integration id- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setFields
public AuthenticationFieldParams.Builder setFields(@Nullable java.util.Map<java.lang.String,java.lang.Object> fields)
Set additional fields for the user- Parameters:
fields
- additional fields to be added- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setEmailAlias
public AuthenticationFieldParams.Builder setEmailAlias(@Nullable java.lang.String emailAlias)
Set the user's email alias- Parameters:
emailAlias
- user's email alias- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setResetPasswordToken
public AuthenticationFieldParams.Builder setResetPasswordToken(@Nullable java.lang.String resetPasswordToken)
Set reset password token from URL param- Parameters:
resetPasswordToken
- reset password token- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
build
public AuthenticationFieldParams build()
- Overrides:
build
in classBaseParams.BaseBuilder<AuthenticationFieldParams,AuthenticationFieldParams.Builder>
- Returns:
- the built parameter class
-
-