AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
32 public:
33 AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions() = default;
34 AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API EncryptionAtRestOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
49 SetEnabled(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
60 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
61 template <typename KmsKeyIdT = Aws::String>
62 void SetKmsKeyId(KmsKeyIdT&& value) {
63 m_kmsKeyIdHasBeenSet = true;
64 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
65 }
66 template <typename KmsKeyIdT = Aws::String>
68 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
69 return *this;
70 }
72 private:
73 bool m_enabled{false};
74
75 Aws::String m_kmsKeyId;
76 bool m_enabledHasBeenSet = false;
77 bool m_kmsKeyIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace OpenSearchService
82} // namespace Aws
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