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