#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateServerConfigInput {
#[doc(hidden)]
pub server_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub strategy_option: std::option::Option<crate::types::StrategyOption>,
}
impl UpdateServerConfigInput {
pub fn server_id(&self) -> std::option::Option<&str> {
self.server_id.as_deref()
}
pub fn strategy_option(&self) -> std::option::Option<&crate::types::StrategyOption> {
self.strategy_option.as_ref()
}
}
impl UpdateServerConfigInput {
pub fn builder(
) -> crate::operation::update_server_config::builders::UpdateServerConfigInputBuilder {
crate::operation::update_server_config::builders::UpdateServerConfigInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateServerConfigInputBuilder {
pub(crate) server_id: std::option::Option<std::string::String>,
pub(crate) strategy_option: std::option::Option<crate::types::StrategyOption>,
}
impl UpdateServerConfigInputBuilder {
pub fn server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.server_id = Some(input.into());
self
}
pub fn set_server_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_id = input;
self
}
pub fn strategy_option(mut self, input: crate::types::StrategyOption) -> Self {
self.strategy_option = Some(input);
self
}
pub fn set_strategy_option(
mut self,
input: std::option::Option<crate::types::StrategyOption>,
) -> Self {
self.strategy_option = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_server_config::UpdateServerConfigInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::update_server_config::UpdateServerConfigInput {
server_id: self.server_id,
strategy_option: self.strategy_option,
},
)
}
}