#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetConfigOutput {
#[doc(hidden)]
pub config_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub config_file: std::option::Option<std::string::String>,
#[doc(hidden)]
pub config_cred: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl GetConfigOutput {
pub fn config_type(&self) -> std::option::Option<&str> {
self.config_type.as_deref()
}
pub fn config_file(&self) -> std::option::Option<&str> {
self.config_file.as_deref()
}
pub fn config_cred(&self) -> std::option::Option<&str> {
self.config_cred.as_deref()
}
}
impl aws_http::request_id::RequestId for GetConfigOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetConfigOutput {
pub fn builder() -> crate::operation::get_config::builders::GetConfigOutputBuilder {
crate::operation::get_config::builders::GetConfigOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetConfigOutputBuilder {
pub(crate) config_type: std::option::Option<std::string::String>,
pub(crate) config_file: std::option::Option<std::string::String>,
pub(crate) config_cred: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl GetConfigOutputBuilder {
pub fn config_type(mut self, input: impl Into<std::string::String>) -> Self {
self.config_type = Some(input.into());
self
}
pub fn set_config_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.config_type = input;
self
}
pub fn config_file(mut self, input: impl Into<std::string::String>) -> Self {
self.config_file = Some(input.into());
self
}
pub fn set_config_file(mut self, input: std::option::Option<std::string::String>) -> Self {
self.config_file = input;
self
}
pub fn config_cred(mut self, input: impl Into<std::string::String>) -> Self {
self.config_cred = Some(input.into());
self
}
pub fn set_config_cred(mut self, input: std::option::Option<std::string::String>) -> Self {
self.config_cred = 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_config::GetConfigOutput {
crate::operation::get_config::GetConfigOutput {
config_type: self.config_type,
config_file: self.config_file,
config_cred: self.config_cred,
_request_id: self._request_id,
}
}
}