AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
EncryptionConfig.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/connectcampaigns/model/EncryptionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaigns {
21namespace Model {
22
32 public:
33 AWS_CONNECTCAMPAIGNS_API EncryptionConfig() = default;
34 AWS_CONNECTCAMPAIGNS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCAMPAIGNS_API EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
46 inline EncryptionConfig& WithEnabled(bool value) {
47 SetEnabled(value);
48 return *this;
49 }
51
53
54 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
55 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
56 inline void SetEncryptionType(EncryptionType value) {
57 m_encryptionTypeHasBeenSet = true;
58 m_encryptionType = value;
59 }
61 SetEncryptionType(value);
62 return *this;
63 }
65
67
68 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
69 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
70 template <typename KeyArnT = Aws::String>
71 void SetKeyArn(KeyArnT&& value) {
72 m_keyArnHasBeenSet = true;
73 m_keyArn = std::forward<KeyArnT>(value);
74 }
75 template <typename KeyArnT = Aws::String>
76 EncryptionConfig& WithKeyArn(KeyArnT&& value) {
77 SetKeyArn(std::forward<KeyArnT>(value));
78 return *this;
79 }
81 private:
82 bool m_enabled{false};
83
85
86 Aws::String m_keyArn;
87 bool m_enabledHasBeenSet = false;
88 bool m_encryptionTypeHasBeenSet = false;
89 bool m_keyArnHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ConnectCampaigns
94} // namespace Aws
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionConfig & WithKeyArn(KeyArnT &&value)
AWS_CONNECTCAMPAIGNS_API EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
EncryptionConfig & WithEncryptionType(EncryptionType value)
AWS_CONNECTCAMPAIGNS_API EncryptionConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue