AWS SDK for C++  1.9.156
AWS SDK for C++
GetTypeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace AppSync
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "GetType"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetApiId() const{ return m_apiId; }
46 
50  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
51 
55  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
56 
60  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
61 
65  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
66 
70  inline GetTypeRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
71 
75  inline GetTypeRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
76 
80  inline GetTypeRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
81 
82 
86  inline const Aws::String& GetTypeName() const{ return m_typeName; }
87 
91  inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
92 
96  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
97 
101  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
102 
106  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
107 
111  inline GetTypeRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
112 
116  inline GetTypeRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
117 
121  inline GetTypeRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
122 
123 
127  inline const TypeDefinitionFormat& GetFormat() const{ return m_format; }
128 
132  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
133 
137  inline void SetFormat(const TypeDefinitionFormat& value) { m_formatHasBeenSet = true; m_format = value; }
138 
142  inline void SetFormat(TypeDefinitionFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
143 
147  inline GetTypeRequest& WithFormat(const TypeDefinitionFormat& value) { SetFormat(value); return *this;}
148 
152  inline GetTypeRequest& WithFormat(TypeDefinitionFormat&& value) { SetFormat(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_apiId;
157  bool m_apiIdHasBeenSet;
158 
159  Aws::String m_typeName;
160  bool m_typeNameHasBeenSet;
161 
162  TypeDefinitionFormat m_format;
163  bool m_formatHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace AppSync
168 } // namespace Aws
Aws::AppSync::Model::GetTypeRequest::SetTypeName
void SetTypeName(const char *value)
Definition: GetTypeRequest.h:106
Aws::AppSync::Model::GetTypeRequest::GetApiId
const Aws::String & GetApiId() const
Definition: GetTypeRequest.h:45
Aws::AppSync::Model::GetTypeRequest::WithFormat
GetTypeRequest & WithFormat(const TypeDefinitionFormat &value)
Definition: GetTypeRequest.h:147
Aws::AppSync::Model::GetTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTypeRequest.h:35
Aws::Http::URI
Definition: URI.h:32
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::GetTypeRequest
Definition: GetTypeRequest.h:27
Aws::AppSync::Model::GetTypeRequest::SetFormat
void SetFormat(TypeDefinitionFormat &&value)
Definition: GetTypeRequest.h:142
AppSync_EXPORTS.h
Aws::AppSync::Model::GetTypeRequest::SetTypeName
void SetTypeName(const Aws::String &value)
Definition: GetTypeRequest.h:96
Aws::AppSync::Model::GetTypeRequest::WithApiId
GetTypeRequest & WithApiId(const char *value)
Definition: GetTypeRequest.h:80
Aws::AppSync::Model::GetTypeRequest::SerializePayload
Aws::String SerializePayload() const override
TypeDefinitionFormat.h
Aws::AppSync::Model::GetTypeRequest::GetFormat
const TypeDefinitionFormat & GetFormat() const
Definition: GetTypeRequest.h:127
Aws::AppSync::Model::GetTypeRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: GetTypeRequest.h:55
Aws::AppSync::Model::GetTypeRequest::WithFormat
GetTypeRequest & WithFormat(TypeDefinitionFormat &&value)
Definition: GetTypeRequest.h:152
AWSString.h
Aws::AppSync::Model::GetTypeRequest::WithApiId
GetTypeRequest & WithApiId(const Aws::String &value)
Definition: GetTypeRequest.h:70
Aws::AppSync::Model::GetTypeRequest::WithTypeName
GetTypeRequest & WithTypeName(const char *value)
Definition: GetTypeRequest.h:121
Aws::AppSync::Model::TypeDefinitionFormat
TypeDefinitionFormat
Definition: TypeDefinitionFormat.h:17
Aws::AppSync::Model::GetTypeRequest::WithTypeName
GetTypeRequest & WithTypeName(const Aws::String &value)
Definition: GetTypeRequest.h:111
Aws::AppSync::Model::GetTypeRequest::WithApiId
GetTypeRequest & WithApiId(Aws::String &&value)
Definition: GetTypeRequest.h:75
Aws::AppSync::Model::GetTypeRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::GetTypeRequest::SetApiId
void SetApiId(const char *value)
Definition: GetTypeRequest.h:65
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::GetTypeRequest::TypeNameHasBeenSet
bool TypeNameHasBeenSet() const
Definition: GetTypeRequest.h:91
Aws::AppSync::Model::GetTypeRequest::GetTypeRequest
GetTypeRequest()
Aws::AppSync::Model::GetTypeRequest::SetTypeName
void SetTypeName(Aws::String &&value)
Definition: GetTypeRequest.h:101
Aws::AppSync::Model::GetTypeRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: GetTypeRequest.h:50
Aws::AppSync::Model::GetTypeRequest::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: GetTypeRequest.h:132
Aws::AppSync::Model::GetTypeRequest::SetFormat
void SetFormat(const TypeDefinitionFormat &value)
Definition: GetTypeRequest.h:137
Aws::AppSync::Model::GetTypeRequest::WithTypeName
GetTypeRequest & WithTypeName(Aws::String &&value)
Definition: GetTypeRequest.h:116
Aws::AppSync::Model::GetTypeRequest::GetTypeName
const Aws::String & GetTypeName() const
Definition: GetTypeRequest.h:86
Aws::AppSync::Model::GetTypeRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: GetTypeRequest.h:60