AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetBackendAuthResult.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/CreateBackendAuthResourceConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyBackend {
23namespace Model {
25 public:
26 AWS_AMPLIFYBACKEND_API GetBackendAuthResult() = default;
29
31
34 inline const Aws::String& GetAppId() const { return m_appId; }
35 template <typename AppIdT = Aws::String>
36 void SetAppId(AppIdT&& value) {
37 m_appIdHasBeenSet = true;
38 m_appId = std::forward<AppIdT>(value);
39 }
40 template <typename AppIdT = Aws::String>
42 SetAppId(std::forward<AppIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetBackendEnvironmentName() const { return m_backendEnvironmentName; }
52 template <typename BackendEnvironmentNameT = Aws::String>
53 void SetBackendEnvironmentName(BackendEnvironmentNameT&& value) {
54 m_backendEnvironmentNameHasBeenSet = true;
55 m_backendEnvironmentName = std::forward<BackendEnvironmentNameT>(value);
56 }
57 template <typename BackendEnvironmentNameT = Aws::String>
58 GetBackendAuthResult& WithBackendEnvironmentName(BackendEnvironmentNameT&& value) {
59 SetBackendEnvironmentName(std::forward<BackendEnvironmentNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetError() const { return m_error; }
69 template <typename ErrorT = Aws::String>
70 void SetError(ErrorT&& value) {
71 m_errorHasBeenSet = true;
72 m_error = std::forward<ErrorT>(value);
73 }
74 template <typename ErrorT = Aws::String>
76 SetError(std::forward<ErrorT>(value));
77 return *this;
78 }
80
82
86 inline const CreateBackendAuthResourceConfig& GetResourceConfig() const { return m_resourceConfig; }
87 template <typename ResourceConfigT = CreateBackendAuthResourceConfig>
88 void SetResourceConfig(ResourceConfigT&& value) {
89 m_resourceConfigHasBeenSet = true;
90 m_resourceConfig = std::forward<ResourceConfigT>(value);
91 }
92 template <typename ResourceConfigT = CreateBackendAuthResourceConfig>
93 GetBackendAuthResult& WithResourceConfig(ResourceConfigT&& value) {
94 SetResourceConfig(std::forward<ResourceConfigT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetResourceName() const { return m_resourceName; }
104 template <typename ResourceNameT = Aws::String>
105 void SetResourceName(ResourceNameT&& value) {
106 m_resourceNameHasBeenSet = true;
107 m_resourceName = std::forward<ResourceNameT>(value);
108 }
109 template <typename ResourceNameT = Aws::String>
110 GetBackendAuthResult& WithResourceName(ResourceNameT&& value) {
111 SetResourceName(std::forward<ResourceNameT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
125 GetBackendAuthResult& WithRequestId(RequestIdT&& value) {
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_appId;
132
133 Aws::String m_backendEnvironmentName;
134
135 Aws::String m_error;
136
137 CreateBackendAuthResourceConfig m_resourceConfig;
138
139 Aws::String m_resourceName;
140
141 Aws::String m_requestId;
142 bool m_appIdHasBeenSet = false;
143 bool m_backendEnvironmentNameHasBeenSet = false;
144 bool m_errorHasBeenSet = false;
145 bool m_resourceConfigHasBeenSet = false;
146 bool m_resourceNameHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace AmplifyBackend
152} // namespace Aws
AWS_AMPLIFYBACKEND_API GetBackendAuthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_AMPLIFYBACKEND_API GetBackendAuthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBackendAuthResult & WithRequestId(RequestIdT &&value)
AWS_AMPLIFYBACKEND_API GetBackendAuthResult()=default
GetBackendAuthResult & WithAppId(AppIdT &&value)
GetBackendAuthResult & WithBackendEnvironmentName(BackendEnvironmentNameT &&value)
const CreateBackendAuthResourceConfig & GetResourceConfig() const
GetBackendAuthResult & WithResourceConfig(ResourceConfigT &&value)
GetBackendAuthResult & WithResourceName(ResourceNameT &&value)
void SetBackendEnvironmentName(BackendEnvironmentNameT &&value)
GetBackendAuthResult & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue