AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
55 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
56 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
57 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
58 inline EncryptionConfig& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
59 inline EncryptionConfig& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
61
63
64 inline const Aws::String& GetKeyArn() const{ return m_keyArn; }
65 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
66 inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; }
67 inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); }
68 inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); }
69 inline EncryptionConfig& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;}
70 inline EncryptionConfig& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;}
71 inline EncryptionConfig& WithKeyArn(const char* value) { SetKeyArn(value); return *this;}
73 private:
74
75 bool m_enabled;
76 bool m_enabledHasBeenSet = false;
77
78 EncryptionType m_encryptionType;
79 bool m_encryptionTypeHasBeenSet = false;
80
81 Aws::String m_keyArn;
82 bool m_keyArnHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ConnectCampaigns
87} // namespace Aws
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionConfig & WithKeyArn(const char *value)
AWS_CONNECTCAMPAIGNS_API EncryptionConfig()
void SetEncryptionType(const EncryptionType &value)
const EncryptionType & GetEncryptionType() const
AWS_CONNECTCAMPAIGNS_API EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
EncryptionConfig & WithKeyArn(Aws::String &&value)
EncryptionConfig & WithEncryptionType(EncryptionType &&value)
EncryptionConfig & WithKeyArn(const Aws::String &value)
EncryptionConfig & WithEncryptionType(const EncryptionType &value)
AWS_CONNECTCAMPAIGNS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue