#[non_exhaustive]pub struct CampaignSummaryBuilder { /* private fields */ }Expand description
A builder for CampaignSummary.
Implementations§
source§impl CampaignSummaryBuilder
impl CampaignSummaryBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a campaign.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a campaign.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the campaign.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the campaign.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the campaign.
sourcepub fn signal_catalog_arn(self, input: impl Into<String>) -> Self
pub fn signal_catalog_arn(self, input: impl Into<String>) -> Self
The ARN of the signal catalog associated with the campaign.
sourcepub fn set_signal_catalog_arn(self, input: Option<String>) -> Self
pub fn set_signal_catalog_arn(self, input: Option<String>) -> Self
The ARN of the signal catalog associated with the campaign.
sourcepub fn get_signal_catalog_arn(&self) -> &Option<String>
pub fn get_signal_catalog_arn(&self) -> &Option<String>
The ARN of the signal catalog associated with the campaign.
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The ARN of a vehicle or fleet to which the campaign is deployed.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The ARN of a vehicle or fleet to which the campaign is deployed.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The ARN of a vehicle or fleet to which the campaign is deployed.
sourcepub fn status(self, input: CampaignStatus) -> Self
pub fn status(self, input: CampaignStatus) -> Self
The state of a campaign. The status can be one of the following:
-
CREATING- Amazon Web Services IoT FleetWise is processing your request to create the campaign. -
WAITING_FOR_APPROVAL- After a campaign is created, it enters theWAITING_FOR_APPROVALstate. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign. -
RUNNING- The campaign is active. -
SUSPENDED- The campaign is suspended. To resume the campaign, use the API operation.
sourcepub fn set_status(self, input: Option<CampaignStatus>) -> Self
pub fn set_status(self, input: Option<CampaignStatus>) -> Self
The state of a campaign. The status can be one of the following:
-
CREATING- Amazon Web Services IoT FleetWise is processing your request to create the campaign. -
WAITING_FOR_APPROVAL- After a campaign is created, it enters theWAITING_FOR_APPROVALstate. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign. -
RUNNING- The campaign is active. -
SUSPENDED- The campaign is suspended. To resume the campaign, use the API operation.
sourcepub fn get_status(&self) -> &Option<CampaignStatus>
pub fn get_status(&self) -> &Option<CampaignStatus>
The state of a campaign. The status can be one of the following:
-
CREATING- Amazon Web Services IoT FleetWise is processing your request to create the campaign. -
WAITING_FOR_APPROVAL- After a campaign is created, it enters theWAITING_FOR_APPROVALstate. To allow Amazon Web Services IoT FleetWise to deploy the campaign to the target vehicle or fleet, use the API operation to approve the campaign. -
RUNNING- The campaign is active. -
SUSPENDED- The campaign is suspended. To resume the campaign, use the API operation.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time the campaign was created.
This field is required.sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time the campaign was created.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time the campaign was created.
sourcepub fn last_modification_time(self, input: DateTime) -> Self
pub fn last_modification_time(self, input: DateTime) -> Self
The last time the campaign was modified.
This field is required.sourcepub fn set_last_modification_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modification_time(self, input: Option<DateTime>) -> Self
The last time the campaign was modified.
sourcepub fn get_last_modification_time(&self) -> &Option<DateTime>
pub fn get_last_modification_time(&self) -> &Option<DateTime>
The last time the campaign was modified.
sourcepub fn build(self) -> Result<CampaignSummary, BuildError>
pub fn build(self) -> Result<CampaignSummary, BuildError>
Consumes the builder and constructs a CampaignSummary.
This method will fail if any of the following fields are not set:
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 ==.