AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
GetMappingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/CatalogEntry.h>
11#include <aws/glue/model/Location.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API GetMappingRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetMapping"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const CatalogEntry& GetSource() const { return m_source; }
40 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
41 template <typename SourceT = CatalogEntry>
42 void SetSource(SourceT&& value) {
43 m_sourceHasBeenSet = true;
44 m_source = std::forward<SourceT>(value);
45 }
46 template <typename SourceT = CatalogEntry>
47 GetMappingRequest& WithSource(SourceT&& value) {
48 SetSource(std::forward<SourceT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<CatalogEntry>& GetSinks() const { return m_sinks; }
58 inline bool SinksHasBeenSet() const { return m_sinksHasBeenSet; }
59 template <typename SinksT = Aws::Vector<CatalogEntry>>
60 void SetSinks(SinksT&& value) {
61 m_sinksHasBeenSet = true;
62 m_sinks = std::forward<SinksT>(value);
63 }
64 template <typename SinksT = Aws::Vector<CatalogEntry>>
65 GetMappingRequest& WithSinks(SinksT&& value) {
66 SetSinks(std::forward<SinksT>(value));
67 return *this;
68 }
69 template <typename SinksT = CatalogEntry>
70 GetMappingRequest& AddSinks(SinksT&& value) {
71 m_sinksHasBeenSet = true;
72 m_sinks.emplace_back(std::forward<SinksT>(value));
73 return *this;
74 }
76
78
81 inline const Location& GetLocation() const { return m_location; }
82 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
83 template <typename LocationT = Location>
84 void SetLocation(LocationT&& value) {
85 m_locationHasBeenSet = true;
86 m_location = std::forward<LocationT>(value);
87 }
88 template <typename LocationT = Location>
89 GetMappingRequest& WithLocation(LocationT&& value) {
90 SetLocation(std::forward<LocationT>(value));
91 return *this;
92 }
94 private:
95 CatalogEntry m_source;
96 bool m_sourceHasBeenSet = false;
97
99 bool m_sinksHasBeenSet = false;
100
101 Location m_location;
102 bool m_locationHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Glue
107} // namespace Aws
const Aws::Vector< CatalogEntry > & GetSinks() const
const Location & GetLocation() const
GetMappingRequest & AddSinks(SinksT &&value)
GetMappingRequest & WithLocation(LocationT &&value)
const CatalogEntry & GetSource() const
GetMappingRequest & WithSinks(SinksT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLUE_API GetMappingRequest()=default
GetMappingRequest & WithSource(SourceT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector