AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
GetWebFunctionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
11#include <aws/lambda-web/model/FunctionState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace LambdaWeb {
25namespace Model {
32 public:
33 AWS_LAMBDAWEB_API GetWebFunctionResult() = default;
36
38
41 inline const Aws::String& GetFunctionName() const { return m_functionName; }
42 template <typename FunctionNameT = Aws::String>
43 void SetFunctionName(FunctionNameT&& value) {
44 m_functionNameHasBeenSet = true;
45 m_functionName = std::forward<FunctionNameT>(value);
46 }
47 template <typename FunctionNameT = Aws::String>
48 GetWebFunctionResult& WithFunctionName(FunctionNameT&& value) {
49 SetFunctionName(std::forward<FunctionNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
59 template <typename FunctionArnT = Aws::String>
60 void SetFunctionArn(FunctionArnT&& value) {
61 m_functionArnHasBeenSet = true;
62 m_functionArn = std::forward<FunctionArnT>(value);
63 }
64 template <typename FunctionArnT = Aws::String>
65 GetWebFunctionResult& WithFunctionArn(FunctionArnT&& value) {
66 SetFunctionArn(std::forward<FunctionArnT>(value));
67 return *this;
68 }
70
72
75 inline FunctionState GetState() const { return m_state; }
76 inline void SetState(FunctionState value) {
77 m_stateHasBeenSet = true;
78 m_state = value;
79 }
81 SetState(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetStateReason() const { return m_stateReason; }
91 template <typename StateReasonT = Aws::String>
92 void SetStateReason(StateReasonT&& value) {
93 m_stateReasonHasBeenSet = true;
94 m_stateReason = std::forward<StateReasonT>(value);
95 }
96 template <typename StateReasonT = Aws::String>
97 GetWebFunctionResult& WithStateReason(StateReasonT&& value) {
98 SetStateReason(std::forward<StateReasonT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
108 template <typename CreatedAtT = Aws::Utils::DateTime>
109 void SetCreatedAt(CreatedAtT&& value) {
110 m_createdAtHasBeenSet = true;
111 m_createdAt = std::forward<CreatedAtT>(value);
112 }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 GetWebFunctionResult& WithCreatedAt(CreatedAtT&& value) {
115 SetCreatedAt(std::forward<CreatedAtT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
125 template <typename UpdatedAtT = Aws::Utils::DateTime>
126 void SetUpdatedAt(UpdatedAtT&& value) {
127 m_updatedAtHasBeenSet = true;
128 m_updatedAt = std::forward<UpdatedAtT>(value);
129 }
130 template <typename UpdatedAtT = Aws::Utils::DateTime>
131 GetWebFunctionResult& WithUpdatedAt(UpdatedAtT&& value) {
132 SetUpdatedAt(std::forward<UpdatedAtT>(value));
133 return *this;
134 }
136
138
139 inline const Aws::String& GetRequestId() const { return m_requestId; }
140 template <typename RequestIdT = Aws::String>
141 void SetRequestId(RequestIdT&& value) {
142 m_requestIdHasBeenSet = true;
143 m_requestId = std::forward<RequestIdT>(value);
144 }
145 template <typename RequestIdT = Aws::String>
146 GetWebFunctionResult& WithRequestId(RequestIdT&& value) {
147 SetRequestId(std::forward<RequestIdT>(value));
148 return *this;
149 }
151 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
152
153 private:
154 Aws::String m_functionName;
155
156 Aws::String m_functionArn;
157
159
160 Aws::String m_stateReason;
161
162 Aws::Utils::DateTime m_createdAt{};
163
164 Aws::Utils::DateTime m_updatedAt{};
165
166 Aws::String m_requestId;
167 Aws::Http::HttpResponseCode m_HttpResponseCode;
168 bool m_functionNameHasBeenSet = false;
169 bool m_functionArnHasBeenSet = false;
170 bool m_stateHasBeenSet = false;
171 bool m_stateReasonHasBeenSet = false;
172 bool m_createdAtHasBeenSet = false;
173 bool m_updatedAtHasBeenSet = false;
174 bool m_requestIdHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace LambdaWeb
179} // namespace Aws
GetWebFunctionResult & WithStateReason(StateReasonT &&value)
GetWebFunctionResult & WithState(FunctionState value)
GetWebFunctionResult & WithFunctionName(FunctionNameT &&value)
GetWebFunctionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetWebFunctionResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_LAMBDAWEB_API GetWebFunctionResult()=default
AWS_LAMBDAWEB_API GetWebFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_LAMBDAWEB_API GetWebFunctionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWebFunctionResult & WithFunctionArn(FunctionArnT &&value)
GetWebFunctionResult & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue