AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
EncryptionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchServerless {
20namespace Model {
21
28 public:
29 AWS_OPENSEARCHSERVERLESS_API EncryptionConfig() = default;
30 AWS_OPENSEARCHSERVERLESS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
31 AWS_OPENSEARCHSERVERLESS_API EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline bool GetAWSOwnedKey() const { return m_aWSOwnedKey; }
39 inline bool AWSOwnedKeyHasBeenSet() const { return m_aWSOwnedKeyHasBeenSet; }
40 inline void SetAWSOwnedKey(bool value) {
41 m_aWSOwnedKeyHasBeenSet = true;
42 m_aWSOwnedKey = value;
43 }
44 inline EncryptionConfig& WithAWSOwnedKey(bool value) {
45 SetAWSOwnedKey(value);
46 return *this;
47 }
49
51
55 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
56 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
57 template <typename KmsKeyArnT = Aws::String>
58 void SetKmsKeyArn(KmsKeyArnT&& value) {
59 m_kmsKeyArnHasBeenSet = true;
60 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
61 }
62 template <typename KmsKeyArnT = Aws::String>
63 EncryptionConfig& WithKmsKeyArn(KmsKeyArnT&& value) {
64 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
65 return *this;
66 }
68 private:
69 bool m_aWSOwnedKey{false};
70
71 Aws::String m_kmsKeyArn;
72 bool m_aWSOwnedKeyHasBeenSet = false;
73 bool m_kmsKeyArnHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace OpenSearchServerless
78} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
EncryptionConfig & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_OPENSEARCHSERVERLESS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API EncryptionConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue