AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EncryptionAtRestOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElasticsearchService
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions() = default;
35 AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API EncryptionAtRestOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
47 inline EncryptionAtRestOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
58 template<typename KmsKeyIdT = Aws::String>
59 EncryptionAtRestOptions& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
61 private:
62
63 bool m_enabled{false};
64 bool m_enabledHasBeenSet = false;
65
66 Aws::String m_kmsKeyId;
67 bool m_kmsKeyIdHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace ElasticsearchService
72} // 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