#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetConfigOutput {
pub config_type: ::std::option::Option<::std::string::String>,
pub config_file: ::std::option::Option<::std::string::String>,
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_types::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 ::std::convert::Into<::std::string::String>) -> Self {
self.config_type = ::std::option::Option::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 get_config_type(&self) -> &::std::option::Option<::std::string::String> {
&self.config_type
}
pub fn config_file(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.config_file = ::std::option::Option::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 get_config_file(&self) -> &::std::option::Option<::std::string::String> {
&self.config_file
}
pub fn config_cred(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.config_cred = ::std::option::Option::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 fn get_config_cred(&self) -> &::std::option::Option<::std::string::String> {
&self.config_cred
}
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,
}
}
}