AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBackendRequest.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/AmplifyBackendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplifybackend/model/ResourceConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AmplifyBackend
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_AMPLIFYBACKEND_API CreateBackendRequest();
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 "CreateBackend"; }
35
36 AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAppId() const{ return m_appId; }
44 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
45 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
46 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
47 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
48 inline CreateBackendRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
49 inline CreateBackendRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
50 inline CreateBackendRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
52
54
57 inline const Aws::String& GetAppName() const{ return m_appName; }
58 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
59 inline void SetAppName(const Aws::String& value) { m_appNameHasBeenSet = true; m_appName = value; }
60 inline void SetAppName(Aws::String&& value) { m_appNameHasBeenSet = true; m_appName = std::move(value); }
61 inline void SetAppName(const char* value) { m_appNameHasBeenSet = true; m_appName.assign(value); }
62 inline CreateBackendRequest& WithAppName(const Aws::String& value) { SetAppName(value); return *this;}
63 inline CreateBackendRequest& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;}
64 inline CreateBackendRequest& WithAppName(const char* value) { SetAppName(value); return *this;}
66
68
71 inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; }
72 inline bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; }
73 inline void SetBackendEnvironmentName(const Aws::String& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = value; }
74 inline void SetBackendEnvironmentName(Aws::String&& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = std::move(value); }
75 inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName.assign(value); }
77 inline CreateBackendRequest& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;}
78 inline CreateBackendRequest& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;}
80
82
85 inline const ResourceConfig& GetResourceConfig() const{ return m_resourceConfig; }
86 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
87 inline void SetResourceConfig(const ResourceConfig& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; }
88 inline void SetResourceConfig(ResourceConfig&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); }
89 inline CreateBackendRequest& WithResourceConfig(const ResourceConfig& value) { SetResourceConfig(value); return *this;}
90 inline CreateBackendRequest& WithResourceConfig(ResourceConfig&& value) { SetResourceConfig(std::move(value)); return *this;}
92
94
97 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
98 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
99 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
100 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
101 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
102 inline CreateBackendRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
103 inline CreateBackendRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
104 inline CreateBackendRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
106 private:
107
108 Aws::String m_appId;
109 bool m_appIdHasBeenSet = false;
110
111 Aws::String m_appName;
112 bool m_appNameHasBeenSet = false;
113
114 Aws::String m_backendEnvironmentName;
115 bool m_backendEnvironmentNameHasBeenSet = false;
116
117 ResourceConfig m_resourceConfig;
118 bool m_resourceConfigHasBeenSet = false;
119
120 Aws::String m_resourceName;
121 bool m_resourceNameHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace AmplifyBackend
126} // namespace Aws
CreateBackendRequest & WithBackendEnvironmentName(const Aws::String &value)
CreateBackendRequest & WithResourceName(const char *value)
CreateBackendRequest & WithResourceName(Aws::String &&value)
CreateBackendRequest & WithResourceConfig(const ResourceConfig &value)
CreateBackendRequest & WithAppId(const Aws::String &value)
CreateBackendRequest & WithAppName(const Aws::String &value)
void SetBackendEnvironmentName(const Aws::String &value)
CreateBackendRequest & WithAppName(Aws::String &&value)
void SetResourceConfig(const ResourceConfig &value)
virtual const char * GetServiceRequestName() const override
CreateBackendRequest & WithBackendEnvironmentName(const char *value)
CreateBackendRequest & WithAppId(const char *value)
CreateBackendRequest & WithBackendEnvironmentName(Aws::String &&value)
CreateBackendRequest & WithResourceName(const Aws::String &value)
CreateBackendRequest & WithAppName(const char *value)
CreateBackendRequest & WithAppId(Aws::String &&value)
AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override
CreateBackendRequest & WithResourceConfig(ResourceConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String