Struct aws_sdk_iotthingsgraph::operation::associate_entity_to_thing::builders::AssociateEntityToThingInputBuilder
source · #[non_exhaustive]pub struct AssociateEntityToThingInputBuilder { /* private fields */ }Expand description
A builder for AssociateEntityToThingInput.
Implementations§
source§impl AssociateEntityToThingInputBuilder
impl AssociateEntityToThingInputBuilder
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.
This field is required.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 get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
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 get_entity_id(&self) -> &Option<String>
pub fn get_entity_id(&self) -> &Option<String>
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.
sourcepub fn get_namespace_version(&self) -> &Option<i64>
pub fn get_namespace_version(&self) -> &Option<i64>
The version of the user's namespace. Defaults to the latest version of the user's namespace.
sourcepub fn build(self) -> Result<AssociateEntityToThingInput, BuildError>
pub fn build(self) -> Result<AssociateEntityToThingInput, BuildError>
Consumes the builder and constructs a AssociateEntityToThingInput.
source§impl AssociateEntityToThingInputBuilder
impl AssociateEntityToThingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AssociateEntityToThingOutput, SdkError<AssociateEntityToThingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AssociateEntityToThingOutput, SdkError<AssociateEntityToThingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssociateEntityToThingInputBuilder
impl Clone for AssociateEntityToThingInputBuilder
source§fn clone(&self) -> AssociateEntityToThingInputBuilder
fn clone(&self) -> AssociateEntityToThingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AssociateEntityToThingInputBuilder
impl Default for AssociateEntityToThingInputBuilder
source§fn default() -> AssociateEntityToThingInputBuilder
fn default() -> AssociateEntityToThingInputBuilder
source§impl PartialEq for AssociateEntityToThingInputBuilder
impl PartialEq for AssociateEntityToThingInputBuilder
source§fn eq(&self, other: &AssociateEntityToThingInputBuilder) -> bool
fn eq(&self, other: &AssociateEntityToThingInputBuilder) -> bool
self and other values to be equal, and is used
by ==.