AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
IcebergEncryptedKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
32 public:
33 AWS_GLUE_API IcebergEncryptedKey() = default;
37
39
44 inline const Aws::String& GetKeyId() const { return m_keyId; }
45 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
46 template <typename KeyIdT = Aws::String>
47 void SetKeyId(KeyIdT&& value) {
48 m_keyIdHasBeenSet = true;
49 m_keyId = std::forward<KeyIdT>(value);
50 }
51 template <typename KeyIdT = Aws::String>
52 IcebergEncryptedKey& WithKeyId(KeyIdT&& value) {
53 SetKeyId(std::forward<KeyIdT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetEncryptedKeyMetadata() const { return m_encryptedKeyMetadata; }
65 inline bool EncryptedKeyMetadataHasBeenSet() const { return m_encryptedKeyMetadataHasBeenSet; }
66 template <typename EncryptedKeyMetadataT = Aws::String>
67 void SetEncryptedKeyMetadata(EncryptedKeyMetadataT&& value) {
68 m_encryptedKeyMetadataHasBeenSet = true;
69 m_encryptedKeyMetadata = std::forward<EncryptedKeyMetadataT>(value);
70 }
71 template <typename EncryptedKeyMetadataT = Aws::String>
72 IcebergEncryptedKey& WithEncryptedKeyMetadata(EncryptedKeyMetadataT&& value) {
73 SetEncryptedKeyMetadata(std::forward<EncryptedKeyMetadataT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetEncryptedById() const { return m_encryptedById; }
85 inline bool EncryptedByIdHasBeenSet() const { return m_encryptedByIdHasBeenSet; }
86 template <typename EncryptedByIdT = Aws::String>
87 void SetEncryptedById(EncryptedByIdT&& value) {
88 m_encryptedByIdHasBeenSet = true;
89 m_encryptedById = std::forward<EncryptedByIdT>(value);
90 }
91 template <typename EncryptedByIdT = Aws::String>
92 IcebergEncryptedKey& WithEncryptedById(EncryptedByIdT&& value) {
93 SetEncryptedById(std::forward<EncryptedByIdT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
105 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
106 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
107 void SetProperties(PropertiesT&& value) {
108 m_propertiesHasBeenSet = true;
109 m_properties = std::forward<PropertiesT>(value);
110 }
111 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
112 IcebergEncryptedKey& WithProperties(PropertiesT&& value) {
113 SetProperties(std::forward<PropertiesT>(value));
114 return *this;
115 }
116 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
117 IcebergEncryptedKey& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
118 m_propertiesHasBeenSet = true;
119 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_keyId;
125
126 Aws::String m_encryptedKeyMetadata;
127
128 Aws::String m_encryptedById;
129
131 bool m_keyIdHasBeenSet = false;
132 bool m_encryptedKeyMetadataHasBeenSet = false;
133 bool m_encryptedByIdHasBeenSet = false;
134 bool m_propertiesHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Glue
139} // namespace Aws
IcebergEncryptedKey & WithProperties(PropertiesT &&value)
const Aws::String & GetEncryptedById() const
IcebergEncryptedKey & WithEncryptedById(EncryptedByIdT &&value)
const Aws::String & GetEncryptedKeyMetadata() const
IcebergEncryptedKey & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
void SetEncryptedKeyMetadata(EncryptedKeyMetadataT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergEncryptedKey & WithEncryptedKeyMetadata(EncryptedKeyMetadataT &&value)
AWS_GLUE_API IcebergEncryptedKey(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
void SetEncryptedById(EncryptedByIdT &&value)
AWS_GLUE_API IcebergEncryptedKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API IcebergEncryptedKey()=default
IcebergEncryptedKey & WithKeyId(KeyIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue