public static class LoyaltyProgram.Builder extends Object
LoyaltyProgram.| Constructor and Description |
|---|
Builder(String id,
String status,
List<LoyaltyProgramRewardTier> rewardTiers,
LoyaltyProgramTerminology terminology,
List<String> locationIds,
String createdAt,
String updatedAt,
List<LoyaltyProgramAccrualRule> accrualRules)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LoyaltyProgram.Builder |
accrualRules(List<LoyaltyProgramAccrualRule> accrualRules)
Setter for accrualRules.
|
LoyaltyProgram |
build()
Builds a new
LoyaltyProgram object using the set fields. |
LoyaltyProgram.Builder |
createdAt(String createdAt)
Setter for createdAt.
|
LoyaltyProgram.Builder |
expirationPolicy(LoyaltyProgramExpirationPolicy expirationPolicy)
Setter for expirationPolicy.
|
LoyaltyProgram.Builder |
id(String id)
Setter for id.
|
LoyaltyProgram.Builder |
locationIds(List<String> locationIds)
Setter for locationIds.
|
LoyaltyProgram.Builder |
rewardTiers(List<LoyaltyProgramRewardTier> rewardTiers)
Setter for rewardTiers.
|
LoyaltyProgram.Builder |
status(String status)
Setter for status.
|
LoyaltyProgram.Builder |
terminology(LoyaltyProgramTerminology terminology)
Setter for terminology.
|
LoyaltyProgram.Builder |
updatedAt(String updatedAt)
Setter for updatedAt.
|
public Builder(String id, String status, List<LoyaltyProgramRewardTier> rewardTiers, LoyaltyProgramTerminology terminology, List<String> locationIds, String createdAt, String updatedAt, List<LoyaltyProgramAccrualRule> accrualRules)
id - String value for id.status - String value for status.rewardTiers - List of LoyaltyProgramRewardTier value for rewardTiers.terminology - LoyaltyProgramTerminology value for terminology.locationIds - List of String value for locationIds.createdAt - String value for createdAt.updatedAt - String value for updatedAt.accrualRules - List of LoyaltyProgramAccrualRule value for accrualRules.public LoyaltyProgram.Builder id(String id)
id - String value for id.public LoyaltyProgram.Builder status(String status)
status - String value for status.public LoyaltyProgram.Builder rewardTiers(List<LoyaltyProgramRewardTier> rewardTiers)
rewardTiers - List of LoyaltyProgramRewardTier value for rewardTiers.public LoyaltyProgram.Builder terminology(LoyaltyProgramTerminology terminology)
terminology - LoyaltyProgramTerminology value for terminology.public LoyaltyProgram.Builder locationIds(List<String> locationIds)
locationIds - List of String value for locationIds.public LoyaltyProgram.Builder createdAt(String createdAt)
createdAt - String value for createdAt.public LoyaltyProgram.Builder updatedAt(String updatedAt)
updatedAt - String value for updatedAt.public LoyaltyProgram.Builder accrualRules(List<LoyaltyProgramAccrualRule> accrualRules)
accrualRules - List of LoyaltyProgramAccrualRule value for accrualRules.public LoyaltyProgram.Builder expirationPolicy(LoyaltyProgramExpirationPolicy expirationPolicy)
expirationPolicy - LoyaltyProgramExpirationPolicy value for expirationPolicy.public LoyaltyProgram build()
LoyaltyProgram object using the set fields.LoyaltyProgramCopyright © 2022. All rights reserved.