Struct aws_sdk_personalize::types::builders::CampaignSummaryBuilder
source · #[non_exhaustive]pub struct CampaignSummaryBuilder { /* private fields */ }Expand description
A builder for CampaignSummary.
Implementations§
source§impl CampaignSummaryBuilder
impl CampaignSummaryBuilder
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 get_campaign_arn(&self) -> &Option<String>
pub fn get_campaign_arn(&self) -> &Option<String>
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 get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
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 get_creation_date_time(&self) -> &Option<DateTime>
pub fn get_creation_date_time(&self) -> &Option<DateTime>
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 get_last_updated_date_time(&self) -> &Option<DateTime>
pub fn get_last_updated_date_time(&self) -> &Option<DateTime>
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 get_failure_reason(&self) -> &Option<String>
pub fn get_failure_reason(&self) -> &Option<String>
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.
Trait Implementations§
source§impl Clone for CampaignSummaryBuilder
impl Clone for CampaignSummaryBuilder
source§fn clone(&self) -> CampaignSummaryBuilder
fn clone(&self) -> CampaignSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CampaignSummaryBuilder
impl Debug for CampaignSummaryBuilder
source§impl Default for CampaignSummaryBuilder
impl Default for CampaignSummaryBuilder
source§fn default() -> CampaignSummaryBuilder
fn default() -> CampaignSummaryBuilder
source§impl PartialEq for CampaignSummaryBuilder
impl PartialEq for CampaignSummaryBuilder
source§fn eq(&self, other: &CampaignSummaryBuilder) -> bool
fn eq(&self, other: &CampaignSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.