AWS SDK for C++  1.9.125
AWS SDK for C++
EncryptionAtRestOptions.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ElasticsearchService
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline bool GetEnabled() const{ return m_enabled; }
44 
48  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 
53  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
54 
58  inline EncryptionAtRestOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
59 
60 
64  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
65 
69  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
70 
74  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
75 
79  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
80 
84  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
85 
89  inline EncryptionAtRestOptions& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
90 
94  inline EncryptionAtRestOptions& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
95 
99  inline EncryptionAtRestOptions& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
100 
101  private:
102 
103  bool m_enabled;
104  bool m_enabledHasBeenSet;
105 
106  Aws::String m_kmsKeyId;
107  bool m_kmsKeyIdHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace ElasticsearchService
112 } // namespace Aws
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::SetEnabled
void SetEnabled(bool value)
Definition: EncryptionAtRestOptions.h:53
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::WithKmsKeyId
EncryptionAtRestOptions & WithKmsKeyId(const char *value)
Definition: EncryptionAtRestOptions.h:99
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::WithEnabled
EncryptionAtRestOptions & WithEnabled(bool value)
Definition: EncryptionAtRestOptions.h:58
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::GetEnabled
bool GetEnabled() const
Definition: EncryptionAtRestOptions.h:43
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: EncryptionAtRestOptions.h:84
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::WithKmsKeyId
EncryptionAtRestOptions & WithKmsKeyId(Aws::String &&value)
Definition: EncryptionAtRestOptions.h:94
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::WithKmsKeyId
EncryptionAtRestOptions & WithKmsKeyId(const Aws::String &value)
Definition: EncryptionAtRestOptions.h:89
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: EncryptionAtRestOptions.h:74
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: EncryptionAtRestOptions.h:69
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::EncryptionAtRestOptions
EncryptionAtRestOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::EncryptionAtRestOptions
EncryptionAtRestOptions()
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: EncryptionAtRestOptions.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: EncryptionAtRestOptions.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: EncryptionAtRestOptions.h:48
Aws::ElasticsearchService::Model::EncryptionAtRestOptions
Definition: EncryptionAtRestOptions.h:32
Aws::ElasticsearchService::Model::EncryptionAtRestOptions::operator=
EncryptionAtRestOptions & operator=(Aws::Utils::Json::JsonView jsonValue)