AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
SSESpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9#include <aws/dynamodb/model/SSEType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DynamoDB {
21namespace Model {
22
30 public:
31 AWS_DYNAMODB_API SSESpecification() = default;
32 AWS_DYNAMODB_API SSESpecification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) {
47 m_enabledHasBeenSet = true;
48 m_enabled = value;
49 }
50 inline SSESpecification& WithEnabled(bool value) {
51 SetEnabled(value);
52 return *this;
53 }
55
57
63 inline SSEType GetSSEType() const { return m_sSEType; }
64 inline bool SSETypeHasBeenSet() const { return m_sSETypeHasBeenSet; }
65 inline void SetSSEType(SSEType value) {
66 m_sSETypeHasBeenSet = true;
67 m_sSEType = value;
68 }
70 SetSSEType(value);
71 return *this;
72 }
74
76
82 inline const Aws::String& GetKMSMasterKeyId() const { return m_kMSMasterKeyId; }
83 inline bool KMSMasterKeyIdHasBeenSet() const { return m_kMSMasterKeyIdHasBeenSet; }
84 template <typename KMSMasterKeyIdT = Aws::String>
85 void SetKMSMasterKeyId(KMSMasterKeyIdT&& value) {
86 m_kMSMasterKeyIdHasBeenSet = true;
87 m_kMSMasterKeyId = std::forward<KMSMasterKeyIdT>(value);
88 }
89 template <typename KMSMasterKeyIdT = Aws::String>
90 SSESpecification& WithKMSMasterKeyId(KMSMasterKeyIdT&& value) {
91 SetKMSMasterKeyId(std::forward<KMSMasterKeyIdT>(value));
92 return *this;
93 }
95 private:
96 bool m_enabled{false};
97
98 SSEType m_sSEType{SSEType::NOT_SET};
99
100 Aws::String m_kMSMasterKeyId;
101 bool m_enabledHasBeenSet = false;
102 bool m_sSETypeHasBeenSet = false;
103 bool m_kMSMasterKeyIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace DynamoDB
108} // namespace Aws
SSESpecification & WithSSEType(SSEType value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API SSESpecification(Aws::Utils::Json::JsonView jsonValue)
SSESpecification & WithKMSMasterKeyId(KMSMasterKeyIdT &&value)
AWS_DYNAMODB_API SSESpecification()=default
AWS_DYNAMODB_API SSESpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
SSESpecification & WithEnabled(bool value)
void SetKMSMasterKeyId(KMSMasterKeyIdT &&value)
const Aws::String & GetKMSMasterKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue