AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
EncryptionConfiguration.h
1
6#pragma once
7#include <aws/credentialbroker-control/CredentialBrokerControl_EXPORTS.h>
8#include <aws/credentialbroker-control/model/CustomerManagedEncryption.h>
9#include <aws/credentialbroker-control/model/Unit.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CredentialBrokerControl {
21namespace Model {
22
31 public:
32 AWS_CREDENTIALBROKERCONTROL_API EncryptionConfiguration() = default;
33 AWS_CREDENTIALBROKERCONTROL_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CREDENTIALBROKERCONTROL_API EncryptionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CREDENTIALBROKERCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const CustomerManagedEncryption& GetCustomerManaged() const { return m_customerManaged; }
42 inline bool CustomerManagedHasBeenSet() const { return m_customerManagedHasBeenSet; }
43 template <typename CustomerManagedT = CustomerManagedEncryption>
44 void SetCustomerManaged(CustomerManagedT&& value) {
45 m_customerManagedHasBeenSet = true;
46 m_customerManaged = std::forward<CustomerManagedT>(value);
47 }
48 template <typename CustomerManagedT = CustomerManagedEncryption>
49 EncryptionConfiguration& WithCustomerManaged(CustomerManagedT&& value) {
50 SetCustomerManaged(std::forward<CustomerManagedT>(value));
51 return *this;
52 }
54
56
59 inline const Unit& GetServiceManaged() const { return m_serviceManaged; }
60 inline bool ServiceManagedHasBeenSet() const { return m_serviceManagedHasBeenSet; }
61 template <typename ServiceManagedT = Unit>
62 void SetServiceManaged(ServiceManagedT&& value) {
63 m_serviceManagedHasBeenSet = true;
64 m_serviceManaged = std::forward<ServiceManagedT>(value);
65 }
66 template <typename ServiceManagedT = Unit>
67 EncryptionConfiguration& WithServiceManaged(ServiceManagedT&& value) {
68 SetServiceManaged(std::forward<ServiceManagedT>(value));
69 return *this;
70 }
72 private:
73 CustomerManagedEncryption m_customerManaged;
74
75 Unit m_serviceManaged;
76 bool m_customerManagedHasBeenSet = false;
77 bool m_serviceManagedHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CredentialBrokerControl
82} // namespace Aws
EncryptionConfiguration & WithCustomerManaged(CustomerManagedT &&value)
AWS_CREDENTIALBROKERCONTROL_API EncryptionConfiguration()=default
EncryptionConfiguration & WithServiceManaged(ServiceManagedT &&value)
AWS_CREDENTIALBROKERCONTROL_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CREDENTIALBROKERCONTROL_API EncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CREDENTIALBROKERCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue