#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDecryptedApiKeyOutput {
pub token_domains: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub creation_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl GetDecryptedApiKeyOutput {
pub fn token_domains(&self) -> &[::std::string::String] {
self.token_domains.as_deref().unwrap_or_default()
}
pub fn creation_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_timestamp.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetDecryptedApiKeyOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDecryptedApiKeyOutput {
pub fn builder() -> crate::operation::get_decrypted_api_key::builders::GetDecryptedApiKeyOutputBuilder {
crate::operation::get_decrypted_api_key::builders::GetDecryptedApiKeyOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetDecryptedApiKeyOutputBuilder {
pub(crate) token_domains: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) creation_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl GetDecryptedApiKeyOutputBuilder {
pub fn token_domains(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.token_domains.unwrap_or_default();
v.push(input.into());
self.token_domains = ::std::option::Option::Some(v);
self
}
pub fn set_token_domains(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.token_domains = input;
self
}
pub fn get_token_domains(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.token_domains
}
pub fn creation_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_timestamp = ::std::option::Option::Some(input);
self
}
pub fn set_creation_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_timestamp = input;
self
}
pub fn get_creation_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_timestamp
}
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_decrypted_api_key::GetDecryptedApiKeyOutput {
crate::operation::get_decrypted_api_key::GetDecryptedApiKeyOutput {
token_domains: self.token_domains,
creation_timestamp: self.creation_timestamp,
_request_id: self._request_id,
}
}
}