AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateBackendStorageRequest.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackendRequest.h>
8#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
9#include <aws/amplifybackend/model/CreateBackendStorageResourceConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AmplifyBackend {
16namespace Model {
17
24 public:
25 AWS_AMPLIFYBACKEND_API CreateBackendStorageRequest() = default;
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 "CreateBackendStorage"; }
32
33 AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAppId() const { return m_appId; }
40 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
41 template <typename AppIdT = Aws::String>
42 void SetAppId(AppIdT&& value) {
43 m_appIdHasBeenSet = true;
44 m_appId = std::forward<AppIdT>(value);
45 }
46 template <typename AppIdT = Aws::String>
48 SetAppId(std::forward<AppIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBackendEnvironmentName() const { return m_backendEnvironmentName; }
58 inline bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; }
59 template <typename BackendEnvironmentNameT = Aws::String>
60 void SetBackendEnvironmentName(BackendEnvironmentNameT&& value) {
61 m_backendEnvironmentNameHasBeenSet = true;
62 m_backendEnvironmentName = std::forward<BackendEnvironmentNameT>(value);
63 }
64 template <typename BackendEnvironmentNameT = Aws::String>
65 CreateBackendStorageRequest& WithBackendEnvironmentName(BackendEnvironmentNameT&& value) {
66 SetBackendEnvironmentName(std::forward<BackendEnvironmentNameT>(value));
67 return *this;
68 }
70
72
75 inline const CreateBackendStorageResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
76 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
77 template <typename ResourceConfigT = CreateBackendStorageResourceConfig>
78 void SetResourceConfig(ResourceConfigT&& value) {
79 m_resourceConfigHasBeenSet = true;
80 m_resourceConfig = std::forward<ResourceConfigT>(value);
81 }
82 template <typename ResourceConfigT = CreateBackendStorageResourceConfig>
84 SetResourceConfig(std::forward<ResourceConfigT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetResourceName() const { return m_resourceName; }
94 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
95 template <typename ResourceNameT = Aws::String>
96 void SetResourceName(ResourceNameT&& value) {
97 m_resourceNameHasBeenSet = true;
98 m_resourceName = std::forward<ResourceNameT>(value);
99 }
100 template <typename ResourceNameT = Aws::String>
102 SetResourceName(std::forward<ResourceNameT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_appId;
108 bool m_appIdHasBeenSet = false;
109
110 Aws::String m_backendEnvironmentName;
111 bool m_backendEnvironmentNameHasBeenSet = false;
112
113 CreateBackendStorageResourceConfig m_resourceConfig;
114 bool m_resourceConfigHasBeenSet = false;
115
116 Aws::String m_resourceName;
117 bool m_resourceNameHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace AmplifyBackend
122} // namespace Aws
CreateBackendStorageRequest & WithResourceName(ResourceNameT &&value)
AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override
const CreateBackendStorageResourceConfig & GetResourceConfig() const
CreateBackendStorageRequest & WithAppId(AppIdT &&value)
AWS_AMPLIFYBACKEND_API CreateBackendStorageRequest()=default
CreateBackendStorageRequest & WithBackendEnvironmentName(BackendEnvironmentNameT &&value)
CreateBackendStorageRequest & WithResourceConfig(ResourceConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String