Struct aws_sdk_personalize::model::campaign_summary::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CampaignSummary
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn campaign_arn(self, input: impl Into<String>) -> Self
pub fn campaign_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the campaign.
sourcepub fn set_campaign_arn(self, input: Option<String>) -> Self
pub fn set_campaign_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the campaign.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The date and time (in Unix time) that the campaign was created.
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
The date and time (in Unix time) that the campaign was created.
sourcepub fn last_updated_date_time(self, input: DateTime) -> Self
pub fn last_updated_date_time(self, input: DateTime) -> Self
The date and time (in Unix time) that the campaign was last updated.
sourcepub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
The date and time (in Unix time) that the campaign was last updated.
sourcepub fn failure_reason(self, input: impl Into<String>) -> Self
pub fn failure_reason(self, input: impl Into<String>) -> Self
If a campaign fails, the reason behind the failure.
sourcepub fn set_failure_reason(self, input: Option<String>) -> Self
pub fn set_failure_reason(self, input: Option<String>) -> Self
If a campaign fails, the reason behind the failure.
sourcepub fn build(self) -> CampaignSummary
pub fn build(self) -> CampaignSummary
Consumes the builder and constructs a CampaignSummary
.