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 ==.