AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
MetadataKeyValuePair.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Glue {
20namespace Model {
21
29 public:
30 AWS_GLUE_API MetadataKeyValuePair() = default;
34
36
39 inline const Aws::String& GetMetadataKey() const { return m_metadataKey; }
40 inline bool MetadataKeyHasBeenSet() const { return m_metadataKeyHasBeenSet; }
41 template <typename MetadataKeyT = Aws::String>
42 void SetMetadataKey(MetadataKeyT&& value) {
43 m_metadataKeyHasBeenSet = true;
44 m_metadataKey = std::forward<MetadataKeyT>(value);
45 }
46 template <typename MetadataKeyT = Aws::String>
47 MetadataKeyValuePair& WithMetadataKey(MetadataKeyT&& value) {
48 SetMetadataKey(std::forward<MetadataKeyT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMetadataValue() const { return m_metadataValue; }
58 inline bool MetadataValueHasBeenSet() const { return m_metadataValueHasBeenSet; }
59 template <typename MetadataValueT = Aws::String>
60 void SetMetadataValue(MetadataValueT&& value) {
61 m_metadataValueHasBeenSet = true;
62 m_metadataValue = std::forward<MetadataValueT>(value);
63 }
64 template <typename MetadataValueT = Aws::String>
65 MetadataKeyValuePair& WithMetadataValue(MetadataValueT&& value) {
66 SetMetadataValue(std::forward<MetadataValueT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_metadataKey;
72 bool m_metadataKeyHasBeenSet = false;
73
74 Aws::String m_metadataValue;
75 bool m_metadataValueHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Glue
80} // namespace Aws
AWS_GLUE_API MetadataKeyValuePair()=default
void SetMetadataValue(MetadataValueT &&value)
const Aws::String & GetMetadataKey() const
const Aws::String & GetMetadataValue() const
MetadataKeyValuePair & WithMetadataValue(MetadataValueT &&value)
AWS_GLUE_API MetadataKeyValuePair(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
MetadataKeyValuePair & WithMetadataKey(MetadataKeyT &&value)
AWS_GLUE_API MetadataKeyValuePair & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue