AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetMappingRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/model/CatalogEntry.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/Location.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API GetMappingRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetMapping"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const CatalogEntry& GetSource() const { return m_source; }
44 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
45 template<typename SourceT = CatalogEntry>
46 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
47 template<typename SourceT = CatalogEntry>
48 GetMappingRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
50
52
55 inline const Aws::Vector<CatalogEntry>& GetSinks() const { return m_sinks; }
56 inline bool SinksHasBeenSet() const { return m_sinksHasBeenSet; }
57 template<typename SinksT = Aws::Vector<CatalogEntry>>
58 void SetSinks(SinksT&& value) { m_sinksHasBeenSet = true; m_sinks = std::forward<SinksT>(value); }
59 template<typename SinksT = Aws::Vector<CatalogEntry>>
60 GetMappingRequest& WithSinks(SinksT&& value) { SetSinks(std::forward<SinksT>(value)); return *this;}
61 template<typename SinksT = CatalogEntry>
62 GetMappingRequest& AddSinks(SinksT&& value) { m_sinksHasBeenSet = true; m_sinks.emplace_back(std::forward<SinksT>(value)); return *this; }
64
66
69 inline const Location& GetLocation() const { return m_location; }
70 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
71 template<typename LocationT = Location>
72 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
73 template<typename LocationT = Location>
74 GetMappingRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
76 private:
77
78 CatalogEntry m_source;
79 bool m_sourceHasBeenSet = false;
80
82 bool m_sinksHasBeenSet = false;
83
84 Location m_location;
85 bool m_locationHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Glue
90} // 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