#[non_exhaustive]pub struct ComponentDeploymentSpecificationBuilder { /* private fields */ }Expand description
A builder for ComponentDeploymentSpecification.
Implementations§
source§impl ComponentDeploymentSpecificationBuilder
impl ComponentDeploymentSpecificationBuilder
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 configuration_update(self, input: ComponentConfigurationUpdate) -> Self
pub fn configuration_update(self, input: ComponentConfigurationUpdate) -> Self
The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the IoT Greengrass V2 Developer Guide.
sourcepub fn set_configuration_update(
self,
input: Option<ComponentConfigurationUpdate>,
) -> Self
pub fn set_configuration_update( self, input: Option<ComponentConfigurationUpdate>, ) -> Self
The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the IoT Greengrass V2 Developer Guide.
sourcepub fn get_configuration_update(&self) -> &Option<ComponentConfigurationUpdate>
pub fn get_configuration_update(&self) -> &Option<ComponentConfigurationUpdate>
The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the IoT Greengrass V2 Developer Guide.
sourcepub fn run_with(self, input: ComponentRunWith) -> Self
pub fn run_with(self, input: ComponentRunWith) -> Self
The system user and group that the IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer Guide.
sourcepub fn set_run_with(self, input: Option<ComponentRunWith>) -> Self
pub fn set_run_with(self, input: Option<ComponentRunWith>) -> Self
The system user and group that the IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer Guide.
sourcepub fn get_run_with(&self) -> &Option<ComponentRunWith>
pub fn get_run_with(&self) -> &Option<ComponentRunWith>
The system user and group that the IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer Guide.
sourcepub fn build(self) -> Result<ComponentDeploymentSpecification, BuildError>
pub fn build(self) -> Result<ComponentDeploymentSpecification, BuildError>
Consumes the builder and constructs a ComponentDeploymentSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ComponentDeploymentSpecificationBuilder
impl Clone for ComponentDeploymentSpecificationBuilder
source§fn clone(&self) -> ComponentDeploymentSpecificationBuilder
fn clone(&self) -> ComponentDeploymentSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ComponentDeploymentSpecificationBuilder
impl Default for ComponentDeploymentSpecificationBuilder
source§fn default() -> ComponentDeploymentSpecificationBuilder
fn default() -> ComponentDeploymentSpecificationBuilder
source§impl PartialEq for ComponentDeploymentSpecificationBuilder
impl PartialEq for ComponentDeploymentSpecificationBuilder
source§fn eq(&self, other: &ComponentDeploymentSpecificationBuilder) -> bool
fn eq(&self, other: &ComponentDeploymentSpecificationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentDeploymentSpecificationBuilder
Auto Trait Implementations§
impl Freeze for ComponentDeploymentSpecificationBuilder
impl RefUnwindSafe for ComponentDeploymentSpecificationBuilder
impl Send for ComponentDeploymentSpecificationBuilder
impl Sync for ComponentDeploymentSpecificationBuilder
impl Unpin for ComponentDeploymentSpecificationBuilder
impl UnwindSafe for ComponentDeploymentSpecificationBuilder
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