Class ProfileFields.Builder
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder<ProfileFields,ProfileParams.Builder>
-
- com.cheetahdigital.profile.core.api.ProfileFields.Builder
-
- Enclosing class:
- ProfileFields
public static class ProfileFields.Builder extends BaseParams.BaseBuilder<ProfileFields,ProfileParams.Builder>
Builder class forProfileFields
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
mQueryParams
-
-
Constructor Summary
Constructors Constructor Description Builder()
Create an instance of Builder forProfileFields
Builder(ProfileFields parameter)
Create an instance of Builder from existingProfileFields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileFields
build()
protected ProfileFields
createQueryParams()
Instantiates the implementation classProfileFields.Builder
setCode(java.lang.String code)
Sets the value of the parameter fieldcode
ProfileFields.Builder
setConfirmPassword(java.lang.String confirmPassword)
Sets the value of the parameter fieldconfirm_password
ProfileFields.Builder
setCurrentPassword(java.lang.String currentPassword)
Sets the value of the parameter fieldcurrent_password
ProfileFields.Builder
setPassword(java.lang.String password)
Sets the value of the parameter fieldpassword
ProfileFields.Builder
setProfileChanges(java.util.Map<java.lang.String,java.lang.String> changes)
Sets the value of the changes in the profile for Update Profile APIProfileFields.Builder
setToken(java.lang.String token)
Sets the value of the parameter fieldtoken
ProfileFields.Builder
setUID(java.lang.String uid)
Sets the value of the parameter fielduid
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
setId
-
-
-
-
Constructor Detail
-
Builder
public Builder()
Create an instance of Builder forProfileFields
-
Builder
public Builder(ProfileFields parameter)
Create an instance of Builder from existingProfileFields
- Parameters:
parameter
- instance ofProfileFields
-
-
Method Detail
-
createQueryParams
protected ProfileFields createQueryParams()
Description copied from class:BaseParams.BaseBuilder
Instantiates the implementation class- Specified by:
createQueryParams
in classBaseParams.BaseBuilder<ProfileFields,ProfileParams.Builder>
- Returns:
- implementation class of
BaseParams.BaseBuilder
-
setPassword
public ProfileFields.Builder setPassword(@Nullable java.lang.String password)
Sets the value of the parameter fieldpassword
- Parameters:
password
- password of the user to be used in changing password- Returns:
- instance of
ProfileFields.Builder
-
setCurrentPassword
public ProfileFields.Builder setCurrentPassword(@Nullable java.lang.String currentPassword)
Sets the value of the parameter fieldcurrent_password
- Parameters:
currentPassword
- the current password of the user- Returns:
- instance of
ProfileFields.Builder
-
setCode
public ProfileFields.Builder setCode(@Nullable java.lang.String code)
Sets the value of the parameter fieldcode
- Parameters:
code
- the otp code- Returns:
- instance of
ProfileFields.Builder
-
setConfirmPassword
public ProfileFields.Builder setConfirmPassword(@Nullable java.lang.String confirmPassword)
Sets the value of the parameter fieldconfirm_password
- Parameters:
confirmPassword
- to be used to confirm password in change password- Returns:
- instance of
ProfileFields.Builder
-
setUID
public ProfileFields.Builder setUID(@Nullable java.lang.String uid)
Sets the value of the parameter fielduid
- Parameters:
uid
- the id of the third party identity- Returns:
- instance of
ProfileFields.Builder
-
setToken
public ProfileFields.Builder setToken(@Nullable java.lang.String token)
Sets the value of the parameter fieldtoken
- Parameters:
token
- authenticated token from the 3rd party identity- Returns:
- instance of
ProfileFields.Builder
-
setProfileChanges
public ProfileFields.Builder setProfileChanges(@Nullable java.util.Map<java.lang.String,java.lang.String> changes)
Sets the value of the changes in the profile for Update Profile API- Parameters:
changes
-Map
of key -String
, value -String
- Returns:
- instance of
ProfileFields.Builder
-
build
public ProfileFields build()
- Overrides:
build
in classBaseParams.BaseBuilder<ProfileFields,ProfileParams.Builder>
- Returns:
- the built parameter class
-
-