AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PackageEncryptionOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
28 public:
29 AWS_OPENSEARCHSERVICE_API PackageEncryptionOptions() = default;
30 AWS_OPENSEARCHSERVICE_API PackageEncryptionOptions(Aws::Utils::Json::JsonView jsonValue);
31 AWS_OPENSEARCHSERVICE_API PackageEncryptionOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
39 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
40 template <typename KmsKeyIdentifierT = Aws::String>
41 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
42 m_kmsKeyIdentifierHasBeenSet = true;
43 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
44 }
45 template <typename KmsKeyIdentifierT = Aws::String>
46 PackageEncryptionOptions& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
47 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline bool GetEncryptionEnabled() const { return m_encryptionEnabled; }
57 inline bool EncryptionEnabledHasBeenSet() const { return m_encryptionEnabledHasBeenSet; }
58 inline void SetEncryptionEnabled(bool value) {
59 m_encryptionEnabledHasBeenSet = true;
60 m_encryptionEnabled = value;
61 }
64 return *this;
65 }
67 private:
68 Aws::String m_kmsKeyIdentifier;
69
70 bool m_encryptionEnabled{false};
71 bool m_kmsKeyIdentifierHasBeenSet = false;
72 bool m_encryptionEnabledHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace OpenSearchService
77} // namespace Aws
AWS_OPENSEARCHSERVICE_API PackageEncryptionOptions()=default
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API PackageEncryptionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageEncryptionOptions & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_OPENSEARCHSERVICE_API PackageEncryptionOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue