#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetRandomPasswordOutput {
pub random_password: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetRandomPasswordOutput {
pub fn random_password(&self) -> ::std::option::Option<&str> {
self.random_password.as_deref()
}
}
impl ::std::fmt::Debug for GetRandomPasswordOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetRandomPasswordOutput");
formatter.field("random_password", &"*** Sensitive Data Redacted ***");
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for GetRandomPasswordOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetRandomPasswordOutput {
pub fn builder() -> crate::operation::get_random_password::builders::GetRandomPasswordOutputBuilder {
crate::operation::get_random_password::builders::GetRandomPasswordOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct GetRandomPasswordOutputBuilder {
pub(crate) random_password: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetRandomPasswordOutputBuilder {
pub fn random_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.random_password = ::std::option::Option::Some(input.into());
self
}
pub fn set_random_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.random_password = input;
self
}
pub fn get_random_password(&self) -> &::std::option::Option<::std::string::String> {
&self.random_password
}
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_random_password::GetRandomPasswordOutput {
crate::operation::get_random_password::GetRandomPasswordOutput {
random_password: self.random_password,
_request_id: self._request_id,
}
}
}
impl ::std::fmt::Debug for GetRandomPasswordOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetRandomPasswordOutputBuilder");
formatter.field("random_password", &"*** Sensitive Data Redacted ***");
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}