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 forProfileFieldsBuilder(ProfileFields parameter)Create an instance of Builder from existingProfileFields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileFieldsbuild()protected ProfileFieldscreateQueryParams()Instantiates the implementation classProfileFields.BuildersetCode(java.lang.String code)Sets the value of the parameter fieldcodeProfileFields.BuildersetConfirmPassword(java.lang.String confirmPassword)Sets the value of the parameter fieldconfirm_passwordProfileFields.BuildersetCurrentPassword(java.lang.String currentPassword)Sets the value of the parameter fieldcurrent_passwordProfileFields.BuildersetPassword(java.lang.String password)Sets the value of the parameter fieldpasswordProfileFields.BuildersetProfileChanges(java.util.Map<java.lang.String,java.lang.String> changes)Sets the value of the changes in the profile for Update Profile APIProfileFields.BuildersetToken(java.lang.String token)Sets the value of the parameter fieldtokenProfileFields.BuildersetUID(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.BaseBuilderInstantiates the implementation class- Specified by:
createQueryParamsin 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-Mapof key -String, value -String- Returns:
- instance of
ProfileFields.Builder
-
build
public ProfileFields build()
- Overrides:
buildin classBaseParams.BaseBuilder<ProfileFields,ProfileParams.Builder>- Returns:
- the built parameter class
-
-