pub struct CreateThingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateThing
.
Creates a thing record in the registry. If this call is made multiple times using the same thing name and configuration, the call will succeed. If this call is made with the same thing name but different configuration a ResourceAlreadyExistsException
is thrown.
This is a control plane operation. See Authorization for information about authorizing control plane actions.
Requires permission to access the CreateThing action.
Implementations§
source§impl CreateThingFluentBuilder
impl CreateThingFluentBuilder
sourcepub fn as_input(&self) -> &CreateThingInputBuilder
pub fn as_input(&self) -> &CreateThingInputBuilder
Access the CreateThing as a reference.
sourcepub async fn send(
self
) -> Result<CreateThingOutput, SdkError<CreateThingError, HttpResponse>>
pub async fn send( self ) -> Result<CreateThingOutput, SdkError<CreateThingError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateThingOutput, CreateThingError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateThingOutput, CreateThingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
Trait Implementations§
source§impl Clone for CreateThingFluentBuilder
impl Clone for CreateThingFluentBuilder
source§fn clone(&self) -> CreateThingFluentBuilder
fn clone(&self) -> CreateThingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateThingFluentBuilder
impl !RefUnwindSafe for CreateThingFluentBuilder
impl Send for CreateThingFluentBuilder
impl Sync for CreateThingFluentBuilder
impl Unpin for CreateThingFluentBuilder
impl !UnwindSafe for CreateThingFluentBuilder
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