All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.pinpoint.CfnCampaignProps.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.pinpoint

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnCampaignProps {

  def apply(
    name: String,
    applicationId: String,
    segmentId: String,
    schedule: software.amazon.awscdk.services.pinpoint.CfnCampaign.ScheduleProperty,
    holdoutPercent: Option[Number] = None,
    treatmentDescription: Option[String] = None,
    priority: Option[Number] = None,
    segmentVersion: Option[Number] = None,
    templateConfiguration: Option[software.amazon.awscdk.services.pinpoint.CfnCampaign.TemplateConfigurationProperty] = None,
    description: Option[String] = None,
    tags: Option[AnyRef] = None,
    treatmentName: Option[String] = None,
    messageConfiguration: Option[software.amazon.awscdk.services.pinpoint.CfnCampaign.MessageConfigurationProperty] = None,
    additionalTreatments: Option[List[_]] = None,
    customDeliveryConfiguration: Option[software.amazon.awscdk.services.pinpoint.CfnCampaign.CustomDeliveryConfigurationProperty] = None,
    campaignHook: Option[software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignHookProperty] = None,
    limits: Option[software.amazon.awscdk.services.pinpoint.CfnCampaign.LimitsProperty] = None,
    isPaused: Option[Boolean] = None
  ): software.amazon.awscdk.services.pinpoint.CfnCampaignProps =
    (new software.amazon.awscdk.services.pinpoint.CfnCampaignProps.Builder)
      .name(name)
      .applicationId(applicationId)
      .segmentId(segmentId)
      .schedule(schedule)
      .holdoutPercent(holdoutPercent.orNull)
      .treatmentDescription(treatmentDescription.orNull)
      .priority(priority.orNull)
      .segmentVersion(segmentVersion.orNull)
      .templateConfiguration(templateConfiguration.orNull)
      .description(description.orNull)
      .tags(tags.orNull)
      .treatmentName(treatmentName.orNull)
      .messageConfiguration(messageConfiguration.orNull)
      .additionalTreatments(additionalTreatments.map(_.asJava).orNull)
      .customDeliveryConfiguration(customDeliveryConfiguration.orNull)
      .campaignHook(campaignHook.orNull)
      .limits(limits.orNull)
      .isPaused(isPaused.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy