#[non_exhaustive]
pub struct Builder { /* private fields */ }
Expand description

A builder for WriteCampaignRequest

Implementations

Appends an item to additional_treatments.

To override the contents of this collection use set_additional_treatments.

An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.

An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.

The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.

The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.

A custom description of the campaign.

A custom description of the campaign.

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

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

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

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

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

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

The messaging limits for the campaign.

The messaging limits for the campaign.

The message configuration settings for the campaign.

The message configuration settings for the campaign.

A custom name for the campaign.

A custom name for the campaign.

The schedule settings for the campaign.

The schedule settings for the campaign.

The unique identifier for the segment to associate with the campaign.

The unique identifier for the segment to associate with the campaign.

The version of the segment to associate with the campaign.

The version of the segment to associate with the campaign.

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

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

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

The message template to use for the campaign.

The message template to use for the campaign.

A custom description of the default treatment for the campaign.

A custom description of the default treatment for the campaign.

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

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

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.

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.

Consumes the builder and constructs a WriteCampaignRequest

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more