Struct aws_sdk_iot::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder
source · pub struct UpdateThingGroupsForThingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateThingGroupsForThing
.
Updates the groups to which the thing belongs.
Requires permission to access the UpdateThingGroupsForThing action.
Implementations§
source§impl UpdateThingGroupsForThingFluentBuilder
impl UpdateThingGroupsForThingFluentBuilder
sourcepub fn as_input(&self) -> &UpdateThingGroupsForThingInputBuilder
pub fn as_input(&self) -> &UpdateThingGroupsForThingInputBuilder
Access the UpdateThingGroupsForThing as a reference.
sourcepub async fn send(
self
) -> Result<UpdateThingGroupsForThingOutput, SdkError<UpdateThingGroupsForThingError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateThingGroupsForThingOutput, SdkError<UpdateThingGroupsForThingError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateThingGroupsForThingOutput, UpdateThingGroupsForThingError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateThingGroupsForThingOutput, UpdateThingGroupsForThingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The thing whose group memberships will be updated.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The thing whose group memberships will be updated.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The thing whose group memberships will be updated.
sourcepub fn thing_groups_to_add(self, input: impl Into<String>) -> Self
pub fn thing_groups_to_add(self, input: impl Into<String>) -> Self
Appends an item to thingGroupsToAdd
.
To override the contents of this collection use set_thing_groups_to_add
.
The groups to which the thing will be added.
sourcepub fn set_thing_groups_to_add(self, input: Option<Vec<String>>) -> Self
pub fn set_thing_groups_to_add(self, input: Option<Vec<String>>) -> Self
The groups to which the thing will be added.
sourcepub fn get_thing_groups_to_add(&self) -> &Option<Vec<String>>
pub fn get_thing_groups_to_add(&self) -> &Option<Vec<String>>
The groups to which the thing will be added.
sourcepub fn thing_groups_to_remove(self, input: impl Into<String>) -> Self
pub fn thing_groups_to_remove(self, input: impl Into<String>) -> Self
Appends an item to thingGroupsToRemove
.
To override the contents of this collection use set_thing_groups_to_remove
.
The groups from which the thing will be removed.
sourcepub fn set_thing_groups_to_remove(self, input: Option<Vec<String>>) -> Self
pub fn set_thing_groups_to_remove(self, input: Option<Vec<String>>) -> Self
The groups from which the thing will be removed.
sourcepub fn get_thing_groups_to_remove(&self) -> &Option<Vec<String>>
pub fn get_thing_groups_to_remove(&self) -> &Option<Vec<String>>
The groups from which the thing will be removed.
sourcepub fn override_dynamic_groups(self, input: bool) -> Self
pub fn override_dynamic_groups(self, input: bool) -> Self
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
sourcepub fn set_override_dynamic_groups(self, input: Option<bool>) -> Self
pub fn set_override_dynamic_groups(self, input: Option<bool>) -> Self
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
sourcepub fn get_override_dynamic_groups(&self) -> &Option<bool>
pub fn get_override_dynamic_groups(&self) -> &Option<bool>
Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
Trait Implementations§
source§impl Clone for UpdateThingGroupsForThingFluentBuilder
impl Clone for UpdateThingGroupsForThingFluentBuilder
source§fn clone(&self) -> UpdateThingGroupsForThingFluentBuilder
fn clone(&self) -> UpdateThingGroupsForThingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more