AWS SDK for C++  1.9.159
AWS SDK for C++
UpdateTypeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AppSync
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateType"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetApiId() const{ return m_apiId; }
40 
44  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
45 
49  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
50 
54  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
55 
59  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
60 
64  inline UpdateTypeRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
65 
69  inline UpdateTypeRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
70 
74  inline UpdateTypeRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
75 
76 
80  inline const Aws::String& GetTypeName() const{ return m_typeName; }
81 
85  inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
86 
90  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
91 
95  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
96 
100  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
101 
105  inline UpdateTypeRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
106 
110  inline UpdateTypeRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
111 
115  inline UpdateTypeRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
116 
117 
121  inline const Aws::String& GetDefinition() const{ return m_definition; }
122 
126  inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
127 
131  inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
132 
136  inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
137 
141  inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
142 
146  inline UpdateTypeRequest& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
147 
151  inline UpdateTypeRequest& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
152 
156  inline UpdateTypeRequest& WithDefinition(const char* value) { SetDefinition(value); return *this;}
157 
158 
162  inline const TypeDefinitionFormat& GetFormat() const{ return m_format; }
163 
167  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
168 
172  inline void SetFormat(const TypeDefinitionFormat& value) { m_formatHasBeenSet = true; m_format = value; }
173 
177  inline void SetFormat(TypeDefinitionFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
178 
182  inline UpdateTypeRequest& WithFormat(const TypeDefinitionFormat& value) { SetFormat(value); return *this;}
183 
187  inline UpdateTypeRequest& WithFormat(TypeDefinitionFormat&& value) { SetFormat(std::move(value)); return *this;}
188 
189  private:
190 
191  Aws::String m_apiId;
192  bool m_apiIdHasBeenSet;
193 
194  Aws::String m_typeName;
195  bool m_typeNameHasBeenSet;
196 
197  Aws::String m_definition;
198  bool m_definitionHasBeenSet;
199 
200  TypeDefinitionFormat m_format;
201  bool m_formatHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace AppSync
206 } // namespace Aws
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::UpdateTypeRequest::WithDefinition
UpdateTypeRequest & WithDefinition(const Aws::String &value)
Definition: UpdateTypeRequest.h:146
Aws::AppSync::Model::UpdateTypeRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: UpdateTypeRequest.h:49
Aws::AppSync::Model::UpdateTypeRequest::WithDefinition
UpdateTypeRequest & WithDefinition(const char *value)
Definition: UpdateTypeRequest.h:156
Aws::AppSync::Model::UpdateTypeRequest::WithDefinition
UpdateTypeRequest & WithDefinition(Aws::String &&value)
Definition: UpdateTypeRequest.h:151
Aws::AppSync::Model::UpdateTypeRequest
Definition: UpdateTypeRequest.h:23
Aws::AppSync::Model::UpdateTypeRequest::WithTypeName
UpdateTypeRequest & WithTypeName(const char *value)
Definition: UpdateTypeRequest.h:115
Aws::AppSync::Model::UpdateTypeRequest::GetDefinition
const Aws::String & GetDefinition() const
Definition: UpdateTypeRequest.h:121
Aws::AppSync::Model::UpdateTypeRequest::SetDefinition
void SetDefinition(Aws::String &&value)
Definition: UpdateTypeRequest.h:136
Aws::AppSync::Model::UpdateTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::UpdateTypeRequest::SetApiId
void SetApiId(const char *value)
Definition: UpdateTypeRequest.h:59
Aws::AppSync::Model::UpdateTypeRequest::WithFormat
UpdateTypeRequest & WithFormat(const TypeDefinitionFormat &value)
Definition: UpdateTypeRequest.h:182
Aws::AppSync::Model::UpdateTypeRequest::SetDefinition
void SetDefinition(const Aws::String &value)
Definition: UpdateTypeRequest.h:131
Aws::AppSync::Model::UpdateTypeRequest::SetDefinition
void SetDefinition(const char *value)
Definition: UpdateTypeRequest.h:141
AppSync_EXPORTS.h
Aws::AppSync::Model::UpdateTypeRequest::DefinitionHasBeenSet
bool DefinitionHasBeenSet() const
Definition: UpdateTypeRequest.h:126
Aws::AppSync::Model::UpdateTypeRequest::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: UpdateTypeRequest.h:167
Aws::AppSync::Model::UpdateTypeRequest::SetTypeName
void SetTypeName(const Aws::String &value)
Definition: UpdateTypeRequest.h:90
Aws::AppSync::Model::UpdateTypeRequest::GetTypeName
const Aws::String & GetTypeName() const
Definition: UpdateTypeRequest.h:80
Aws::AppSync::Model::UpdateTypeRequest::GetFormat
const TypeDefinitionFormat & GetFormat() const
Definition: UpdateTypeRequest.h:162
Aws::AppSync::Model::UpdateTypeRequest::WithApiId
UpdateTypeRequest & WithApiId(Aws::String &&value)
Definition: UpdateTypeRequest.h:69
Aws::AppSync::Model::UpdateTypeRequest::WithTypeName
UpdateTypeRequest & WithTypeName(const Aws::String &value)
Definition: UpdateTypeRequest.h:105
Aws::AppSync::Model::UpdateTypeRequest::SetFormat
void SetFormat(const TypeDefinitionFormat &value)
Definition: UpdateTypeRequest.h:172
Aws::AppSync::Model::UpdateTypeRequest::SetFormat
void SetFormat(TypeDefinitionFormat &&value)
Definition: UpdateTypeRequest.h:177
TypeDefinitionFormat.h
Aws::AppSync::Model::UpdateTypeRequest::WithFormat
UpdateTypeRequest & WithFormat(TypeDefinitionFormat &&value)
Definition: UpdateTypeRequest.h:187
AWSString.h
Aws::AppSync::Model::UpdateTypeRequest::WithApiId
UpdateTypeRequest & WithApiId(const Aws::String &value)
Definition: UpdateTypeRequest.h:64
Aws::AppSync::Model::UpdateTypeRequest::SetTypeName
void SetTypeName(Aws::String &&value)
Definition: UpdateTypeRequest.h:95
Aws::AppSync::Model::UpdateTypeRequest::SetTypeName
void SetTypeName(const char *value)
Definition: UpdateTypeRequest.h:100
Aws::AppSync::Model::UpdateTypeRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: UpdateTypeRequest.h:54
Aws::AppSync::Model::TypeDefinitionFormat
TypeDefinitionFormat
Definition: TypeDefinitionFormat.h:17
Aws::AppSync::Model::UpdateTypeRequest::GetApiId
const Aws::String & GetApiId() const
Definition: UpdateTypeRequest.h:39
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
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::UpdateTypeRequest::WithApiId
UpdateTypeRequest & WithApiId(const char *value)
Definition: UpdateTypeRequest.h:74
Aws::AppSync::Model::UpdateTypeRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: UpdateTypeRequest.h:44
Aws::AppSync::Model::UpdateTypeRequest::UpdateTypeRequest
UpdateTypeRequest()
Aws::AppSync::Model::UpdateTypeRequest::TypeNameHasBeenSet
bool TypeNameHasBeenSet() const
Definition: UpdateTypeRequest.h:85
Aws::AppSync::Model::UpdateTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTypeRequest.h:31
Aws::AppSync::Model::UpdateTypeRequest::WithTypeName
UpdateTypeRequest & WithTypeName(Aws::String &&value)
Definition: UpdateTypeRequest.h:110