AWS SDK for C++  1.9.155
AWS SDK for C++
CreateTypeRequest.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 "CreateType"; }
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 CreateTypeRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
65 
69  inline CreateTypeRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
70 
74  inline CreateTypeRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
75 
76 
82  inline const Aws::String& GetDefinition() const{ return m_definition; }
83 
89  inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
90 
96  inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
97 
103  inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
104 
110  inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
111 
117  inline CreateTypeRequest& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
118 
124  inline CreateTypeRequest& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
125 
131  inline CreateTypeRequest& WithDefinition(const char* value) { SetDefinition(value); return *this;}
132 
133 
137  inline const TypeDefinitionFormat& GetFormat() const{ return m_format; }
138 
142  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
143 
147  inline void SetFormat(const TypeDefinitionFormat& value) { m_formatHasBeenSet = true; m_format = value; }
148 
152  inline void SetFormat(TypeDefinitionFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
153 
157  inline CreateTypeRequest& WithFormat(const TypeDefinitionFormat& value) { SetFormat(value); return *this;}
158 
162  inline CreateTypeRequest& WithFormat(TypeDefinitionFormat&& value) { SetFormat(std::move(value)); return *this;}
163 
164  private:
165 
166  Aws::String m_apiId;
167  bool m_apiIdHasBeenSet;
168 
169  Aws::String m_definition;
170  bool m_definitionHasBeenSet;
171 
172  TypeDefinitionFormat m_format;
173  bool m_formatHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace AppSync
178 } // namespace Aws
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::CreateTypeRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: CreateTypeRequest.h:49
Aws::AppSync::Model::CreateTypeRequest::WithDefinition
CreateTypeRequest & WithDefinition(const Aws::String &value)
Definition: CreateTypeRequest.h:117
Aws::AppSync::Model::CreateTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::CreateTypeRequest::SetFormat
void SetFormat(TypeDefinitionFormat &&value)
Definition: CreateTypeRequest.h:152
Aws::AppSync::Model::CreateTypeRequest::SetApiId
void SetApiId(const char *value)
Definition: CreateTypeRequest.h:59
Aws::AppSync::Model::CreateTypeRequest::CreateTypeRequest
CreateTypeRequest()
Aws::AppSync::Model::CreateTypeRequest::WithApiId
CreateTypeRequest & WithApiId(const Aws::String &value)
Definition: CreateTypeRequest.h:64
Aws::AppSync::Model::CreateTypeRequest::WithDefinition
CreateTypeRequest & WithDefinition(Aws::String &&value)
Definition: CreateTypeRequest.h:124
Aws::AppSync::Model::CreateTypeRequest::WithApiId
CreateTypeRequest & WithApiId(Aws::String &&value)
Definition: CreateTypeRequest.h:69
Aws::AppSync::Model::CreateTypeRequest::GetDefinition
const Aws::String & GetDefinition() const
Definition: CreateTypeRequest.h:82
AppSync_EXPORTS.h
Aws::AppSync::Model::CreateTypeRequest::WithDefinition
CreateTypeRequest & WithDefinition(const char *value)
Definition: CreateTypeRequest.h:131
Aws::AppSync::Model::CreateTypeRequest::GetApiId
const Aws::String & GetApiId() const
Definition: CreateTypeRequest.h:39
Aws::AppSync::Model::CreateTypeRequest::GetFormat
const TypeDefinitionFormat & GetFormat() const
Definition: CreateTypeRequest.h:137
Aws::AppSync::Model::CreateTypeRequest::SetFormat
void SetFormat(const TypeDefinitionFormat &value)
Definition: CreateTypeRequest.h:147
Aws::AppSync::Model::CreateTypeRequest::WithFormat
CreateTypeRequest & WithFormat(TypeDefinitionFormat &&value)
Definition: CreateTypeRequest.h:162
TypeDefinitionFormat.h
Aws::AppSync::Model::CreateTypeRequest
Definition: CreateTypeRequest.h:23
Aws::AppSync::Model::CreateTypeRequest::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: CreateTypeRequest.h:142
Aws::AppSync::Model::CreateTypeRequest::SetDefinition
void SetDefinition(const Aws::String &value)
Definition: CreateTypeRequest.h:96
AWSString.h
Aws::AppSync::Model::CreateTypeRequest::WithApiId
CreateTypeRequest & WithApiId(const char *value)
Definition: CreateTypeRequest.h:74
Aws::AppSync::Model::CreateTypeRequest::DefinitionHasBeenSet
bool DefinitionHasBeenSet() const
Definition: CreateTypeRequest.h:89
Aws::AppSync::Model::TypeDefinitionFormat
TypeDefinitionFormat
Definition: TypeDefinitionFormat.h:17
AppSyncRequest.h
Aws::AppSync::Model::CreateTypeRequest::SetDefinition
void SetDefinition(const char *value)
Definition: CreateTypeRequest.h:110
Aws
Definition: AccessManagementClient.h:15
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::AppSync::Model::CreateTypeRequest::WithFormat
CreateTypeRequest & WithFormat(const TypeDefinitionFormat &value)
Definition: CreateTypeRequest.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::CreateTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTypeRequest.h:31
Aws::AppSync::Model::CreateTypeRequest::SetDefinition
void SetDefinition(Aws::String &&value)
Definition: CreateTypeRequest.h:103
Aws::AppSync::Model::CreateTypeRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: CreateTypeRequest.h:44
Aws::AppSync::Model::CreateTypeRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: CreateTypeRequest.h:54