#[non_exhaustive]pub struct CreateThingInputBuilder { /* private fields */ }
Expand description
A builder for CreateThingInput
.
Implementations§
source§impl CreateThingInputBuilder
impl CreateThingInputBuilder
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 create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
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 create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the thing to create.
You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.
sourcepub fn thing_type_name(self, input: impl Into<String>) -> Self
pub fn thing_type_name(self, input: impl Into<String>) -> Self
The name of the thing type associated with the new thing.
sourcepub fn set_thing_type_name(self, input: Option<String>) -> Self
pub fn set_thing_type_name(self, input: Option<String>) -> Self
The name of the thing type associated with the new thing.
sourcepub fn get_thing_type_name(&self) -> &Option<String>
pub fn get_thing_type_name(&self) -> &Option<String>
The name of the thing type associated with the new thing.
sourcepub fn attribute_payload(self, input: AttributePayload) -> Self
pub fn attribute_payload(self, input: AttributePayload) -> Self
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn set_attribute_payload(self, input: Option<AttributePayload>) -> Self
pub fn set_attribute_payload(self, input: Option<AttributePayload>) -> Self
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn get_attribute_payload(&self) -> &Option<AttributePayload>
pub fn get_attribute_payload(&self) -> &Option<AttributePayload>
The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn billing_group_name(self, input: impl Into<String>) -> Self
pub fn billing_group_name(self, input: impl Into<String>) -> Self
The name of the billing group the thing will be added to.
sourcepub fn set_billing_group_name(self, input: Option<String>) -> Self
pub fn set_billing_group_name(self, input: Option<String>) -> Self
The name of the billing group the thing will be added to.
sourcepub fn get_billing_group_name(&self) -> &Option<String>
pub fn get_billing_group_name(&self) -> &Option<String>
The name of the billing group the thing will be added to.
sourcepub fn build(self) -> Result<CreateThingInput, BuildError>
pub fn build(self) -> Result<CreateThingInput, BuildError>
Consumes the builder and constructs a CreateThingInput
.
source§impl CreateThingInputBuilder
impl CreateThingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateThingOutput, SdkError<CreateThingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateThingOutput, SdkError<CreateThingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateThingInputBuilder
impl Clone for CreateThingInputBuilder
source§fn clone(&self) -> CreateThingInputBuilder
fn clone(&self) -> CreateThingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateThingInputBuilder
impl Debug for CreateThingInputBuilder
source§impl Default for CreateThingInputBuilder
impl Default for CreateThingInputBuilder
source§fn default() -> CreateThingInputBuilder
fn default() -> CreateThingInputBuilder
source§impl PartialEq for CreateThingInputBuilder
impl PartialEq for CreateThingInputBuilder
source§fn eq(&self, other: &CreateThingInputBuilder) -> bool
fn eq(&self, other: &CreateThingInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateThingInputBuilder
Auto Trait Implementations§
impl Freeze for CreateThingInputBuilder
impl RefUnwindSafe for CreateThingInputBuilder
impl Send for CreateThingInputBuilder
impl Sync for CreateThingInputBuilder
impl Unpin for CreateThingInputBuilder
impl UnwindSafe for CreateThingInputBuilder
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