Struct aws_sdk_iot1clickprojects::operation::associate_device_with_placement::builders::AssociateDeviceWithPlacementInputBuilder
source · #[non_exhaustive]pub struct AssociateDeviceWithPlacementInputBuilder { /* private fields */ }Expand description
A builder for AssociateDeviceWithPlacementInput.
Implementations§
source§impl AssociateDeviceWithPlacementInputBuilder
impl AssociateDeviceWithPlacementInputBuilder
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project containing the placement in which to associate the device.
This field is required.sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project containing the placement in which to associate the device.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project containing the placement in which to associate the device.
sourcepub fn placement_name(self, input: impl Into<String>) -> Self
pub fn placement_name(self, input: impl Into<String>) -> Self
The name of the placement in which to associate the device.
This field is required.sourcepub fn set_placement_name(self, input: Option<String>) -> Self
pub fn set_placement_name(self, input: Option<String>) -> Self
The name of the placement in which to associate the device.
sourcepub fn get_placement_name(&self) -> &Option<String>
pub fn get_placement_name(&self) -> &Option<String>
The name of the placement in which to associate the device.
sourcepub fn device_id(self, input: impl Into<String>) -> Self
pub fn device_id(self, input: impl Into<String>) -> Self
The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all deviceId values.
sourcepub fn set_device_id(self, input: Option<String>) -> Self
pub fn set_device_id(self, input: Option<String>) -> Self
The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all deviceId values.
sourcepub fn get_device_id(&self) -> &Option<String>
pub fn get_device_id(&self) -> &Option<String>
The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all deviceId values.
sourcepub fn device_template_name(self, input: impl Into<String>) -> Self
pub fn device_template_name(self, input: impl Into<String>) -> Self
The device template name to associate with the device ID.
This field is required.sourcepub fn set_device_template_name(self, input: Option<String>) -> Self
pub fn set_device_template_name(self, input: Option<String>) -> Self
The device template name to associate with the device ID.
sourcepub fn get_device_template_name(&self) -> &Option<String>
pub fn get_device_template_name(&self) -> &Option<String>
The device template name to associate with the device ID.
sourcepub fn build(self) -> Result<AssociateDeviceWithPlacementInput, BuildError>
pub fn build(self) -> Result<AssociateDeviceWithPlacementInput, BuildError>
Consumes the builder and constructs a AssociateDeviceWithPlacementInput.
source§impl AssociateDeviceWithPlacementInputBuilder
impl AssociateDeviceWithPlacementInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AssociateDeviceWithPlacementOutput, SdkError<AssociateDeviceWithPlacementError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AssociateDeviceWithPlacementOutput, SdkError<AssociateDeviceWithPlacementError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssociateDeviceWithPlacementInputBuilder
impl Clone for AssociateDeviceWithPlacementInputBuilder
source§fn clone(&self) -> AssociateDeviceWithPlacementInputBuilder
fn clone(&self) -> AssociateDeviceWithPlacementInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AssociateDeviceWithPlacementInputBuilder
impl Default for AssociateDeviceWithPlacementInputBuilder
source§fn default() -> AssociateDeviceWithPlacementInputBuilder
fn default() -> AssociateDeviceWithPlacementInputBuilder
source§impl PartialEq for AssociateDeviceWithPlacementInputBuilder
impl PartialEq for AssociateDeviceWithPlacementInputBuilder
source§fn eq(&self, other: &AssociateDeviceWithPlacementInputBuilder) -> bool
fn eq(&self, other: &AssociateDeviceWithPlacementInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssociateDeviceWithPlacementInputBuilder
Auto Trait Implementations§
impl Freeze for AssociateDeviceWithPlacementInputBuilder
impl RefUnwindSafe for AssociateDeviceWithPlacementInputBuilder
impl Send for AssociateDeviceWithPlacementInputBuilder
impl Sync for AssociateDeviceWithPlacementInputBuilder
impl Unpin for AssociateDeviceWithPlacementInputBuilder
impl UnwindSafe for AssociateDeviceWithPlacementInputBuilder
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