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 ==
.impl StructuralPartialEq for AssociateEntityToThingInputBuilder
Auto Trait Implementations§
impl Freeze for AssociateEntityToThingInputBuilder
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
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