#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDynamicThingGroupInput {
pub thing_group_name: ::std::option::Option<::std::string::String>,
pub expected_version: ::std::option::Option<i64>,
}
impl DeleteDynamicThingGroupInput {
pub fn thing_group_name(&self) -> ::std::option::Option<&str> {
self.thing_group_name.as_deref()
}
pub fn expected_version(&self) -> ::std::option::Option<i64> {
self.expected_version
}
}
impl DeleteDynamicThingGroupInput {
pub fn builder() -> crate::operation::delete_dynamic_thing_group::builders::DeleteDynamicThingGroupInputBuilder {
crate::operation::delete_dynamic_thing_group::builders::DeleteDynamicThingGroupInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDynamicThingGroupInputBuilder {
pub(crate) thing_group_name: ::std::option::Option<::std::string::String>,
pub(crate) expected_version: ::std::option::Option<i64>,
}
impl DeleteDynamicThingGroupInputBuilder {
pub fn thing_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.thing_group_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_thing_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.thing_group_name = input;
self
}
pub fn get_thing_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.thing_group_name
}
pub fn expected_version(mut self, input: i64) -> Self {
self.expected_version = ::std::option::Option::Some(input);
self
}
pub fn set_expected_version(mut self, input: ::std::option::Option<i64>) -> Self {
self.expected_version = input;
self
}
pub fn get_expected_version(&self) -> &::std::option::Option<i64> {
&self.expected_version
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::delete_dynamic_thing_group::DeleteDynamicThingGroupInput {
thing_group_name: self.thing_group_name,
expected_version: self.expected_version,
})
}
}