AWS SDK for C++  1.9.158
AWS SDK for C++
StartSchemaCreationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
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 "StartSchemaCreation"; }
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 StartSchemaCreationRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
65 
69  inline StartSchemaCreationRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
70 
74  inline StartSchemaCreationRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
75 
76 
80  inline const Aws::Utils::ByteBuffer& GetDefinition() const{ return m_definition; }
81 
85  inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
86 
90  inline void SetDefinition(const Aws::Utils::ByteBuffer& value) { m_definitionHasBeenSet = true; m_definition = value; }
91 
95  inline void SetDefinition(Aws::Utils::ByteBuffer&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
96 
100  inline StartSchemaCreationRequest& WithDefinition(const Aws::Utils::ByteBuffer& value) { SetDefinition(value); return *this;}
101 
105  inline StartSchemaCreationRequest& WithDefinition(Aws::Utils::ByteBuffer&& value) { SetDefinition(std::move(value)); return *this;}
106 
107  private:
108 
109  Aws::String m_apiId;
110  bool m_apiIdHasBeenSet;
111 
112  Aws::Utils::ByteBuffer m_definition;
113  bool m_definitionHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace AppSync
118 } // namespace Aws
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::StartSchemaCreationRequest::WithApiId
StartSchemaCreationRequest & WithApiId(const char *value)
Definition: StartSchemaCreationRequest.h:74
Aws::AppSync::Model::StartSchemaCreationRequest::GetDefinition
const Aws::Utils::ByteBuffer & GetDefinition() const
Definition: StartSchemaCreationRequest.h:80
Aws::AppSync::Model::StartSchemaCreationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartSchemaCreationRequest.h:31
Aws::AppSync::Model::StartSchemaCreationRequest::WithDefinition
StartSchemaCreationRequest & WithDefinition(Aws::Utils::ByteBuffer &&value)
Definition: StartSchemaCreationRequest.h:105
Aws::AppSync::Model::StartSchemaCreationRequest::WithDefinition
StartSchemaCreationRequest & WithDefinition(const Aws::Utils::ByteBuffer &value)
Definition: StartSchemaCreationRequest.h:100
AppSync_EXPORTS.h
Aws::AppSync::Model::StartSchemaCreationRequest::WithApiId
StartSchemaCreationRequest & WithApiId(const Aws::String &value)
Definition: StartSchemaCreationRequest.h:64
Aws::AppSync::Model::StartSchemaCreationRequest::SetDefinition
void SetDefinition(Aws::Utils::ByteBuffer &&value)
Definition: StartSchemaCreationRequest.h:95
Aws::AppSync::Model::StartSchemaCreationRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: StartSchemaCreationRequest.h:44
Aws::AppSync::Model::StartSchemaCreationRequest::GetApiId
const Aws::String & GetApiId() const
Definition: StartSchemaCreationRequest.h:39
Aws::AppSync::Model::StartSchemaCreationRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: StartSchemaCreationRequest.h:49
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::AppSync::Model::StartSchemaCreationRequest::StartSchemaCreationRequest
StartSchemaCreationRequest()
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
Array.h
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::StartSchemaCreationRequest::WithApiId
StartSchemaCreationRequest & WithApiId(Aws::String &&value)
Definition: StartSchemaCreationRequest.h:69
Aws::AppSync::Model::StartSchemaCreationRequest
Definition: StartSchemaCreationRequest.h:23
Aws::AppSync::Model::StartSchemaCreationRequest::DefinitionHasBeenSet
bool DefinitionHasBeenSet() const
Definition: StartSchemaCreationRequest.h:85
Aws::AppSync::Model::StartSchemaCreationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::StartSchemaCreationRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: StartSchemaCreationRequest.h:54
Aws::AppSync::Model::StartSchemaCreationRequest::SetApiId
void SetApiId(const char *value)
Definition: StartSchemaCreationRequest.h:59
Aws::AppSync::Model::StartSchemaCreationRequest::SetDefinition
void SetDefinition(const Aws::Utils::ByteBuffer &value)
Definition: StartSchemaCreationRequest.h:90