Interface CampaignResponse.Builder

    • Method Detail

      • additionalTreatments

        CampaignResponse.Builder additionalTreatments​(Collection<TreatmentResource> additionalTreatments)

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        Parameters:
        additionalTreatments - An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • additionalTreatments

        CampaignResponse.Builder additionalTreatments​(TreatmentResource... additionalTreatments)

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        Parameters:
        additionalTreatments - An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • applicationId

        CampaignResponse.Builder applicationId​(String applicationId)

        The unique identifier for the application that the campaign applies to.

        Parameters:
        applicationId - The unique identifier for the application that the campaign applies to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • arn

        CampaignResponse.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the campaign.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creationDate

        CampaignResponse.Builder creationDate​(String creationDate)

        The date, in ISO 8601 format, when the campaign was created.

        Parameters:
        creationDate - The date, in ISO 8601 format, when the campaign was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customDeliveryConfiguration

        CampaignResponse.Builder customDeliveryConfiguration​(CustomDeliveryConfiguration customDeliveryConfiguration)

        The delivery configuration settings for sending the campaign through a custom channel.

        Parameters:
        customDeliveryConfiguration - The delivery configuration settings for sending the campaign through a custom channel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultState

        CampaignResponse.Builder defaultState​(CampaignState defaultState)

        The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

        Parameters:
        defaultState - The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CampaignResponse.Builder description​(String description)

        The custom description of the campaign.

        Parameters:
        description - The custom description of the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • holdoutPercent

        CampaignResponse.Builder holdoutPercent​(Integer holdoutPercent)

        The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

        Parameters:
        holdoutPercent - The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hook

        CampaignResponse.Builder hook​(CampaignHook hook)

        The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

        Parameters:
        hook - The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • id

        CampaignResponse.Builder id​(String id)

        The unique identifier for the campaign.

        Parameters:
        id - The unique identifier for the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isPaused

        CampaignResponse.Builder isPaused​(Boolean isPaused)

        Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

        Parameters:
        isPaused - Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastModifiedDate

        CampaignResponse.Builder lastModifiedDate​(String lastModifiedDate)

        The date, in ISO 8601 format, when the campaign was last modified.

        Parameters:
        lastModifiedDate - The date, in ISO 8601 format, when the campaign was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • limits

        CampaignResponse.Builder limits​(CampaignLimits limits)

        The messaging limits for the campaign.

        Parameters:
        limits - The messaging limits for the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messageConfiguration

        CampaignResponse.Builder messageConfiguration​(MessageConfiguration messageConfiguration)

        The message configuration settings for the campaign.

        Parameters:
        messageConfiguration - The message configuration settings for the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CampaignResponse.Builder name​(String name)

        The name of the campaign.

        Parameters:
        name - The name of the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schedule

        CampaignResponse.Builder schedule​(Schedule schedule)

        The schedule settings for the campaign.

        Parameters:
        schedule - The schedule settings for the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • segmentId

        CampaignResponse.Builder segmentId​(String segmentId)

        The unique identifier for the segment that's associated with the campaign.

        Parameters:
        segmentId - The unique identifier for the segment that's associated with the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • segmentVersion

        CampaignResponse.Builder segmentVersion​(Integer segmentVersion)

        The version number of the segment that's associated with the campaign.

        Parameters:
        segmentVersion - The version number of the segment that's associated with the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        CampaignResponse.Builder state​(CampaignState state)

        The current status of the campaign.

        Parameters:
        state - The current status of the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CampaignResponse.Builder tags​(Map<String,​String> tags)

        A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.

        Parameters:
        tags - A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • templateConfiguration

        CampaignResponse.Builder templateConfiguration​(TemplateConfiguration templateConfiguration)

        The message template that’s used for the campaign.

        Parameters:
        templateConfiguration - The message template that’s used for the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • treatmentDescription

        CampaignResponse.Builder treatmentDescription​(String treatmentDescription)

        The custom description of the default treatment for the campaign.

        Parameters:
        treatmentDescription - The custom description of the default treatment for the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • treatmentName

        CampaignResponse.Builder treatmentName​(String treatmentName)

        The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

        Parameters:
        treatmentName - The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • version

        CampaignResponse.Builder version​(Integer version)

        The version number of the campaign.

        Parameters:
        version - The version number of the campaign.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • priority

        CampaignResponse.Builder priority​(Integer priority)

        Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.

        Parameters:
        priority - Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.