#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetIndexingConfigurationOutput {
pub thing_indexing_configuration: ::std::option::Option<crate::types::ThingIndexingConfiguration>,
pub thing_group_indexing_configuration: ::std::option::Option<crate::types::ThingGroupIndexingConfiguration>,
_request_id: Option<String>,
}
impl GetIndexingConfigurationOutput {
pub fn thing_indexing_configuration(&self) -> ::std::option::Option<&crate::types::ThingIndexingConfiguration> {
self.thing_indexing_configuration.as_ref()
}
pub fn thing_group_indexing_configuration(&self) -> ::std::option::Option<&crate::types::ThingGroupIndexingConfiguration> {
self.thing_group_indexing_configuration.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetIndexingConfigurationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetIndexingConfigurationOutput {
pub fn builder() -> crate::operation::get_indexing_configuration::builders::GetIndexingConfigurationOutputBuilder {
crate::operation::get_indexing_configuration::builders::GetIndexingConfigurationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIndexingConfigurationOutputBuilder {
pub(crate) thing_indexing_configuration: ::std::option::Option<crate::types::ThingIndexingConfiguration>,
pub(crate) thing_group_indexing_configuration: ::std::option::Option<crate::types::ThingGroupIndexingConfiguration>,
_request_id: Option<String>,
}
impl GetIndexingConfigurationOutputBuilder {
pub fn thing_indexing_configuration(mut self, input: crate::types::ThingIndexingConfiguration) -> Self {
self.thing_indexing_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_thing_indexing_configuration(mut self, input: ::std::option::Option<crate::types::ThingIndexingConfiguration>) -> Self {
self.thing_indexing_configuration = input;
self
}
pub fn get_thing_indexing_configuration(&self) -> &::std::option::Option<crate::types::ThingIndexingConfiguration> {
&self.thing_indexing_configuration
}
pub fn thing_group_indexing_configuration(mut self, input: crate::types::ThingGroupIndexingConfiguration) -> Self {
self.thing_group_indexing_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_thing_group_indexing_configuration(mut self, input: ::std::option::Option<crate::types::ThingGroupIndexingConfiguration>) -> Self {
self.thing_group_indexing_configuration = input;
self
}
pub fn get_thing_group_indexing_configuration(&self) -> &::std::option::Option<crate::types::ThingGroupIndexingConfiguration> {
&self.thing_group_indexing_configuration
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_indexing_configuration::GetIndexingConfigurationOutput {
crate::operation::get_indexing_configuration::GetIndexingConfigurationOutput {
thing_indexing_configuration: self.thing_indexing_configuration,
thing_group_indexing_configuration: self.thing_group_indexing_configuration,
_request_id: self._request_id,
}
}
}