AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
EncryptionAtRestOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/EncryptionMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
33 public:
34 AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions() = default;
35 AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
50 SetEnabled(value);
51 return *this;
52 }
54
56
60 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
61 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
62 template <typename KmsKeyIdT = Aws::String>
63 void SetKmsKeyId(KmsKeyIdT&& value) {
64 m_kmsKeyIdHasBeenSet = true;
65 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
66 }
67 template <typename KmsKeyIdT = Aws::String>
69 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
70 return *this;
71 }
73
75
83 inline EncryptionMode GetEncryptionMode() const { return m_encryptionMode; }
84 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
85 inline void SetEncryptionMode(EncryptionMode value) {
86 m_encryptionModeHasBeenSet = true;
87 m_encryptionMode = value;
88 }
90 SetEncryptionMode(value);
91 return *this;
92 }
94 private:
95 bool m_enabled{false};
96
97 Aws::String m_kmsKeyId;
98
100 bool m_enabledHasBeenSet = false;
101 bool m_kmsKeyIdHasBeenSet = false;
102 bool m_encryptionModeHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace OpenSearchService
107} // namespace Aws
EncryptionAtRestOptions & WithEncryptionMode(EncryptionMode value)
EncryptionAtRestOptions & WithKmsKeyId(KmsKeyIdT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions()=default
AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue