AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetDiscoveredSchemaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/schemas/SchemasRequest.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11#include <aws/schemas/model/Type.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Schemas {
17namespace Model {
18
22 public:
23 AWS_SCHEMAS_API GetDiscoveredSchemaRequest() = 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 "GetDiscoveredSchema"; }
30
31 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::Vector<Aws::String>& GetEvents() const { return m_events; }
40 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
41 template <typename EventsT = Aws::Vector<Aws::String>>
42 void SetEvents(EventsT&& value) {
43 m_eventsHasBeenSet = true;
44 m_events = std::forward<EventsT>(value);
45 }
46 template <typename EventsT = Aws::Vector<Aws::String>>
48 SetEvents(std::forward<EventsT>(value));
49 return *this;
50 }
51 template <typename EventsT = Aws::String>
53 m_eventsHasBeenSet = true;
54 m_events.emplace_back(std::forward<EventsT>(value));
55 return *this;
56 }
58
60
63 inline Type GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(Type value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74 private:
76
77 Type m_type{Type::NOT_SET};
78 bool m_eventsHasBeenSet = false;
79 bool m_typeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Schemas
84} // namespace Aws
AWS_SCHEMAS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetEvents() const
AWS_SCHEMAS_API GetDiscoveredSchemaRequest()=default
GetDiscoveredSchemaRequest & AddEvents(EventsT &&value)
GetDiscoveredSchemaRequest & WithType(Type value)
GetDiscoveredSchemaRequest & WithEvents(EventsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector