AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetFunctionResult.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/model/FunctionConfiguration.h>
9#include <aws/lambda/model/FunctionCodeLocation.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lambda/model/TagsError.h>
12#include <aws/lambda/model/Concurrency.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Lambda
29{
30namespace Model
31{
33 {
34 public:
35 AWS_LAMBDA_API GetFunctionResult() = default;
38
39
41
44 inline const FunctionConfiguration& GetConfiguration() const { return m_configuration; }
45 template<typename ConfigurationT = FunctionConfiguration>
46 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
47 template<typename ConfigurationT = FunctionConfiguration>
48 GetFunctionResult& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
50
52
55 inline const FunctionCodeLocation& GetCode() const { return m_code; }
56 template<typename CodeT = FunctionCodeLocation>
57 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
58 template<typename CodeT = FunctionCodeLocation>
59 GetFunctionResult& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
61
63
69 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 GetFunctionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
75 GetFunctionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
76 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
77 }
79
81
85 inline const TagsError& GetTagsError() const { return m_tagsError; }
86 template<typename TagsErrorT = TagsError>
87 void SetTagsError(TagsErrorT&& value) { m_tagsErrorHasBeenSet = true; m_tagsError = std::forward<TagsErrorT>(value); }
88 template<typename TagsErrorT = TagsError>
89 GetFunctionResult& WithTagsError(TagsErrorT&& value) { SetTagsError(std::forward<TagsErrorT>(value)); return *this;}
91
93
98 inline const Concurrency& GetConcurrency() const { return m_concurrency; }
99 template<typename ConcurrencyT = Concurrency>
100 void SetConcurrency(ConcurrencyT&& value) { m_concurrencyHasBeenSet = true; m_concurrency = std::forward<ConcurrencyT>(value); }
101 template<typename ConcurrencyT = Concurrency>
102 GetFunctionResult& WithConcurrency(ConcurrencyT&& value) { SetConcurrency(std::forward<ConcurrencyT>(value)); return *this;}
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template<typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
110 template<typename RequestIdT = Aws::String>
111 GetFunctionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
113 private:
114
115 FunctionConfiguration m_configuration;
116 bool m_configurationHasBeenSet = false;
117
119 bool m_codeHasBeenSet = false;
120
122 bool m_tagsHasBeenSet = false;
123
124 TagsError m_tagsError;
125 bool m_tagsErrorHasBeenSet = false;
126
127 Concurrency m_concurrency;
128 bool m_concurrencyHasBeenSet = false;
129
130 Aws::String m_requestId;
131 bool m_requestIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Lambda
136} // 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