#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchAssociateClientDeviceWithCoreDeviceInput {
#[doc(hidden)]
pub entries:
std::option::Option<std::vec::Vec<crate::types::AssociateClientDeviceWithCoreDeviceEntry>>,
#[doc(hidden)]
pub core_device_thing_name: std::option::Option<std::string::String>,
}
impl BatchAssociateClientDeviceWithCoreDeviceInput {
pub fn entries(
&self,
) -> std::option::Option<&[crate::types::AssociateClientDeviceWithCoreDeviceEntry]> {
self.entries.as_deref()
}
pub fn core_device_thing_name(&self) -> std::option::Option<&str> {
self.core_device_thing_name.as_deref()
}
}
impl BatchAssociateClientDeviceWithCoreDeviceInput {
pub fn builder() -> crate::operation::batch_associate_client_device_with_core_device::builders::BatchAssociateClientDeviceWithCoreDeviceInputBuilder{
crate::operation::batch_associate_client_device_with_core_device::builders::BatchAssociateClientDeviceWithCoreDeviceInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct BatchAssociateClientDeviceWithCoreDeviceInputBuilder {
pub(crate) entries:
std::option::Option<std::vec::Vec<crate::types::AssociateClientDeviceWithCoreDeviceEntry>>,
pub(crate) core_device_thing_name: std::option::Option<std::string::String>,
}
impl BatchAssociateClientDeviceWithCoreDeviceInputBuilder {
pub fn entries(
mut self,
input: crate::types::AssociateClientDeviceWithCoreDeviceEntry,
) -> Self {
let mut v = self.entries.unwrap_or_default();
v.push(input);
self.entries = Some(v);
self
}
pub fn set_entries(
mut self,
input: std::option::Option<
std::vec::Vec<crate::types::AssociateClientDeviceWithCoreDeviceEntry>,
>,
) -> Self {
self.entries = input;
self
}
pub fn core_device_thing_name(mut self, input: impl Into<std::string::String>) -> Self {
self.core_device_thing_name = Some(input.into());
self
}
pub fn set_core_device_thing_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.core_device_thing_name = input;
self
}
pub fn build(self) -> Result<crate::operation::batch_associate_client_device_with_core_device::BatchAssociateClientDeviceWithCoreDeviceInput, aws_smithy_http::operation::error::BuildError>{
Ok(
crate::operation::batch_associate_client_device_with_core_device::BatchAssociateClientDeviceWithCoreDeviceInput {
entries: self.entries
,
core_device_thing_name: self.core_device_thing_name
,
}
)
}
}