#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TranslateKeyMaterialOutput {
pub wrapped_key: ::std::option::Option<crate::types::WrappedWorkingKey>,
_request_id: Option<String>,
}
impl TranslateKeyMaterialOutput {
pub fn wrapped_key(&self) -> ::std::option::Option<&crate::types::WrappedWorkingKey> {
self.wrapped_key.as_ref()
}
}
impl ::aws_types::request_id::RequestId for TranslateKeyMaterialOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl TranslateKeyMaterialOutput {
pub fn builder() -> crate::operation::translate_key_material::builders::TranslateKeyMaterialOutputBuilder {
crate::operation::translate_key_material::builders::TranslateKeyMaterialOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct TranslateKeyMaterialOutputBuilder {
pub(crate) wrapped_key: ::std::option::Option<crate::types::WrappedWorkingKey>,
_request_id: Option<String>,
}
impl TranslateKeyMaterialOutputBuilder {
pub fn wrapped_key(mut self, input: crate::types::WrappedWorkingKey) -> Self {
self.wrapped_key = ::std::option::Option::Some(input);
self
}
pub fn set_wrapped_key(mut self, input: ::std::option::Option<crate::types::WrappedWorkingKey>) -> Self {
self.wrapped_key = input;
self
}
pub fn get_wrapped_key(&self) -> &::std::option::Option<crate::types::WrappedWorkingKey> {
&self.wrapped_key
}
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::translate_key_material::TranslateKeyMaterialOutput {
crate::operation::translate_key_material::TranslateKeyMaterialOutput {
wrapped_key: self.wrapped_key,
_request_id: self._request_id,
}
}
}