AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetFunctionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11#include <aws/lambda/model/Concurrency.h>
12#include <aws/lambda/model/FunctionCodeLocation.h>
13#include <aws/lambda/model/FunctionConfiguration.h>
14#include <aws/lambda/model/TagsError.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Lambda {
28namespace Model {
30 public:
31 AWS_LAMBDA_API GetFunctionResult() = default;
34
36
39 inline const FunctionConfiguration& GetConfiguration() const { return m_configuration; }
40 template <typename ConfigurationT = FunctionConfiguration>
41 void SetConfiguration(ConfigurationT&& value) {
42 m_configurationHasBeenSet = true;
43 m_configuration = std::forward<ConfigurationT>(value);
44 }
45 template <typename ConfigurationT = FunctionConfiguration>
46 GetFunctionResult& WithConfiguration(ConfigurationT&& value) {
47 SetConfiguration(std::forward<ConfigurationT>(value));
48 return *this;
49 }
51
53
56 inline const FunctionCodeLocation& GetCode() const { return m_code; }
57 template <typename CodeT = FunctionCodeLocation>
58 void SetCode(CodeT&& value) {
59 m_codeHasBeenSet = true;
60 m_code = std::forward<CodeT>(value);
61 }
62 template <typename CodeT = FunctionCodeLocation>
63 GetFunctionResult& WithCode(CodeT&& value) {
64 SetCode(std::forward<CodeT>(value));
65 return *this;
66 }
68
70
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 GetFunctionResult& WithTags(TagsT&& value) {
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 GetFunctionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
91 return *this;
92 }
94
96
100 inline const TagsError& GetTagsError() const { return m_tagsError; }
101 template <typename TagsErrorT = TagsError>
102 void SetTagsError(TagsErrorT&& value) {
103 m_tagsErrorHasBeenSet = true;
104 m_tagsError = std::forward<TagsErrorT>(value);
105 }
106 template <typename TagsErrorT = TagsError>
107 GetFunctionResult& WithTagsError(TagsErrorT&& value) {
108 SetTagsError(std::forward<TagsErrorT>(value));
109 return *this;
110 }
112
114
119 inline const Concurrency& GetConcurrency() const { return m_concurrency; }
120 template <typename ConcurrencyT = Concurrency>
121 void SetConcurrency(ConcurrencyT&& value) {
122 m_concurrencyHasBeenSet = true;
123 m_concurrency = std::forward<ConcurrencyT>(value);
124 }
125 template <typename ConcurrencyT = Concurrency>
126 GetFunctionResult& WithConcurrency(ConcurrencyT&& value) {
127 SetConcurrency(std::forward<ConcurrencyT>(value));
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
141 GetFunctionResult& WithRequestId(RequestIdT&& value) {
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
147
148 private:
149 FunctionConfiguration m_configuration;
150
152
154
155 TagsError m_tagsError;
156
157 Concurrency m_concurrency;
158
159 Aws::String m_requestId;
160 Aws::Http::HttpResponseCode m_HttpResponseCode;
161 bool m_configurationHasBeenSet = false;
162 bool m_codeHasBeenSet = false;
163 bool m_tagsHasBeenSet = false;
164 bool m_tagsErrorHasBeenSet = false;
165 bool m_concurrencyHasBeenSet = false;
166 bool m_requestIdHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Lambda
171} // namespace Aws
AWS_LAMBDA_API GetFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
AWS_LAMBDA_API GetFunctionResult()=default
GetFunctionResult & WithRequestId(RequestIdT &&value)
GetFunctionResult & WithCode(CodeT &&value)
GetFunctionResult & WithConcurrency(ConcurrencyT &&value)
const FunctionCodeLocation & GetCode() const
void SetConcurrency(ConcurrencyT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetConfiguration(ConfigurationT &&value)
GetFunctionResult & WithConfiguration(ConfigurationT &&value)
GetFunctionResult & WithTags(TagsT &&value)
const Concurrency & GetConcurrency() const
const FunctionConfiguration & GetConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetFunctionResult & WithTagsError(TagsErrorT &&value)
AWS_LAMBDA_API GetFunctionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFunctionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue