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