AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetFunctionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10#include <aws/lambda/model/Concurrency.h>
11#include <aws/lambda/model/FunctionCodeLocation.h>
12#include <aws/lambda/model/FunctionConfiguration.h>
13#include <aws/lambda/model/TagsError.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Lambda {
27namespace Model {
29 public:
30 AWS_LAMBDA_API GetFunctionResult() = default;
33
35
38 inline const FunctionConfiguration& GetConfiguration() const { return m_configuration; }
39 template <typename ConfigurationT = FunctionConfiguration>
40 void SetConfiguration(ConfigurationT&& value) {
41 m_configurationHasBeenSet = true;
42 m_configuration = std::forward<ConfigurationT>(value);
43 }
44 template <typename ConfigurationT = FunctionConfiguration>
45 GetFunctionResult& WithConfiguration(ConfigurationT&& value) {
46 SetConfiguration(std::forward<ConfigurationT>(value));
47 return *this;
48 }
50
52
55 inline const FunctionCodeLocation& GetCode() const { return m_code; }
56 template <typename CodeT = FunctionCodeLocation>
57 void SetCode(CodeT&& value) {
58 m_codeHasBeenSet = true;
59 m_code = std::forward<CodeT>(value);
60 }
61 template <typename CodeT = FunctionCodeLocation>
62 GetFunctionResult& WithCode(CodeT&& value) {
63 SetCode(std::forward<CodeT>(value));
64 return *this;
65 }
67
69
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags = std::forward<TagsT>(value);
80 }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 GetFunctionResult& WithTags(TagsT&& value) {
83 SetTags(std::forward<TagsT>(value));
84 return *this;
85 }
86 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 GetFunctionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
90 return *this;
91 }
93
95
99 inline const TagsError& GetTagsError() const { return m_tagsError; }
100 template <typename TagsErrorT = TagsError>
101 void SetTagsError(TagsErrorT&& value) {
102 m_tagsErrorHasBeenSet = true;
103 m_tagsError = std::forward<TagsErrorT>(value);
104 }
105 template <typename TagsErrorT = TagsError>
106 GetFunctionResult& WithTagsError(TagsErrorT&& value) {
107 SetTagsError(std::forward<TagsErrorT>(value));
108 return *this;
109 }
111
113
118 inline const Concurrency& GetConcurrency() const { return m_concurrency; }
119 template <typename ConcurrencyT = Concurrency>
120 void SetConcurrency(ConcurrencyT&& value) {
121 m_concurrencyHasBeenSet = true;
122 m_concurrency = std::forward<ConcurrencyT>(value);
123 }
124 template <typename ConcurrencyT = Concurrency>
125 GetFunctionResult& WithConcurrency(ConcurrencyT&& value) {
126 SetConcurrency(std::forward<ConcurrencyT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
140 GetFunctionResult& WithRequestId(RequestIdT&& value) {
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 private:
146 FunctionConfiguration m_configuration;
147
149
151
152 TagsError m_tagsError;
153
154 Concurrency m_concurrency;
155
156 Aws::String m_requestId;
157 bool m_configurationHasBeenSet = false;
158 bool m_codeHasBeenSet = false;
159 bool m_tagsHasBeenSet = false;
160 bool m_tagsErrorHasBeenSet = false;
161 bool m_concurrencyHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Lambda
167} // namespace Aws
AWS_LAMBDA_API GetFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
const TagsError & GetTagsError() 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)
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