#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetServerStrategiesOutput {
#[doc(hidden)]
pub server_strategies: std::option::Option<std::vec::Vec<crate::types::ServerStrategy>>,
_request_id: Option<String>,
}
impl GetServerStrategiesOutput {
pub fn server_strategies(&self) -> std::option::Option<&[crate::types::ServerStrategy]> {
self.server_strategies.as_deref()
}
}
impl aws_http::request_id::RequestId for GetServerStrategiesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetServerStrategiesOutput {
pub fn builder(
) -> crate::operation::get_server_strategies::builders::GetServerStrategiesOutputBuilder {
crate::operation::get_server_strategies::builders::GetServerStrategiesOutputBuilder::default(
)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetServerStrategiesOutputBuilder {
pub(crate) server_strategies: std::option::Option<std::vec::Vec<crate::types::ServerStrategy>>,
_request_id: Option<String>,
}
impl GetServerStrategiesOutputBuilder {
pub fn server_strategies(mut self, input: crate::types::ServerStrategy) -> Self {
let mut v = self.server_strategies.unwrap_or_default();
v.push(input);
self.server_strategies = Some(v);
self
}
pub fn set_server_strategies(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::ServerStrategy>>,
) -> Self {
self.server_strategies = input;
self
}
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_server_strategies::GetServerStrategiesOutput {
crate::operation::get_server_strategies::GetServerStrategiesOutput {
server_strategies: self.server_strategies,
_request_id: self._request_id,
}
}
}