AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ExtractedParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/PropertyLocation.h>
10#include <aws/glue/model/ResponseExtractionMapping.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API ExtractedParameter() = default;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
49 ExtractedParameter& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
61 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
62 template <typename DefaultValueT = Aws::String>
63 void SetDefaultValue(DefaultValueT&& value) {
64 m_defaultValueHasBeenSet = true;
65 m_defaultValue = std::forward<DefaultValueT>(value);
66 }
67 template <typename DefaultValueT = Aws::String>
68 ExtractedParameter& WithDefaultValue(DefaultValueT&& value) {
69 SetDefaultValue(std::forward<DefaultValueT>(value));
70 return *this;
71 }
73
75
79 inline PropertyLocation GetPropertyLocation() const { return m_propertyLocation; }
80 inline bool PropertyLocationHasBeenSet() const { return m_propertyLocationHasBeenSet; }
82 m_propertyLocationHasBeenSet = true;
83 m_propertyLocation = value;
84 }
87 return *this;
88 }
90
92
96 inline const ResponseExtractionMapping& GetValue() const { return m_value; }
97 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
98 template <typename ValueT = ResponseExtractionMapping>
99 void SetValue(ValueT&& value) {
100 m_valueHasBeenSet = true;
101 m_value = std::forward<ValueT>(value);
102 }
103 template <typename ValueT = ResponseExtractionMapping>
104 ExtractedParameter& WithValue(ValueT&& value) {
105 SetValue(std::forward<ValueT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_key;
111
112 Aws::String m_defaultValue;
113
115
116 ResponseExtractionMapping m_value;
117 bool m_keyHasBeenSet = false;
118 bool m_defaultValueHasBeenSet = false;
119 bool m_propertyLocationHasBeenSet = false;
120 bool m_valueHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Glue
125} // namespace Aws
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
ExtractedParameter & WithDefaultValue(DefaultValueT &&value)
void SetDefaultValue(DefaultValueT &&value)
ExtractedParameter & WithKey(KeyT &&value)
void SetPropertyLocation(PropertyLocation value)
ExtractedParameter & WithValue(ValueT &&value)
AWS_GLUE_API ExtractedParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API ExtractedParameter(Aws::Utils::Json::JsonView jsonValue)
PropertyLocation GetPropertyLocation() const
const Aws::String & GetDefaultValue() const
const Aws::String & GetKey() const
ExtractedParameter & WithPropertyLocation(PropertyLocation value)
const ResponseExtractionMapping & GetValue() const
AWS_GLUE_API ExtractedParameter()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue