Struct aws_sdk_iotfleetwise::operation::update_campaign::builders::UpdateCampaignOutputBuilder
source · #[non_exhaustive]pub struct UpdateCampaignOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateCampaignOutput
.
Implementations§
source§impl UpdateCampaignOutputBuilder
impl UpdateCampaignOutputBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the 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 the campaign.
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:
-
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_APPROVAL
state. 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:
-
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_APPROVAL
state. 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:
-
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_APPROVAL
state. 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 build(self) -> UpdateCampaignOutput
pub fn build(self) -> UpdateCampaignOutput
Consumes the builder and constructs a UpdateCampaignOutput
.
Trait Implementations§
source§impl Clone for UpdateCampaignOutputBuilder
impl Clone for UpdateCampaignOutputBuilder
source§fn clone(&self) -> UpdateCampaignOutputBuilder
fn clone(&self) -> UpdateCampaignOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateCampaignOutputBuilder
impl Debug for UpdateCampaignOutputBuilder
source§impl Default for UpdateCampaignOutputBuilder
impl Default for UpdateCampaignOutputBuilder
source§fn default() -> UpdateCampaignOutputBuilder
fn default() -> UpdateCampaignOutputBuilder
source§impl PartialEq<UpdateCampaignOutputBuilder> for UpdateCampaignOutputBuilder
impl PartialEq<UpdateCampaignOutputBuilder> for UpdateCampaignOutputBuilder
source§fn eq(&self, other: &UpdateCampaignOutputBuilder) -> bool
fn eq(&self, other: &UpdateCampaignOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.