#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetConfigInput {
#[doc(hidden)]
pub client_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub client_version: std::option::Option<crate::types::ClientVersion>,
#[doc(hidden)]
pub hapg_list: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl GetConfigInput {
pub fn client_arn(&self) -> std::option::Option<&str> {
self.client_arn.as_deref()
}
pub fn client_version(&self) -> std::option::Option<&crate::types::ClientVersion> {
self.client_version.as_ref()
}
pub fn hapg_list(&self) -> std::option::Option<&[std::string::String]> {
self.hapg_list.as_deref()
}
}
impl GetConfigInput {
pub fn builder() -> crate::operation::get_config::builders::GetConfigInputBuilder {
crate::operation::get_config::builders::GetConfigInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetConfigInputBuilder {
pub(crate) client_arn: std::option::Option<std::string::String>,
pub(crate) client_version: std::option::Option<crate::types::ClientVersion>,
pub(crate) hapg_list: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl GetConfigInputBuilder {
pub fn client_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.client_arn = Some(input.into());
self
}
pub fn set_client_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_arn = input;
self
}
pub fn client_version(mut self, input: crate::types::ClientVersion) -> Self {
self.client_version = Some(input);
self
}
pub fn set_client_version(
mut self,
input: std::option::Option<crate::types::ClientVersion>,
) -> Self {
self.client_version = input;
self
}
pub fn hapg_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.hapg_list.unwrap_or_default();
v.push(input.into());
self.hapg_list = Some(v);
self
}
pub fn set_hapg_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.hapg_list = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_config::GetConfigInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_config::GetConfigInput {
client_arn: self.client_arn,
client_version: self.client_version,
hapg_list: self.hapg_list,
})
}
}