#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartConfigurationChecksOutput {
pub configuration_check_operations: ::std::option::Option<::std::vec::Vec<crate::types::ConfigurationCheckOperation>>,
_request_id: Option<String>,
}
impl StartConfigurationChecksOutput {
pub fn configuration_check_operations(&self) -> &[crate::types::ConfigurationCheckOperation] {
self.configuration_check_operations.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for StartConfigurationChecksOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl StartConfigurationChecksOutput {
pub fn builder() -> crate::operation::start_configuration_checks::builders::StartConfigurationChecksOutputBuilder {
crate::operation::start_configuration_checks::builders::StartConfigurationChecksOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartConfigurationChecksOutputBuilder {
pub(crate) configuration_check_operations: ::std::option::Option<::std::vec::Vec<crate::types::ConfigurationCheckOperation>>,
_request_id: Option<String>,
}
impl StartConfigurationChecksOutputBuilder {
pub fn configuration_check_operations(mut self, input: crate::types::ConfigurationCheckOperation) -> Self {
let mut v = self.configuration_check_operations.unwrap_or_default();
v.push(input);
self.configuration_check_operations = ::std::option::Option::Some(v);
self
}
pub fn set_configuration_check_operations(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::ConfigurationCheckOperation>>,
) -> Self {
self.configuration_check_operations = input;
self
}
pub fn get_configuration_check_operations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ConfigurationCheckOperation>> {
&self.configuration_check_operations
}
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::start_configuration_checks::StartConfigurationChecksOutput {
crate::operation::start_configuration_checks::StartConfigurationChecksOutput {
configuration_check_operations: self.configuration_check_operations,
_request_id: self._request_id,
}
}
}