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.
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.
sourcepub fn build(self) -> Result<AssociateEntityToThingInput, BuildError>
pub fn build(self) -> Result<AssociateEntityToThingInput, BuildError>
Consumes the builder and constructs a AssociateEntityToThingInput.
Trait Implementations§
source§impl Clone for AssociateEntityToThingInputBuilder
impl Clone for AssociateEntityToThingInputBuilder
source§fn clone(&self) -> AssociateEntityToThingInputBuilder
fn clone(&self) -> AssociateEntityToThingInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for AssociateEntityToThingInputBuilder
impl Default for AssociateEntityToThingInputBuilder
source§fn default() -> AssociateEntityToThingInputBuilder
fn default() -> AssociateEntityToThingInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AssociateEntityToThingInputBuilder> for AssociateEntityToThingInputBuilder
impl PartialEq<AssociateEntityToThingInputBuilder> for AssociateEntityToThingInputBuilder
source§fn eq(&self, other: &AssociateEntityToThingInputBuilder) -> bool
fn eq(&self, other: &AssociateEntityToThingInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssociateEntityToThingInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AssociateEntityToThingInputBuilder
impl Send for AssociateEntityToThingInputBuilder
impl Sync for AssociateEntityToThingInputBuilder
impl Unpin for AssociateEntityToThingInputBuilder
impl UnwindSafe for AssociateEntityToThingInputBuilder
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
Mutably borrows from an owned value. Read more