aws_esdk/deps/aws_cryptography_materialProviders/operation/create_required_encryption_context_cmm/
_create_required_encryption_context_cmm_output.rs

1// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6/// Outputs for creating an Required Encryption Context Cryptographic Materials Manager.
7pub struct CreateRequiredEncryptionContextCmmOutput {
8    /// The created Required Encryption Context Cryptographic Materials Manager.
9pub materials_manager: ::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef>,
10}
11impl CreateRequiredEncryptionContextCmmOutput {
12    /// The created Required Encryption Context Cryptographic Materials Manager.
13    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    /// Creates a new builder-style object to manufacture [`CreateRequiredEncryptionContextCmmOutput`](crate::operation::create_required_encryption_context_cmm::builders::CreateRequiredEncryptionContextCmmOutput).
19    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/// A builder for [`CreateRequiredEncryptionContextCmmOutput`](crate::operation::operation::CreateRequiredEncryptionContextCmmOutput).
25#[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    /// The created Required Encryption Context Cryptographic Materials Manager.
34    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    /// The created Required Encryption Context Cryptographic Materials Manager.
42    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    /// The created Required Encryption Context Cryptographic Materials Manager.
50    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    /// Consumes the builder and constructs a [`CreateRequiredEncryptionContextCmmOutput`](crate::operation::operation::CreateRequiredEncryptionContextCmmOutput).
54    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}