#[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 ==
.