#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ReEncryptOutput {
pub ciphertext_blob: ::std::option::Option<::aws_smithy_types::Blob>,
pub source_key_id: ::std::option::Option<::std::string::String>,
pub key_id: ::std::option::Option<::std::string::String>,
pub source_encryption_algorithm: ::std::option::Option<crate::types::EncryptionAlgorithmSpec>,
pub destination_encryption_algorithm: ::std::option::Option<crate::types::EncryptionAlgorithmSpec>,
_request_id: Option<String>,
}
impl ReEncryptOutput {
pub fn ciphertext_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.ciphertext_blob.as_ref()
}
pub fn source_key_id(&self) -> ::std::option::Option<&str> {
self.source_key_id.as_deref()
}
pub fn key_id(&self) -> ::std::option::Option<&str> {
self.key_id.as_deref()
}
pub fn source_encryption_algorithm(&self) -> ::std::option::Option<&crate::types::EncryptionAlgorithmSpec> {
self.source_encryption_algorithm.as_ref()
}
pub fn destination_encryption_algorithm(&self) -> ::std::option::Option<&crate::types::EncryptionAlgorithmSpec> {
self.destination_encryption_algorithm.as_ref()
}
}
impl ::aws_types::request_id::RequestId for ReEncryptOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl ReEncryptOutput {
pub fn builder() -> crate::operation::re_encrypt::builders::ReEncryptOutputBuilder {
crate::operation::re_encrypt::builders::ReEncryptOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ReEncryptOutputBuilder {
pub(crate) ciphertext_blob: ::std::option::Option<::aws_smithy_types::Blob>,
pub(crate) source_key_id: ::std::option::Option<::std::string::String>,
pub(crate) key_id: ::std::option::Option<::std::string::String>,
pub(crate) source_encryption_algorithm: ::std::option::Option<crate::types::EncryptionAlgorithmSpec>,
pub(crate) destination_encryption_algorithm: ::std::option::Option<crate::types::EncryptionAlgorithmSpec>,
_request_id: Option<String>,
}
impl ReEncryptOutputBuilder {
pub fn ciphertext_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.ciphertext_blob = ::std::option::Option::Some(input);
self
}
pub fn set_ciphertext_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.ciphertext_blob = input;
self
}
pub fn get_ciphertext_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.ciphertext_blob
}
pub fn source_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_key_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_key_id = input;
self
}
pub fn get_source_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.source_key_id
}
pub fn key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.key_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.key_id = input;
self
}
pub fn get_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.key_id
}
pub fn source_encryption_algorithm(mut self, input: crate::types::EncryptionAlgorithmSpec) -> Self {
self.source_encryption_algorithm = ::std::option::Option::Some(input);
self
}
pub fn set_source_encryption_algorithm(mut self, input: ::std::option::Option<crate::types::EncryptionAlgorithmSpec>) -> Self {
self.source_encryption_algorithm = input;
self
}
pub fn get_source_encryption_algorithm(&self) -> &::std::option::Option<crate::types::EncryptionAlgorithmSpec> {
&self.source_encryption_algorithm
}
pub fn destination_encryption_algorithm(mut self, input: crate::types::EncryptionAlgorithmSpec) -> Self {
self.destination_encryption_algorithm = ::std::option::Option::Some(input);
self
}
pub fn set_destination_encryption_algorithm(mut self, input: ::std::option::Option<crate::types::EncryptionAlgorithmSpec>) -> Self {
self.destination_encryption_algorithm = input;
self
}
pub fn get_destination_encryption_algorithm(&self) -> &::std::option::Option<crate::types::EncryptionAlgorithmSpec> {
&self.destination_encryption_algorithm
}
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::re_encrypt::ReEncryptOutput {
crate::operation::re_encrypt::ReEncryptOutput {
ciphertext_blob: self.ciphertext_blob,
source_key_id: self.source_key_id,
key_id: self.key_id,
source_encryption_algorithm: self.source_encryption_algorithm,
destination_encryption_algorithm: self.destination_encryption_algorithm,
_request_id: self._request_id,
}
}
}