#[non_exhaustive]pub struct ComponentConfigurationUpdateBuilder { /* private fields */ }Expand description
A builder for ComponentConfigurationUpdate.
Implementations§
source§impl ComponentConfigurationUpdateBuilder
impl ComponentConfigurationUpdateBuilder
sourcepub fn merge(self, input: impl Into<String>) -> Self
pub fn merge(self, input: impl Into<String>) -> Self
A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn set_merge(self, input: Option<String>) -> Self
pub fn set_merge(self, input: Option<String>) -> Self
A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn get_merge(&self) -> &Option<String>
pub fn get_merge(&self) -> &Option<String>
A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn reset(self, input: impl Into<String>) -> Self
pub fn reset(self, input: impl Into<String>) -> Self
Appends an item to reset.
To override the contents of this collection use set_reset.
The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn set_reset(self, input: Option<Vec<String>>) -> Self
pub fn set_reset(self, input: Option<Vec<String>>) -> Self
The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn get_reset(&self) -> &Option<Vec<String>>
pub fn get_reset(&self) -> &Option<Vec<String>>
The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn build(self) -> ComponentConfigurationUpdate
pub fn build(self) -> ComponentConfigurationUpdate
Consumes the builder and constructs a ComponentConfigurationUpdate.
Trait Implementations§
source§impl Clone for ComponentConfigurationUpdateBuilder
impl Clone for ComponentConfigurationUpdateBuilder
source§fn clone(&self) -> ComponentConfigurationUpdateBuilder
fn clone(&self) -> ComponentConfigurationUpdateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ComponentConfigurationUpdateBuilder
impl Default for ComponentConfigurationUpdateBuilder
source§fn default() -> ComponentConfigurationUpdateBuilder
fn default() -> ComponentConfigurationUpdateBuilder
source§impl PartialEq for ComponentConfigurationUpdateBuilder
impl PartialEq for ComponentConfigurationUpdateBuilder
source§fn eq(&self, other: &ComponentConfigurationUpdateBuilder) -> bool
fn eq(&self, other: &ComponentConfigurationUpdateBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentConfigurationUpdateBuilder
Auto Trait Implementations§
impl Freeze for ComponentConfigurationUpdateBuilder
impl RefUnwindSafe for ComponentConfigurationUpdateBuilder
impl Send for ComponentConfigurationUpdateBuilder
impl Sync for ComponentConfigurationUpdateBuilder
impl Unpin for ComponentConfigurationUpdateBuilder
impl UnwindSafe for ComponentConfigurationUpdateBuilder
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