Class ProfileParams.Builder
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder<ProfileParams,ProfileParams.Builder>
-
- com.cheetahdigital.profile.core.api.ProfileParams.Builder
-
- Enclosing class:
- ProfileParams
public static class ProfileParams.Builder extends BaseParams.BaseBuilder<ProfileParams,ProfileParams.Builder>
Builder class forProfileParams
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
mQueryParams
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor for theProfileParams.Builder
Builder(ProfileParams parameter)
Constructor for theProfileParams.Builder
with initial value from aProfileParams
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProfileParams
createQueryParams()
Instantiates the implementation classProfileParams.Builder
setIncludeSegments(java.lang.Boolean shouldInclude)
Sets the value of the boolean parameter fieldinclude_segments
ProfileParams.Builder
setReferralCode(java.lang.String referralCode)
Set the value of the query parameterreferral_code
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
build, setId
-
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor for theProfileParams.Builder
-
Builder
public Builder(ProfileParams parameter)
Constructor for theProfileParams.Builder
with initial value from aProfileParams
instance- Parameters:
parameter
- instance ofProfileParams
-
-
Method Detail
-
createQueryParams
protected ProfileParams createQueryParams()
Description copied from class:BaseParams.BaseBuilder
Instantiates the implementation class- Specified by:
createQueryParams
in classBaseParams.BaseBuilder<ProfileParams,ProfileParams.Builder>
- Returns:
- implementation class of
BaseParams.BaseBuilder
-
setIncludeSegments
public ProfileParams.Builder setIncludeSegments(@Nullable java.lang.Boolean shouldInclude)
Sets the value of the boolean parameter fieldinclude_segments
- Parameters:
shouldInclude
- boolean value; true to indicate parameter to include segments otherwise false- Returns:
- instance of the Builder that called this method
-
setReferralCode
public ProfileParams.Builder setReferralCode(@Nullable java.lang.String referralCode)
Set the value of the query parameterreferral_code
- Parameters:
referralCode
- value to set forreferral_code
- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
-