AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
EncryptionAtRestOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ElasticsearchService {
20namespace Model {
21
28 public:
29 AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions() = default;
30 AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue);
31 AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline bool GetEnabled() const { return m_enabled; }
39 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
40 inline void SetEnabled(bool value) {
41 m_enabledHasBeenSet = true;
42 m_enabled = value;
43 }
45 SetEnabled(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
55 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
56 template <typename KmsKeyIdT = Aws::String>
57 void SetKmsKeyId(KmsKeyIdT&& value) {
58 m_kmsKeyIdHasBeenSet = true;
59 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
60 }
61 template <typename KmsKeyIdT = Aws::String>
63 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
64 return *this;
65 }
67 private:
68 bool m_enabled{false};
69
70 Aws::String m_kmsKeyId;
71 bool m_enabledHasBeenSet = false;
72 bool m_kmsKeyIdHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ElasticsearchService
77} // namespace Aws
EncryptionAtRestOptions & WithKmsKeyId(KmsKeyIdT &&value)
AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions()=default
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_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