#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBackendConfigOutput {
pub app_id: ::std::option::Option<::std::string::String>,
pub backend_manager_app_id: ::std::option::Option<::std::string::String>,
pub error: ::std::option::Option<::std::string::String>,
pub login_auth_config: ::std::option::Option<crate::types::LoginAuthConfigReqObj>,
_request_id: Option<String>,
}
impl UpdateBackendConfigOutput {
pub fn app_id(&self) -> ::std::option::Option<&str> {
self.app_id.as_deref()
}
pub fn backend_manager_app_id(&self) -> ::std::option::Option<&str> {
self.backend_manager_app_id.as_deref()
}
pub fn error(&self) -> ::std::option::Option<&str> {
self.error.as_deref()
}
pub fn login_auth_config(&self) -> ::std::option::Option<&crate::types::LoginAuthConfigReqObj> {
self.login_auth_config.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateBackendConfigOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateBackendConfigOutput {
pub fn builder() -> crate::operation::update_backend_config::builders::UpdateBackendConfigOutputBuilder {
crate::operation::update_backend_config::builders::UpdateBackendConfigOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateBackendConfigOutputBuilder {
pub(crate) app_id: ::std::option::Option<::std::string::String>,
pub(crate) backend_manager_app_id: ::std::option::Option<::std::string::String>,
pub(crate) error: ::std::option::Option<::std::string::String>,
pub(crate) login_auth_config: ::std::option::Option<crate::types::LoginAuthConfigReqObj>,
_request_id: Option<String>,
}
impl UpdateBackendConfigOutputBuilder {
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_id = input;
self
}
pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
&self.app_id
}
pub fn backend_manager_app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.backend_manager_app_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_backend_manager_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.backend_manager_app_id = input;
self
}
pub fn get_backend_manager_app_id(&self) -> &::std::option::Option<::std::string::String> {
&self.backend_manager_app_id
}
pub fn error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.error = ::std::option::Option::Some(input.into());
self
}
pub fn set_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.error = input;
self
}
pub fn get_error(&self) -> &::std::option::Option<::std::string::String> {
&self.error
}
pub fn login_auth_config(mut self, input: crate::types::LoginAuthConfigReqObj) -> Self {
self.login_auth_config = ::std::option::Option::Some(input);
self
}
pub fn set_login_auth_config(mut self, input: ::std::option::Option<crate::types::LoginAuthConfigReqObj>) -> Self {
self.login_auth_config = input;
self
}
pub fn get_login_auth_config(&self) -> &::std::option::Option<crate::types::LoginAuthConfigReqObj> {
&self.login_auth_config
}
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::update_backend_config::UpdateBackendConfigOutput {
crate::operation::update_backend_config::UpdateBackendConfigOutput {
app_id: self.app_id,
backend_manager_app_id: self.backend_manager_app_id,
error: self.error,
login_auth_config: self.login_auth_config,
_request_id: self._request_id,
}
}
}