AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetPlanRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/CatalogEntry.h>
11#include <aws/glue/model/Location.h>
12#include <aws/glue/model/Language.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/glue/model/MappingEntry.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Glue
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_GLUE_API GetPlanRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetPlan"; }
37
38 AWS_GLUE_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::Vector<MappingEntry>& GetMapping() const { return m_mapping; }
48 inline bool MappingHasBeenSet() const { return m_mappingHasBeenSet; }
49 template<typename MappingT = Aws::Vector<MappingEntry>>
50 void SetMapping(MappingT&& value) { m_mappingHasBeenSet = true; m_mapping = std::forward<MappingT>(value); }
51 template<typename MappingT = Aws::Vector<MappingEntry>>
52 GetPlanRequest& WithMapping(MappingT&& value) { SetMapping(std::forward<MappingT>(value)); return *this;}
53 template<typename MappingT = MappingEntry>
54 GetPlanRequest& AddMapping(MappingT&& value) { m_mappingHasBeenSet = true; m_mapping.emplace_back(std::forward<MappingT>(value)); return *this; }
56
58
61 inline const CatalogEntry& GetSource() const { return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 template<typename SourceT = CatalogEntry>
64 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
65 template<typename SourceT = CatalogEntry>
66 GetPlanRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
68
70
73 inline const Aws::Vector<CatalogEntry>& GetSinks() const { return m_sinks; }
74 inline bool SinksHasBeenSet() const { return m_sinksHasBeenSet; }
75 template<typename SinksT = Aws::Vector<CatalogEntry>>
76 void SetSinks(SinksT&& value) { m_sinksHasBeenSet = true; m_sinks = std::forward<SinksT>(value); }
77 template<typename SinksT = Aws::Vector<CatalogEntry>>
78 GetPlanRequest& WithSinks(SinksT&& value) { SetSinks(std::forward<SinksT>(value)); return *this;}
79 template<typename SinksT = CatalogEntry>
80 GetPlanRequest& AddSinks(SinksT&& value) { m_sinksHasBeenSet = true; m_sinks.emplace_back(std::forward<SinksT>(value)); return *this; }
82
84
87 inline const Location& GetLocation() const { return m_location; }
88 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
89 template<typename LocationT = Location>
90 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
91 template<typename LocationT = Location>
92 GetPlanRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
94
96
99 inline Language GetLanguage() const { return m_language; }
100 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
101 inline void SetLanguage(Language value) { m_languageHasBeenSet = true; m_language = value; }
102 inline GetPlanRequest& WithLanguage(Language value) { SetLanguage(value); return *this;}
104
106
115 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalPlanOptionsMap() const { return m_additionalPlanOptionsMap; }
116 inline bool AdditionalPlanOptionsMapHasBeenSet() const { return m_additionalPlanOptionsMapHasBeenSet; }
117 template<typename AdditionalPlanOptionsMapT = Aws::Map<Aws::String, Aws::String>>
118 void SetAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT&& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap = std::forward<AdditionalPlanOptionsMapT>(value); }
119 template<typename AdditionalPlanOptionsMapT = Aws::Map<Aws::String, Aws::String>>
120 GetPlanRequest& WithAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT&& value) { SetAdditionalPlanOptionsMap(std::forward<AdditionalPlanOptionsMapT>(value)); return *this;}
121 template<typename AdditionalPlanOptionsMapKeyT = Aws::String, typename AdditionalPlanOptionsMapValueT = Aws::String>
122 GetPlanRequest& AddAdditionalPlanOptionsMap(AdditionalPlanOptionsMapKeyT&& key, AdditionalPlanOptionsMapValueT&& value) {
123 m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(std::forward<AdditionalPlanOptionsMapKeyT>(key), std::forward<AdditionalPlanOptionsMapValueT>(value)); return *this;
124 }
126 private:
127
129 bool m_mappingHasBeenSet = false;
130
131 CatalogEntry m_source;
132 bool m_sourceHasBeenSet = false;
133
135 bool m_sinksHasBeenSet = false;
136
137 Location m_location;
138 bool m_locationHasBeenSet = false;
139
140 Language m_language{Language::NOT_SET};
141 bool m_languageHasBeenSet = false;
142
143 Aws::Map<Aws::String, Aws::String> m_additionalPlanOptionsMap;
144 bool m_additionalPlanOptionsMapHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Glue
149} // namespace Aws
GetPlanRequest & WithSinks(SinksT &&value)
GetPlanRequest & WithLocation(LocationT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSource(SourceT &&value)
GetPlanRequest & AddMapping(MappingT &&value)
const Aws::Vector< CatalogEntry > & GetSinks() const
const Aws::Map< Aws::String, Aws::String > & GetAdditionalPlanOptionsMap() const
const Aws::Vector< MappingEntry > & GetMapping() const
GetPlanRequest & WithLanguage(Language value)
AWS_GLUE_API GetPlanRequest()=default
const Location & GetLocation() const
GetPlanRequest & AddAdditionalPlanOptionsMap(AdditionalPlanOptionsMapKeyT &&key, AdditionalPlanOptionsMapValueT &&value)
GetPlanRequest & WithAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT &&value)
GetPlanRequest & WithMapping(MappingT &&value)
GetPlanRequest & AddSinks(SinksT &&value)
GetPlanRequest & WithSource(SourceT &&value)
virtual const char * GetServiceRequestName() const override
const CatalogEntry & GetSource() const
void SetAdditionalPlanOptionsMap(AdditionalPlanOptionsMapT &&value)
void SetMapping(MappingT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
void SetLocation(LocationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector