AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBackendAPIRequest.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/BackendAPIResourceConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AmplifyBackend
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_AMPLIFYBACKEND_API GetBackendAPIRequest();
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 "GetBackendAPI"; }
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 GetBackendAPIRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
49 inline GetBackendAPIRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
50 inline GetBackendAPIRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
52
54
57 inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; }
58 inline bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; }
59 inline void SetBackendEnvironmentName(const Aws::String& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = value; }
60 inline void SetBackendEnvironmentName(Aws::String&& value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName = std::move(value); }
61 inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentNameHasBeenSet = true; m_backendEnvironmentName.assign(value); }
63 inline GetBackendAPIRequest& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;}
64 inline GetBackendAPIRequest& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;}
66
68
72 inline const BackendAPIResourceConfig& GetResourceConfig() const{ return m_resourceConfig; }
73 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
74 inline void SetResourceConfig(const BackendAPIResourceConfig& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; }
75 inline void SetResourceConfig(BackendAPIResourceConfig&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); }
77 inline GetBackendAPIRequest& WithResourceConfig(BackendAPIResourceConfig&& value) { SetResourceConfig(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
85 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
86 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
87 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
88 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
89 inline GetBackendAPIRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
90 inline GetBackendAPIRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
91 inline GetBackendAPIRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
93 private:
94
95 Aws::String m_appId;
96 bool m_appIdHasBeenSet = false;
97
98 Aws::String m_backendEnvironmentName;
99 bool m_backendEnvironmentNameHasBeenSet = false;
100
101 BackendAPIResourceConfig m_resourceConfig;
102 bool m_resourceConfigHasBeenSet = false;
103
104 Aws::String m_resourceName;
105 bool m_resourceNameHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace AmplifyBackend
110} // namespace Aws
GetBackendAPIRequest & WithBackendEnvironmentName(const char *value)
void SetResourceConfig(BackendAPIResourceConfig &&value)
GetBackendAPIRequest & WithResourceConfig(BackendAPIResourceConfig &&value)
GetBackendAPIRequest & WithAppId(const Aws::String &value)
GetBackendAPIRequest & WithResourceName(const char *value)
virtual const char * GetServiceRequestName() const override
GetBackendAPIRequest & WithBackendEnvironmentName(const Aws::String &value)
GetBackendAPIRequest & WithBackendEnvironmentName(Aws::String &&value)
AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override
void SetResourceConfig(const BackendAPIResourceConfig &value)
const BackendAPIResourceConfig & GetResourceConfig() const
GetBackendAPIRequest & WithResourceName(Aws::String &&value)
GetBackendAPIRequest & WithAppId(Aws::String &&value)
GetBackendAPIRequest & WithResourceConfig(const BackendAPIResourceConfig &value)
GetBackendAPIRequest & WithAppId(const char *value)
GetBackendAPIRequest & WithResourceName(const Aws::String &value)
void SetBackendEnvironmentName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String