CdpBasedLoyaltyPromotionInputBuilder Class

Contains methods to build an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput class.

Namespace 

LoyaltyManagement

CdpBasedLoyaltyPromotionInputBuilder Methods 

The following are methods for CdpBasedLoyaltyPromotionInputBuilder.

  • build()

    Returns an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput object.

  • setMemberId(memberId)

    Represents the ID of a loyalty program member for whom promotions must be filtered. This is a required field. Ensure that the member is part of a Data Cloud market segment.

  • setPromotions(promotions)

    Represents the promotion records to filter the promotions that are applicable to the member’s market segment.

build() 

Returns an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput object.

Signature 

public LoyaltyManagement.CdpBasedLoyaltyPromotionInput build()

Return Value 

Type: LoyaltyManagement.CdpBasedLoyaltyPromotionInput

setMemberId(memberId) 

Represents the ID of a loyalty program member for whom promotions must be filtered. This is a required field. Ensure that the member is part of a Data Cloud market segment.

Signature 

public LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder setMemberId(String memberId)

Parameters 

memberId

Type: String

Return Value 

Type: LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder

setPromotions(promotions) 

Represents the promotion records to filter the promotions that are applicable to the member’s market segment.

Signature 

public LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder setPromotions(List<SObject> promotions)

Parameters 

promotions

Type: List<SObject>

Return Value 

Type: LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder