#[non_exhaustive]pub struct RegisterThingInputBuilder { /* private fields */ }Expand description
A builder for RegisterThingInput.
Implementations§
source§impl RegisterThingInputBuilder
impl RegisterThingInputBuilder
sourcepub fn template_body(self, input: impl Into<String>) -> Self
pub fn template_body(self, input: impl Into<String>) -> Self
The provisioning template. See Provisioning Devices That Have Device Certificates for more information.
This field is required.sourcepub fn set_template_body(self, input: Option<String>) -> Self
pub fn set_template_body(self, input: Option<String>) -> Self
The provisioning template. See Provisioning Devices That Have Device Certificates for more information.
sourcepub fn get_template_body(&self) -> &Option<String>
pub fn get_template_body(&self) -> &Option<String>
The provisioning template. See Provisioning Devices That Have Device Certificates for more information.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters.
To override the contents of this collection use set_parameters.
The parameters for provisioning a thing. See Provisioning Templates for more information.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
The parameters for provisioning a thing. See Provisioning Templates for more information.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
The parameters for provisioning a thing. See Provisioning Templates for more information.
sourcepub fn build(self) -> Result<RegisterThingInput, BuildError>
pub fn build(self) -> Result<RegisterThingInput, BuildError>
Consumes the builder and constructs a RegisterThingInput.
source§impl RegisterThingInputBuilder
impl RegisterThingInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<RegisterThingOutput, SdkError<RegisterThingError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<RegisterThingOutput, SdkError<RegisterThingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RegisterThingInputBuilder
impl Clone for RegisterThingInputBuilder
source§fn clone(&self) -> RegisterThingInputBuilder
fn clone(&self) -> RegisterThingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RegisterThingInputBuilder
impl Debug for RegisterThingInputBuilder
source§impl Default for RegisterThingInputBuilder
impl Default for RegisterThingInputBuilder
source§fn default() -> RegisterThingInputBuilder
fn default() -> RegisterThingInputBuilder
source§impl PartialEq for RegisterThingInputBuilder
impl PartialEq for RegisterThingInputBuilder
source§fn eq(&self, other: &RegisterThingInputBuilder) -> bool
fn eq(&self, other: &RegisterThingInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RegisterThingInputBuilder
Auto Trait Implementations§
impl Freeze for RegisterThingInputBuilder
impl RefUnwindSafe for RegisterThingInputBuilder
impl Send for RegisterThingInputBuilder
impl Sync for RegisterThingInputBuilder
impl Unpin for RegisterThingInputBuilder
impl UnwindSafe for RegisterThingInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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