pub struct AssociateEntityToThing { /* private fields */ }Expand description
Fluent builder constructing a request to AssociateEntityToThing.
Associates a device with a concrete thing that is in the user's registry.
A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.
Implementations§
source§impl AssociateEntityToThing
 
impl AssociateEntityToThing
sourcepub async fn customize(
    self
) -> Result<CustomizableOperation<AssociateEntityToThing, AwsResponseRetryClassifier>, SdkError<AssociateEntityToThingError>>
 
pub async fn customize(
    self
) -> Result<CustomizableOperation<AssociateEntityToThing, AwsResponseRetryClassifier>, SdkError<AssociateEntityToThingError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
    self
) -> Result<AssociateEntityToThingOutput, SdkError<AssociateEntityToThingError>>
 
pub async fn send(
    self
) -> Result<AssociateEntityToThingOutput, SdkError<AssociateEntityToThingError>>
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 thing_name(self, input: impl Into<String>) -> Self
 
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the thing to which the entity is to be associated.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
 
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the thing to which the entity is to be associated.
sourcepub fn entity_id(self, input: impl Into<String>) -> Self
 
pub fn entity_id(self, input: impl Into<String>) -> Self
The ID of the device to be associated with the thing.
The ID should be in the following format.
 urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME 
sourcepub fn set_entity_id(self, input: Option<String>) -> Self
 
pub fn set_entity_id(self, input: Option<String>) -> Self
The ID of the device to be associated with the thing.
The ID should be in the following format.
 urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME 
sourcepub fn namespace_version(self, input: i64) -> Self
 
pub fn namespace_version(self, input: i64) -> Self
The version of the user's namespace. Defaults to the latest version of the user's namespace.
sourcepub fn set_namespace_version(self, input: Option<i64>) -> Self
 
pub fn set_namespace_version(self, input: Option<i64>) -> Self
The version of the user's namespace. Defaults to the latest version of the user's namespace.
Trait Implementations§
source§impl Clone for AssociateEntityToThing
 
impl Clone for AssociateEntityToThing
source§fn clone(&self) -> AssociateEntityToThing
 
fn clone(&self) -> AssociateEntityToThing
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more