aws_esdk/deps/aws_cryptography_materialProviders/operation/create_required_encryption_context_cmm/
_create_required_encryption_context_cmm_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct CreateRequiredEncryptionContextCmmOutput {
8 pub materials_manager: ::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>,
10}
11impl CreateRequiredEncryptionContextCmmOutput {
12 pub fn materials_manager(&self) -> &::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>{
14 &self.materials_manager
15 }
16}
17impl CreateRequiredEncryptionContextCmmOutput {
18 pub fn builder() -> crate::deps::aws_cryptography_materialProviders::operation::create_required_encryption_context_cmm::builders::CreateRequiredEncryptionContextCmmOutputBuilder{
20 crate::deps::aws_cryptography_materialProviders::operation::create_required_encryption_context_cmm::builders::CreateRequiredEncryptionContextCmmOutputBuilder::default()
21 }
22}
23
24#[non_exhaustive]
26#[derive(
27 ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
28)]
29pub struct CreateRequiredEncryptionContextCmmOutputBuilder {
30 pub(crate) materials_manager: ::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>,
31}
32impl CreateRequiredEncryptionContextCmmOutputBuilder {
33 pub fn materials_manager(
35 mut self,
36 input: impl ::std::convert::Into<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>,
37 ) -> Self {
38 self.materials_manager = ::std::option::Option::Some(input.into());
39 self
40 }
41 pub fn set_materials_manager(
43 mut self,
44 input: ::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>,
45 ) -> Self {
46 self.materials_manager = input;
47 self
48 }
49 pub fn get_materials_manager(&self) -> &::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>{
51 &self.materials_manager
52 }
53 pub fn build(
55 self,
56 ) -> ::std::result::Result<
57 crate::deps::aws_cryptography_materialProviders::operation::create_required_encryption_context_cmm::CreateRequiredEncryptionContextCmmOutput,
58 ::aws_smithy_types::error::operation::BuildError,
59 >{
60 ::std::result::Result::Ok(crate::deps::aws_cryptography_materialProviders::operation::create_required_encryption_context_cmm::CreateRequiredEncryptionContextCmmOutput {
61 materials_manager: self.materials_manager,
62 })
63 }
64}