Interface CampaignResponse.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CampaignResponse.Builder,CampaignResponse>, SdkBuilder<CampaignResponse.Builder,CampaignResponse>, SdkPojo
Enclosing class:
CampaignResponse

public static interface CampaignResponse.Builder extends SdkPojo, CopyableBuilder<CampaignResponse.Builder,CampaignResponse>
  • Method Details

    • 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.
    • additionalTreatments

      CampaignResponse.Builder additionalTreatments(Consumer<TreatmentResource.Builder>... additionalTreatments)

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

      This is a convenience method that creates an instance of the TreatmentResource.Builder avoiding the need to create one manually via TreatmentResource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to additionalTreatments(List<TreatmentResource>).

      Parameters:
      additionalTreatments - a consumer that will call methods on TreatmentResource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.
    • customDeliveryConfiguration

      default CampaignResponse.Builder customDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration)

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

      This is a convenience method that creates an instance of the CustomDeliveryConfiguration.Builder avoiding the need to create one manually via CustomDeliveryConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to customDeliveryConfiguration(CustomDeliveryConfiguration).

      Parameters:
      customDeliveryConfiguration - a consumer that will call methods on CustomDeliveryConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • defaultState

      default CampaignResponse.Builder defaultState(Consumer<CampaignState.Builder> defaultState)

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

      This is a convenience method that creates an instance of the CampaignState.Builder avoiding the need to create one manually via CampaignState.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to defaultState(CampaignState).

      Parameters:
      defaultState - a consumer that will call methods on CampaignState.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.
    • 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.

      This is a convenience method that creates an instance of the CampaignHook.Builder avoiding the need to create one manually via CampaignHook.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to hook(CampaignHook).

      Parameters:
      hook - a consumer that will call methods on CampaignHook.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.
    • limits

      The messaging limits for the campaign.

      This is a convenience method that creates an instance of the CampaignLimits.Builder avoiding the need to create one manually via CampaignLimits.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to limits(CampaignLimits).

      Parameters:
      limits - a consumer that will call methods on CampaignLimits.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • messageConfiguration

      default CampaignResponse.Builder messageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)

      The message configuration settings for the campaign.

      This is a convenience method that creates an instance of the MessageConfiguration.Builder avoiding the need to create one manually via MessageConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to messageConfiguration(MessageConfiguration).

      Parameters:
      messageConfiguration - a consumer that will call methods on MessageConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • schedule

      default CampaignResponse.Builder schedule(Consumer<Schedule.Builder> schedule)

      The schedule settings for the campaign.

      This is a convenience method that creates an instance of the Schedule.Builder avoiding the need to create one manually via Schedule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to schedule(Schedule).

      Parameters:
      schedule - a consumer that will call methods on Schedule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.
    • state

      The current status of the campaign.

      This is a convenience method that creates an instance of the CampaignState.Builder avoiding the need to create one manually via CampaignState.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to state(CampaignState).

      Parameters:
      state - a consumer that will call methods on CampaignState.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • templateConfiguration

      default CampaignResponse.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)

      The message template that’s used for the campaign.

      This is a convenience method that creates an instance of the TemplateConfiguration.Builder avoiding the need to create one manually via TemplateConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to templateConfiguration(TemplateConfiguration).

      Parameters:
      templateConfiguration - a consumer that will call methods on TemplateConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.