aws-sdk-paymentcryptographydata 1.104.0

AWS SDK for Payment Cryptography Data Plane
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TranslateKeyMaterialOutput {
    /// <p>The outgoing KEK wrapped TR31WrappedKeyBlock.</p>
    pub wrapped_key: ::std::option::Option<crate::types::WrappedWorkingKey>,
    _request_id: Option<String>,
}
impl TranslateKeyMaterialOutput {
    /// <p>The outgoing KEK wrapped TR31WrappedKeyBlock.</p>
    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 {
    /// Creates a new builder-style object to manufacture [`TranslateKeyMaterialOutput`](crate::operation::translate_key_material::TranslateKeyMaterialOutput).
    pub fn builder() -> crate::operation::translate_key_material::builders::TranslateKeyMaterialOutputBuilder {
        crate::operation::translate_key_material::builders::TranslateKeyMaterialOutputBuilder::default()
    }
}

/// A builder for [`TranslateKeyMaterialOutput`](crate::operation::translate_key_material::TranslateKeyMaterialOutput).
#[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 {
    /// <p>The outgoing KEK wrapped TR31WrappedKeyBlock.</p>
    /// This field is required.
    pub fn wrapped_key(mut self, input: crate::types::WrappedWorkingKey) -> Self {
        self.wrapped_key = ::std::option::Option::Some(input);
        self
    }
    /// <p>The outgoing KEK wrapped TR31WrappedKeyBlock.</p>
    pub fn set_wrapped_key(mut self, input: ::std::option::Option<crate::types::WrappedWorkingKey>) -> Self {
        self.wrapped_key = input;
        self
    }
    /// <p>The outgoing KEK wrapped TR31WrappedKeyBlock.</p>
    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
    }
    /// Consumes the builder and constructs a [`TranslateKeyMaterialOutput`](crate::operation::translate_key_material::TranslateKeyMaterialOutput).
    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,
        }
    }
}