AWS SDK for C++  1.8.126
AWS SDK for C++
GetDiscoveredSchemaRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/schemas/model/Type.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Schemas
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
36 
42  inline const Aws::Vector<Aws::String>& GetEvents() const{ return m_events; }
43 
49  inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
50 
56  inline void SetEvents(const Aws::Vector<Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
57 
63  inline void SetEvents(Aws::Vector<Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
64 
70  inline GetDiscoveredSchemaRequest& WithEvents(const Aws::Vector<Aws::String>& value) { SetEvents(value); return *this;}
71 
77  inline GetDiscoveredSchemaRequest& WithEvents(Aws::Vector<Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
78 
84  inline GetDiscoveredSchemaRequest& AddEvents(const Aws::String& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
85 
91  inline GetDiscoveredSchemaRequest& AddEvents(Aws::String&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
92 
98  inline GetDiscoveredSchemaRequest& AddEvents(const char* value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
99 
100 
104  inline const Type& GetType() const{ return m_type; }
105 
109  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 
114  inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
115 
119  inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
120 
124  inline GetDiscoveredSchemaRequest& WithType(const Type& value) { SetType(value); return *this;}
125 
129  inline GetDiscoveredSchemaRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
130 
131  private:
132 
133  Aws::Vector<Aws::String> m_events;
134  bool m_eventsHasBeenSet;
135 
136  Type m_type;
137  bool m_typeHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace Schemas
142 } // namespace Aws
Aws::Schemas::Model::GetDiscoveredSchemaRequest::EventsHasBeenSet
bool EventsHasBeenSet() const
Definition: GetDiscoveredSchemaRequest.h:49
Aws::Schemas::SchemasRequest
Definition: SchemasRequest.h:17
SchemasRequest.h
Aws::Schemas::Model::GetDiscoveredSchemaRequest::SetType
void SetType(Type &&value)
Definition: GetDiscoveredSchemaRequest.h:119
Aws::Schemas::Model::GetDiscoveredSchemaRequest::SetEvents
void SetEvents(Aws::Vector< Aws::String > &&value)
Definition: GetDiscoveredSchemaRequest.h:63
Aws::Schemas::Model::GetDiscoveredSchemaRequest::GetType
const Type & GetType() const
Definition: GetDiscoveredSchemaRequest.h:104
Aws::Schemas::Model::GetDiscoveredSchemaRequest::SetType
void SetType(const Type &value)
Definition: GetDiscoveredSchemaRequest.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Schemas::Model::GetDiscoveredSchemaRequest::WithType
GetDiscoveredSchemaRequest & WithType(Type &&value)
Definition: GetDiscoveredSchemaRequest.h:129
AWSVector.h
Aws::Schemas::Model::GetDiscoveredSchemaRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Schemas::Model::GetDiscoveredSchemaRequest::SetEvents
void SetEvents(const Aws::Vector< Aws::String > &value)
Definition: GetDiscoveredSchemaRequest.h:56
Aws::Schemas::Model::GetDiscoveredSchemaRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: GetDiscoveredSchemaRequest.h:109
Schemas_EXPORTS.h
Aws::Schemas::Model::GetDiscoveredSchemaRequest::AddEvents
GetDiscoveredSchemaRequest & AddEvents(const Aws::String &value)
Definition: GetDiscoveredSchemaRequest.h:84
Aws::Schemas::Model::GetDiscoveredSchemaRequest::AddEvents
GetDiscoveredSchemaRequest & AddEvents(Aws::String &&value)
Definition: GetDiscoveredSchemaRequest.h:91
AWSString.h
Aws::Schemas::Model::GetDiscoveredSchemaRequest::WithEvents
GetDiscoveredSchemaRequest & WithEvents(Aws::Vector< Aws::String > &&value)
Definition: GetDiscoveredSchemaRequest.h:77
Aws::Schemas::Model::GetDiscoveredSchemaRequest
Definition: GetDiscoveredSchemaRequest.h:24
Aws::Schemas::Model::Type
Type
Definition: Type.h:17
Aws::Schemas::Model::GetDiscoveredSchemaRequest::WithType
GetDiscoveredSchemaRequest & WithType(const Type &value)
Definition: GetDiscoveredSchemaRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Type.h
Aws::Schemas::Model::GetDiscoveredSchemaRequest::AddEvents
GetDiscoveredSchemaRequest & AddEvents(const char *value)
Definition: GetDiscoveredSchemaRequest.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_SCHEMAS_API
#define AWS_SCHEMAS_API
Definition: Schemas_EXPORTS.h:28
Aws::Schemas::Model::GetDiscoveredSchemaRequest::WithEvents
GetDiscoveredSchemaRequest & WithEvents(const Aws::Vector< Aws::String > &value)
Definition: GetDiscoveredSchemaRequest.h:70
Aws::Schemas::Model::GetDiscoveredSchemaRequest::GetDiscoveredSchemaRequest
GetDiscoveredSchemaRequest()
Aws::Schemas::Model::GetDiscoveredSchemaRequest::GetEvents
const Aws::Vector< Aws::String > & GetEvents() const
Definition: GetDiscoveredSchemaRequest.h:42
Aws::Schemas::Model::GetDiscoveredSchemaRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDiscoveredSchemaRequest.h:32