AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCampaigns
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CONNECTCAMPAIGNS_API EncryptionConfig() = default;
39 AWS_CONNECTCAMPAIGNS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCAMPAIGNS_API EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline EncryptionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
54 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
55 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
56 inline void SetEncryptionType(EncryptionType value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
59
61
62 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
63 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
64 template<typename KeyArnT = Aws::String>
65 void SetKeyArn(KeyArnT&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::forward<KeyArnT>(value); }
66 template<typename KeyArnT = Aws::String>
67 EncryptionConfig& WithKeyArn(KeyArnT&& value) { SetKeyArn(std::forward<KeyArnT>(value)); return *this;}
69 private:
70
71 bool m_enabled{false};
72 bool m_enabledHasBeenSet = false;
73
75 bool m_encryptionTypeHasBeenSet = false;
76
77 Aws::String m_keyArn;
78 bool m_keyArnHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ConnectCampaigns
83} // 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