Struct aws_sdk_greengrassv2::operation::create_component_version::builders::CreateComponentVersionOutputBuilder
source · #[non_exhaustive]pub struct CreateComponentVersionOutputBuilder { /* private fields */ }Expand description
A builder for CreateComponentVersionOutput.
Implementations§
source§impl CreateComponentVersionOutputBuilder
impl CreateComponentVersionOutputBuilder
sourcepub fn component_name(self, input: impl Into<String>) -> Self
pub fn component_name(self, input: impl Into<String>) -> Self
The name of the component.
This field is required.sourcepub fn set_component_name(self, input: Option<String>) -> Self
pub fn set_component_name(self, input: Option<String>) -> Self
The name of the component.
sourcepub fn get_component_name(&self) -> &Option<String>
pub fn get_component_name(&self) -> &Option<String>
The name of the component.
sourcepub fn component_version(self, input: impl Into<String>) -> Self
pub fn component_version(self, input: impl Into<String>) -> Self
The version of the component.
This field is required.sourcepub fn set_component_version(self, input: Option<String>) -> Self
pub fn set_component_version(self, input: Option<String>) -> Self
The version of the component.
sourcepub fn get_component_version(&self) -> &Option<String>
pub fn get_component_version(&self) -> &Option<String>
The version of the component.
sourcepub fn creation_timestamp(self, input: DateTime) -> Self
pub fn creation_timestamp(self, input: DateTime) -> Self
The time at which the component was created, expressed in ISO 8601 format.
This field is required.sourcepub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
The time at which the component was created, expressed in ISO 8601 format.
sourcepub fn get_creation_timestamp(&self) -> &Option<DateTime>
pub fn get_creation_timestamp(&self) -> &Option<DateTime>
The time at which the component was created, expressed in ISO 8601 format.
sourcepub fn status(self, input: CloudComponentStatus) -> Self
pub fn status(self, input: CloudComponentStatus) -> Self
The status of the component version in IoT Greengrass V2. This status is different from the status of the component on a core device.
This field is required.sourcepub fn set_status(self, input: Option<CloudComponentStatus>) -> Self
pub fn set_status(self, input: Option<CloudComponentStatus>) -> Self
The status of the component version in IoT Greengrass V2. This status is different from the status of the component on a core device.
sourcepub fn get_status(&self) -> &Option<CloudComponentStatus>
pub fn get_status(&self) -> &Option<CloudComponentStatus>
The status of the component version in IoT Greengrass V2. This status is different from the status of the component on a core device.
sourcepub fn build(self) -> Result<CreateComponentVersionOutput, BuildError>
pub fn build(self) -> Result<CreateComponentVersionOutput, BuildError>
Consumes the builder and constructs a CreateComponentVersionOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateComponentVersionOutputBuilder
impl Clone for CreateComponentVersionOutputBuilder
source§fn clone(&self) -> CreateComponentVersionOutputBuilder
fn clone(&self) -> CreateComponentVersionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateComponentVersionOutputBuilder
impl Default for CreateComponentVersionOutputBuilder
source§fn default() -> CreateComponentVersionOutputBuilder
fn default() -> CreateComponentVersionOutputBuilder
source§impl PartialEq for CreateComponentVersionOutputBuilder
impl PartialEq for CreateComponentVersionOutputBuilder
source§fn eq(&self, other: &CreateComponentVersionOutputBuilder) -> bool
fn eq(&self, other: &CreateComponentVersionOutputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateComponentVersionOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateComponentVersionOutputBuilder
impl RefUnwindSafe for CreateComponentVersionOutputBuilder
impl Send for CreateComponentVersionOutputBuilder
impl Sync for CreateComponentVersionOutputBuilder
impl Unpin for CreateComponentVersionOutputBuilder
impl UnwindSafe for CreateComponentVersionOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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