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_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:
-
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:
-
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 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 for UpdateCampaignOutputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for UpdateCampaignOutputBuilder
Auto Trait Implementations§
impl Freeze for UpdateCampaignOutputBuilder
impl RefUnwindSafe for UpdateCampaignOutputBuilder
impl Send for UpdateCampaignOutputBuilder
impl Sync for UpdateCampaignOutputBuilder
impl Unpin for UpdateCampaignOutputBuilder
impl UnwindSafe for UpdateCampaignOutputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more