AWS SDK for C++  1.9.129
AWS SDK for C++
CreateBackendAPIRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AmplifyBackend
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateBackendAPI"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAppId() const{ return m_appId; }
43 
47  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 
52  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
53 
57  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
58 
62  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 
67  inline CreateBackendAPIRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
72  inline CreateBackendAPIRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
77  inline CreateBackendAPIRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
78 
79 
83  inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; }
84 
88  inline bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; }
89 
93  inline void SetBackendEnvironmentName(const Aws::String& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = value; }
94 
98  inline void SetBackendEnvironmentName(Aws::String&& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = std::move(value); }
99 
103  inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName.assign(value); }
104 
108  inline CreateBackendAPIRequest& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;}
109 
113  inline CreateBackendAPIRequest& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;}
114 
118  inline CreateBackendAPIRequest& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;}
119 
120 
124  inline const BackendAPIResourceConfig& GetResourceConfig() const{ return m_resourceConfig; }
125 
129  inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
130 
134  inline void SetResourceConfig(const BackendAPIResourceConfig& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; }
135 
139  inline void SetResourceConfig(BackendAPIResourceConfig&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); }
140 
144  inline CreateBackendAPIRequest& WithResourceConfig(const BackendAPIResourceConfig& value) { SetResourceConfig(value); return *this;}
145 
149  inline CreateBackendAPIRequest& WithResourceConfig(BackendAPIResourceConfig&& value) { SetResourceConfig(std::move(value)); return *this;}
150 
151 
155  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
156 
160  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
161 
165  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
166 
170  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
171 
175  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
176 
180  inline CreateBackendAPIRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
181 
185  inline CreateBackendAPIRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
186 
190  inline CreateBackendAPIRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
191 
192  private:
193 
194  Aws::String m_appId;
195  bool m_appIdHasBeenSet;
196 
197  Aws::String m_backendEnvironmentName;
198  bool m_backendEnvironmentNameHasBeenSet;
199 
200  BackendAPIResourceConfig m_resourceConfig;
201  bool m_resourceConfigHasBeenSet;
202 
203  Aws::String m_resourceName;
204  bool m_resourceNameHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace AmplifyBackend
209 } // namespace Aws
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetResourceConfig
void SetResourceConfig(const BackendAPIResourceConfig &value)
Definition: CreateBackendAPIRequest.h:134
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithAppId
CreateBackendAPIRequest & WithAppId(const Aws::String &value)
Definition: CreateBackendAPIRequest.h:67
AWS_AMPLIFYBACKEND_API
#define AWS_AMPLIFYBACKEND_API
Definition: AmplifyBackend_EXPORTS.h:28
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetAppId
void SetAppId(const char *value)
Definition: CreateBackendAPIRequest.h:62
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::BackendEnvironmentNameHasBeenSet
bool BackendEnvironmentNameHasBeenSet() const
Definition: CreateBackendAPIRequest.h:88
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithBackendEnvironmentName
CreateBackendAPIRequest & WithBackendEnvironmentName(Aws::String &&value)
Definition: CreateBackendAPIRequest.h:113
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithResourceName
CreateBackendAPIRequest & WithResourceName(const Aws::String &value)
Definition: CreateBackendAPIRequest.h:180
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetBackendEnvironmentName
void SetBackendEnvironmentName(const Aws::String &value)
Definition: CreateBackendAPIRequest.h:93
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: CreateBackendAPIRequest.h:52
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithBackendEnvironmentName
CreateBackendAPIRequest & WithBackendEnvironmentName(const char *value)
Definition: CreateBackendAPIRequest.h:118
AmplifyBackendRequest.h
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::GetBackendEnvironmentName
const Aws::String & GetBackendEnvironmentName() const
Definition: CreateBackendAPIRequest.h:83
Aws::AmplifyBackend::AmplifyBackendRequest
Definition: AmplifyBackendRequest.h:17
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: CreateBackendAPIRequest.h:155
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: CreateBackendAPIRequest.h:160
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetBackendEnvironmentName
void SetBackendEnvironmentName(Aws::String &&value)
Definition: CreateBackendAPIRequest.h:98
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::GetAppId
const Aws::String & GetAppId() const
Definition: CreateBackendAPIRequest.h:42
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithAppId
CreateBackendAPIRequest & WithAppId(Aws::String &&value)
Definition: CreateBackendAPIRequest.h:72
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: CreateBackendAPIRequest.h:165
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::GetResourceConfig
const BackendAPIResourceConfig & GetResourceConfig() const
Definition: CreateBackendAPIRequest.h:124
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetResourceName
void SetResourceName(const char *value)
Definition: CreateBackendAPIRequest.h:175
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithResourceName
CreateBackendAPIRequest & WithResourceName(const char *value)
Definition: CreateBackendAPIRequest.h:190
AWSString.h
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithResourceConfig
CreateBackendAPIRequest & WithResourceConfig(BackendAPIResourceConfig &&value)
Definition: CreateBackendAPIRequest.h:149
AmplifyBackend_EXPORTS.h
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetBackendEnvironmentName
void SetBackendEnvironmentName(const char *value)
Definition: CreateBackendAPIRequest.h:103
Aws::AmplifyBackend::Model::CreateBackendAPIRequest
Definition: CreateBackendAPIRequest.h:26
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithResourceName
CreateBackendAPIRequest & WithResourceName(Aws::String &&value)
Definition: CreateBackendAPIRequest.h:185
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithAppId
CreateBackendAPIRequest & WithAppId(const char *value)
Definition: CreateBackendAPIRequest.h:77
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetResourceConfig
void SetResourceConfig(BackendAPIResourceConfig &&value)
Definition: CreateBackendAPIRequest.h:139
Aws::AmplifyBackend::Model::BackendAPIResourceConfig
Definition: BackendAPIResourceConfig.h:36
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: CreateBackendAPIRequest.h:170
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::ResourceConfigHasBeenSet
bool ResourceConfigHasBeenSet() const
Definition: CreateBackendAPIRequest.h:129
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithBackendEnvironmentName
CreateBackendAPIRequest & WithBackendEnvironmentName(const Aws::String &value)
Definition: CreateBackendAPIRequest.h:108
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: CreateBackendAPIRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::CreateBackendAPIRequest
CreateBackendAPIRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BackendAPIResourceConfig.h
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: CreateBackendAPIRequest.h:47
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateBackendAPIRequest.h:34
Aws::AmplifyBackend::Model::CreateBackendAPIRequest::WithResourceConfig
CreateBackendAPIRequest & WithResourceConfig(const BackendAPIResourceConfig &value)
Definition: CreateBackendAPIRequest.h:144