Interface CfnCampaignProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCampaignProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:05.297Z") @Stability(Stable) public interface CfnCampaignProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnCampaign.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.pinpoint.*;
 Object attributes;
 Object customConfig;
 Object metrics;
 Object tags;
 CfnCampaignProps cfnCampaignProps = CfnCampaignProps.builder()
         .applicationId("applicationId")
         .name("name")
         .schedule(ScheduleProperty.builder()
                 .endTime("endTime")
                 .eventFilter(CampaignEventFilterProperty.builder()
                         .dimensions(EventDimensionsProperty.builder()
                                 .attributes(attributes)
                                 .eventType(SetDimensionProperty.builder()
                                         .dimensionType("dimensionType")
                                         .values(List.of("values"))
                                         .build())
                                 .metrics(metrics)
                                 .build())
                         .filterType("filterType")
                         .build())
                 .frequency("frequency")
                 .isLocalTime(false)
                 .quietTime(QuietTimeProperty.builder()
                         .end("end")
                         .start("start")
                         .build())
                 .startTime("startTime")
                 .timeZone("timeZone")
                 .build())
         .segmentId("segmentId")
         // the properties below are optional
         .additionalTreatments(List.of(WriteTreatmentResourceProperty.builder()
                 .customDeliveryConfiguration(CustomDeliveryConfigurationProperty.builder()
                         .deliveryUri("deliveryUri")
                         .endpointTypes(List.of("endpointTypes"))
                         .build())
                 .messageConfiguration(MessageConfigurationProperty.builder()
                         .admMessage(MessageProperty.builder()
                                 .action("action")
                                 .body("body")
                                 .imageIconUrl("imageIconUrl")
                                 .imageSmallIconUrl("imageSmallIconUrl")
                                 .imageUrl("imageUrl")
                                 .jsonBody("jsonBody")
                                 .mediaUrl("mediaUrl")
                                 .rawContent("rawContent")
                                 .silentPush(false)
                                 .timeToLive(123)
                                 .title("title")
                                 .url("url")
                                 .build())
                         .apnsMessage(MessageProperty.builder()
                                 .action("action")
                                 .body("body")
                                 .imageIconUrl("imageIconUrl")
                                 .imageSmallIconUrl("imageSmallIconUrl")
                                 .imageUrl("imageUrl")
                                 .jsonBody("jsonBody")
                                 .mediaUrl("mediaUrl")
                                 .rawContent("rawContent")
                                 .silentPush(false)
                                 .timeToLive(123)
                                 .title("title")
                                 .url("url")
                                 .build())
                         .baiduMessage(MessageProperty.builder()
                                 .action("action")
                                 .body("body")
                                 .imageIconUrl("imageIconUrl")
                                 .imageSmallIconUrl("imageSmallIconUrl")
                                 .imageUrl("imageUrl")
                                 .jsonBody("jsonBody")
                                 .mediaUrl("mediaUrl")
                                 .rawContent("rawContent")
                                 .silentPush(false)
                                 .timeToLive(123)
                                 .title("title")
                                 .url("url")
                                 .build())
                         .customMessage(CampaignCustomMessageProperty.builder()
                                 .data("data")
                                 .build())
                         .defaultMessage(MessageProperty.builder()
                                 .action("action")
                                 .body("body")
                                 .imageIconUrl("imageIconUrl")
                                 .imageSmallIconUrl("imageSmallIconUrl")
                                 .imageUrl("imageUrl")
                                 .jsonBody("jsonBody")
                                 .mediaUrl("mediaUrl")
                                 .rawContent("rawContent")
                                 .silentPush(false)
                                 .timeToLive(123)
                                 .title("title")
                                 .url("url")
                                 .build())
                         .emailMessage(CampaignEmailMessageProperty.builder()
                                 .body("body")
                                 .fromAddress("fromAddress")
                                 .htmlBody("htmlBody")
                                 .title("title")
                                 .build())
                         .gcmMessage(MessageProperty.builder()
                                 .action("action")
                                 .body("body")
                                 .imageIconUrl("imageIconUrl")
                                 .imageSmallIconUrl("imageSmallIconUrl")
                                 .imageUrl("imageUrl")
                                 .jsonBody("jsonBody")
                                 .mediaUrl("mediaUrl")
                                 .rawContent("rawContent")
                                 .silentPush(false)
                                 .timeToLive(123)
                                 .title("title")
                                 .url("url")
                                 .build())
                         .inAppMessage(CampaignInAppMessageProperty.builder()
                                 .content(List.of(InAppMessageContentProperty.builder()
                                         .backgroundColor("backgroundColor")
                                         .bodyConfig(InAppMessageBodyConfigProperty.builder()
                                                 .alignment("alignment")
                                                 .body("body")
                                                 .textColor("textColor")
                                                 .build())
                                         .headerConfig(InAppMessageHeaderConfigProperty.builder()
                                                 .alignment("alignment")
                                                 .header("header")
                                                 .textColor("textColor")
                                                 .build())
                                         .imageUrl("imageUrl")
                                         .primaryBtn(InAppMessageButtonProperty.builder()
                                                 .android(OverrideButtonConfigurationProperty.builder()
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .build())
                                                 .defaultConfig(DefaultButtonConfigurationProperty.builder()
                                                         .backgroundColor("backgroundColor")
                                                         .borderRadius(123)
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .text("text")
                                                         .textColor("textColor")
                                                         .build())
                                                 .ios(OverrideButtonConfigurationProperty.builder()
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .build())
                                                 .web(OverrideButtonConfigurationProperty.builder()
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .build())
                                                 .build())
                                         .secondaryBtn(InAppMessageButtonProperty.builder()
                                                 .android(OverrideButtonConfigurationProperty.builder()
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .build())
                                                 .defaultConfig(DefaultButtonConfigurationProperty.builder()
                                                         .backgroundColor("backgroundColor")
                                                         .borderRadius(123)
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .text("text")
                                                         .textColor("textColor")
                                                         .build())
                                                 .ios(OverrideButtonConfigurationProperty.builder()
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .build())
                                                 .web(OverrideButtonConfigurationProperty.builder()
                                                         .buttonAction("buttonAction")
                                                         .link("link")
                                                         .build())
                                                 .build())
                                         .build()))
                                 .customConfig(customConfig)
                                 .layout("layout")
                                 .build())
                         .smsMessage(CampaignSmsMessageProperty.builder()
                                 .body("body")
                                 .entityId("entityId")
                                 .messageType("messageType")
                                 .originationNumber("originationNumber")
                                 .senderId("senderId")
                                 .templateId("templateId")
                                 .build())
                         .build())
                 .schedule(ScheduleProperty.builder()
                         .endTime("endTime")
                         .eventFilter(CampaignEventFilterProperty.builder()
                                 .dimensions(EventDimensionsProperty.builder()
                                         .attributes(attributes)
                                         .eventType(SetDimensionProperty.builder()
                                                 .dimensionType("dimensionType")
                                                 .values(List.of("values"))
                                                 .build())
                                         .metrics(metrics)
                                         .build())
                                 .filterType("filterType")
                                 .build())
                         .frequency("frequency")
                         .isLocalTime(false)
                         .quietTime(QuietTimeProperty.builder()
                                 .end("end")
                                 .start("start")
                                 .build())
                         .startTime("startTime")
                         .timeZone("timeZone")
                         .build())
                 .sizePercent(123)
                 .templateConfiguration(TemplateConfigurationProperty.builder()
                         .emailTemplate(TemplateProperty.builder()
                                 .name("name")
                                 .version("version")
                                 .build())
                         .pushTemplate(TemplateProperty.builder()
                                 .name("name")
                                 .version("version")
                                 .build())
                         .smsTemplate(TemplateProperty.builder()
                                 .name("name")
                                 .version("version")
                                 .build())
                         .voiceTemplate(TemplateProperty.builder()
                                 .name("name")
                                 .version("version")
                                 .build())
                         .build())
                 .treatmentDescription("treatmentDescription")
                 .treatmentName("treatmentName")
                 .build()))
         .campaignHook(CampaignHookProperty.builder()
                 .lambdaFunctionName("lambdaFunctionName")
                 .mode("mode")
                 .webUrl("webUrl")
                 .build())
         .customDeliveryConfiguration(CustomDeliveryConfigurationProperty.builder()
                 .deliveryUri("deliveryUri")
                 .endpointTypes(List.of("endpointTypes"))
                 .build())
         .description("description")
         .holdoutPercent(123)
         .isPaused(false)
         .limits(LimitsProperty.builder()
                 .daily(123)
                 .maximumDuration(123)
                 .messagesPerSecond(123)
                 .session(123)
                 .total(123)
                 .build())
         .messageConfiguration(MessageConfigurationProperty.builder()
                 .admMessage(MessageProperty.builder()
                         .action("action")
                         .body("body")
                         .imageIconUrl("imageIconUrl")
                         .imageSmallIconUrl("imageSmallIconUrl")
                         .imageUrl("imageUrl")
                         .jsonBody("jsonBody")
                         .mediaUrl("mediaUrl")
                         .rawContent("rawContent")
                         .silentPush(false)
                         .timeToLive(123)
                         .title("title")
                         .url("url")
                         .build())
                 .apnsMessage(MessageProperty.builder()
                         .action("action")
                         .body("body")
                         .imageIconUrl("imageIconUrl")
                         .imageSmallIconUrl("imageSmallIconUrl")
                         .imageUrl("imageUrl")
                         .jsonBody("jsonBody")
                         .mediaUrl("mediaUrl")
                         .rawContent("rawContent")
                         .silentPush(false)
                         .timeToLive(123)
                         .title("title")
                         .url("url")
                         .build())
                 .baiduMessage(MessageProperty.builder()
                         .action("action")
                         .body("body")
                         .imageIconUrl("imageIconUrl")
                         .imageSmallIconUrl("imageSmallIconUrl")
                         .imageUrl("imageUrl")
                         .jsonBody("jsonBody")
                         .mediaUrl("mediaUrl")
                         .rawContent("rawContent")
                         .silentPush(false)
                         .timeToLive(123)
                         .title("title")
                         .url("url")
                         .build())
                 .customMessage(CampaignCustomMessageProperty.builder()
                         .data("data")
                         .build())
                 .defaultMessage(MessageProperty.builder()
                         .action("action")
                         .body("body")
                         .imageIconUrl("imageIconUrl")
                         .imageSmallIconUrl("imageSmallIconUrl")
                         .imageUrl("imageUrl")
                         .jsonBody("jsonBody")
                         .mediaUrl("mediaUrl")
                         .rawContent("rawContent")
                         .silentPush(false)
                         .timeToLive(123)
                         .title("title")
                         .url("url")
                         .build())
                 .emailMessage(CampaignEmailMessageProperty.builder()
                         .body("body")
                         .fromAddress("fromAddress")
                         .htmlBody("htmlBody")
                         .title("title")
                         .build())
                 .gcmMessage(MessageProperty.builder()
                         .action("action")
                         .body("body")
                         .imageIconUrl("imageIconUrl")
                         .imageSmallIconUrl("imageSmallIconUrl")
                         .imageUrl("imageUrl")
                         .jsonBody("jsonBody")
                         .mediaUrl("mediaUrl")
                         .rawContent("rawContent")
                         .silentPush(false)
                         .timeToLive(123)
                         .title("title")
                         .url("url")
                         .build())
                 .inAppMessage(CampaignInAppMessageProperty.builder()
                         .content(List.of(InAppMessageContentProperty.builder()
                                 .backgroundColor("backgroundColor")
                                 .bodyConfig(InAppMessageBodyConfigProperty.builder()
                                         .alignment("alignment")
                                         .body("body")
                                         .textColor("textColor")
                                         .build())
                                 .headerConfig(InAppMessageHeaderConfigProperty.builder()
                                         .alignment("alignment")
                                         .header("header")
                                         .textColor("textColor")
                                         .build())
                                 .imageUrl("imageUrl")
                                 .primaryBtn(InAppMessageButtonProperty.builder()
                                         .android(OverrideButtonConfigurationProperty.builder()
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .build())
                                         .defaultConfig(DefaultButtonConfigurationProperty.builder()
                                                 .backgroundColor("backgroundColor")
                                                 .borderRadius(123)
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .text("text")
                                                 .textColor("textColor")
                                                 .build())
                                         .ios(OverrideButtonConfigurationProperty.builder()
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .build())
                                         .web(OverrideButtonConfigurationProperty.builder()
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .build())
                                         .build())
                                 .secondaryBtn(InAppMessageButtonProperty.builder()
                                         .android(OverrideButtonConfigurationProperty.builder()
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .build())
                                         .defaultConfig(DefaultButtonConfigurationProperty.builder()
                                                 .backgroundColor("backgroundColor")
                                                 .borderRadius(123)
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .text("text")
                                                 .textColor("textColor")
                                                 .build())
                                         .ios(OverrideButtonConfigurationProperty.builder()
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .build())
                                         .web(OverrideButtonConfigurationProperty.builder()
                                                 .buttonAction("buttonAction")
                                                 .link("link")
                                                 .build())
                                         .build())
                                 .build()))
                         .customConfig(customConfig)
                         .layout("layout")
                         .build())
                 .smsMessage(CampaignSmsMessageProperty.builder()
                         .body("body")
                         .entityId("entityId")
                         .messageType("messageType")
                         .originationNumber("originationNumber")
                         .senderId("senderId")
                         .templateId("templateId")
                         .build())
                 .build())
         .priority(123)
         .segmentVersion(123)
         .tags(tags)
         .templateConfiguration(TemplateConfigurationProperty.builder()
                 .emailTemplate(TemplateProperty.builder()
                         .name("name")
                         .version("version")
                         .build())
                 .pushTemplate(TemplateProperty.builder()
                         .name("name")
                         .version("version")
                         .build())
                 .smsTemplate(TemplateProperty.builder()
                         .name("name")
                         .version("version")
                         .build())
                 .voiceTemplate(TemplateProperty.builder()
                         .name("name")
                         .version("version")
                         .build())
                 .build())
         .treatmentDescription("treatmentDescription")
         .treatmentName("treatmentName")
         .build();
 

See Also: