AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
44 inline const FunctionConfiguration& GetConfiguration() const{ return m_configuration; }
45 inline void SetConfiguration(const FunctionConfiguration& value) { m_configuration = value; }
46 inline void SetConfiguration(FunctionConfiguration&& value) { m_configuration = std::move(value); }
47 inline GetFunctionResult& WithConfiguration(const FunctionConfiguration& value) { SetConfiguration(value); return *this;}
48 inline GetFunctionResult& WithConfiguration(FunctionConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
50
52
55 inline const FunctionCodeLocation& GetCode() const{ return m_code; }
56 inline void SetCode(const FunctionCodeLocation& value) { m_code = value; }
57 inline void SetCode(FunctionCodeLocation&& value) { m_code = std::move(value); }
58 inline GetFunctionResult& WithCode(const FunctionCodeLocation& value) { SetCode(value); return *this;}
59 inline GetFunctionResult& WithCode(FunctionCodeLocation&& value) { SetCode(std::move(value)); return *this;}
61
63
69 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
70 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
71 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
72 inline GetFunctionResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
73 inline GetFunctionResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
74 inline GetFunctionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
75 inline GetFunctionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
76 inline GetFunctionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
77 inline GetFunctionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
78 inline GetFunctionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
79 inline GetFunctionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
80 inline GetFunctionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
82
84
88 inline const TagsError& GetTagsError() const{ return m_tagsError; }
89 inline void SetTagsError(const TagsError& value) { m_tagsError = value; }
90 inline void SetTagsError(TagsError&& value) { m_tagsError = std::move(value); }
91 inline GetFunctionResult& WithTagsError(const TagsError& value) { SetTagsError(value); return *this;}
92 inline GetFunctionResult& WithTagsError(TagsError&& value) { SetTagsError(std::move(value)); return *this;}
94
96
101 inline const Concurrency& GetConcurrency() const{ return m_concurrency; }
102 inline void SetConcurrency(const Concurrency& value) { m_concurrency = value; }
103 inline void SetConcurrency(Concurrency&& value) { m_concurrency = std::move(value); }
104 inline GetFunctionResult& WithConcurrency(const Concurrency& value) { SetConcurrency(value); return *this;}
105 inline GetFunctionResult& WithConcurrency(Concurrency&& value) { SetConcurrency(std::move(value)); return *this;}
107
109
110 inline const Aws::String& GetRequestId() const{ return m_requestId; }
111 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
112 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
113 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
114 inline GetFunctionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
115 inline GetFunctionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
116 inline GetFunctionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
118 private:
119
120 FunctionConfiguration m_configuration;
121
123
125
126 TagsError m_tagsError;
127
128 Concurrency m_concurrency;
129
130 Aws::String m_requestId;
131 };
132
133} // namespace Model
134} // namespace Lambda
135} // namespace Aws
GetFunctionResult & WithCode(const FunctionCodeLocation &value)
AWS_LAMBDA_API GetFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFunctionResult & WithTagsError(TagsError &&value)
const Aws::String & GetRequestId() const
const TagsError & GetTagsError() const
void SetTagsError(const TagsError &value)
void SetConcurrency(Concurrency &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
GetFunctionResult & AddTags(const Aws::String &key, Aws::String &&value)
GetFunctionResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetRequestId(const Aws::String &value)
const FunctionCodeLocation & GetCode() const
void SetCode(FunctionCodeLocation &&value)
GetFunctionResult & WithConcurrency(const Concurrency &value)
GetFunctionResult & WithConfiguration(const FunctionConfiguration &value)
GetFunctionResult & AddTags(const char *key, Aws::String &&value)
GetFunctionResult & WithConcurrency(Concurrency &&value)
void SetConfiguration(const FunctionConfiguration &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
GetFunctionResult & WithRequestId(Aws::String &&value)
const Concurrency & GetConcurrency() const
GetFunctionResult & WithRequestId(const Aws::String &value)
GetFunctionResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetConcurrency(const Concurrency &value)
const FunctionConfiguration & GetConfiguration() const
GetFunctionResult & WithCode(FunctionCodeLocation &&value)
GetFunctionResult & AddTags(const Aws::String &key, const Aws::String &value)
GetFunctionResult & WithTagsError(const TagsError &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetFunctionResult & AddTags(Aws::String &&key, Aws::String &&value)
GetFunctionResult & AddTags(const char *key, const char *value)
void SetConfiguration(FunctionConfiguration &&value)
GetFunctionResult & WithRequestId(const char *value)
GetFunctionResult & AddTags(Aws::String &&key, const char *value)
GetFunctionResult & AddTags(Aws::String &&key, const Aws::String &value)
AWS_LAMBDA_API GetFunctionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFunctionResult & WithConfiguration(FunctionConfiguration &&value)
void SetCode(const FunctionCodeLocation &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