AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetDiscoveredSchemaRequest.h
1
6#pragma once
7#include <aws/schemas/Schemas_EXPORTS.h>
8#include <aws/schemas/SchemasRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/schemas/model/Type.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Schemas
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SCHEMAS_API GetDiscoveredSchemaRequest() = 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 "GetDiscoveredSchema"; }
33
34 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::Vector<Aws::String>& GetEvents() const { return m_events; }
44 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
45 template<typename EventsT = Aws::Vector<Aws::String>>
46 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
47 template<typename EventsT = Aws::Vector<Aws::String>>
48 GetDiscoveredSchemaRequest& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
49 template<typename EventsT = Aws::String>
50 GetDiscoveredSchemaRequest& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
52
54
57 inline Type GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
60 inline GetDiscoveredSchemaRequest& WithType(Type value) { SetType(value); return *this;}
62 private:
63
65 bool m_eventsHasBeenSet = false;
66
67 Type m_type{Type::NOT_SET};
68 bool m_typeHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Schemas
73} // 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