AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
57 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
58 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
59 inline EncryptionAtRestOptions& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
60 inline EncryptionAtRestOptions& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
61 inline EncryptionAtRestOptions& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
63 private:
64
65 bool m_enabled;
66 bool m_enabledHasBeenSet = false;
67
68 Aws::String m_kmsKeyId;
69 bool m_kmsKeyIdHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ElasticsearchService
74} // namespace Aws
EncryptionAtRestOptions & WithKmsKeyId(const char *value)
EncryptionAtRestOptions & WithKmsKeyId(const Aws::String &value)
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)
EncryptionAtRestOptions & WithKmsKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue