AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/Tag.h>
12#include <aws/guardduty/model/VpcConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
33 public:
34 AWS_GUARDDUTY_API LambdaDetails() = default;
35 AWS_GUARDDUTY_API LambdaDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API LambdaDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
44 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
45 template <typename FunctionArnT = Aws::String>
46 void SetFunctionArn(FunctionArnT&& value) {
47 m_functionArnHasBeenSet = true;
48 m_functionArn = std::forward<FunctionArnT>(value);
49 }
50 template <typename FunctionArnT = Aws::String>
51 LambdaDetails& WithFunctionArn(FunctionArnT&& value) {
52 SetFunctionArn(std::forward<FunctionArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetFunctionName() const { return m_functionName; }
62 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
63 template <typename FunctionNameT = Aws::String>
64 void SetFunctionName(FunctionNameT&& value) {
65 m_functionNameHasBeenSet = true;
66 m_functionName = std::forward<FunctionNameT>(value);
67 }
68 template <typename FunctionNameT = Aws::String>
69 LambdaDetails& WithFunctionName(FunctionNameT&& value) {
70 SetFunctionName(std::forward<FunctionNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 LambdaDetails& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
99 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
100 template <typename LastModifiedAtT = Aws::Utils::DateTime>
101 void SetLastModifiedAt(LastModifiedAtT&& value) {
102 m_lastModifiedAtHasBeenSet = true;
103 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
104 }
105 template <typename LastModifiedAtT = Aws::Utils::DateTime>
106 LambdaDetails& WithLastModifiedAt(LastModifiedAtT&& value) {
107 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
117 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
118 template <typename RevisionIdT = Aws::String>
119 void SetRevisionId(RevisionIdT&& value) {
120 m_revisionIdHasBeenSet = true;
121 m_revisionId = std::forward<RevisionIdT>(value);
122 }
123 template <typename RevisionIdT = Aws::String>
124 LambdaDetails& WithRevisionId(RevisionIdT&& value) {
125 SetRevisionId(std::forward<RevisionIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
135 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
136 template <typename FunctionVersionT = Aws::String>
137 void SetFunctionVersion(FunctionVersionT&& value) {
138 m_functionVersionHasBeenSet = true;
139 m_functionVersion = std::forward<FunctionVersionT>(value);
140 }
141 template <typename FunctionVersionT = Aws::String>
142 LambdaDetails& WithFunctionVersion(FunctionVersionT&& value) {
143 SetFunctionVersion(std::forward<FunctionVersionT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetRole() const { return m_role; }
153 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
154 template <typename RoleT = Aws::String>
155 void SetRole(RoleT&& value) {
156 m_roleHasBeenSet = true;
157 m_role = std::forward<RoleT>(value);
158 }
159 template <typename RoleT = Aws::String>
160 LambdaDetails& WithRole(RoleT&& value) {
161 SetRole(std::forward<RoleT>(value));
162 return *this;
163 }
165
167
171 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
172 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
173 template <typename VpcConfigT = VpcConfig>
174 void SetVpcConfig(VpcConfigT&& value) {
175 m_vpcConfigHasBeenSet = true;
176 m_vpcConfig = std::forward<VpcConfigT>(value);
177 }
178 template <typename VpcConfigT = VpcConfig>
179 LambdaDetails& WithVpcConfig(VpcConfigT&& value) {
180 SetVpcConfig(std::forward<VpcConfigT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 template <typename TagsT = Aws::Vector<Tag>>
193 void SetTags(TagsT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags = std::forward<TagsT>(value);
196 }
197 template <typename TagsT = Aws::Vector<Tag>>
198 LambdaDetails& WithTags(TagsT&& value) {
199 SetTags(std::forward<TagsT>(value));
200 return *this;
201 }
202 template <typename TagsT = Tag>
203 LambdaDetails& AddTags(TagsT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags.emplace_back(std::forward<TagsT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_functionArn;
211
212 Aws::String m_functionName;
213
214 Aws::String m_description;
215
216 Aws::Utils::DateTime m_lastModifiedAt{};
217
218 Aws::String m_revisionId;
219
220 Aws::String m_functionVersion;
221
222 Aws::String m_role;
223
224 VpcConfig m_vpcConfig;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_functionArnHasBeenSet = false;
228 bool m_functionNameHasBeenSet = false;
229 bool m_descriptionHasBeenSet = false;
230 bool m_lastModifiedAtHasBeenSet = false;
231 bool m_revisionIdHasBeenSet = false;
232 bool m_functionVersionHasBeenSet = false;
233 bool m_roleHasBeenSet = false;
234 bool m_vpcConfigHasBeenSet = false;
235 bool m_tagsHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace GuardDuty
240} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaDetails & WithFunctionArn(FunctionArnT &&value)
AWS_GUARDDUTY_API LambdaDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaDetails & AddTags(TagsT &&value)
const Aws::String & GetFunctionArn() const
LambdaDetails & WithRole(RoleT &&value)
LambdaDetails & WithFunctionName(FunctionNameT &&value)
void SetFunctionVersion(FunctionVersionT &&value)
const Aws::String & GetRevisionId() const
void SetVpcConfig(VpcConfigT &&value)
const Aws::String & GetDescription() const
void SetLastModifiedAt(LastModifiedAtT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetDescription(DescriptionT &&value)
LambdaDetails & WithVpcConfig(VpcConfigT &&value)
const Aws::String & GetRole() const
const Aws::String & GetFunctionVersion() const
LambdaDetails & WithDescription(DescriptionT &&value)
void SetFunctionName(FunctionNameT &&value)
const Aws::String & GetFunctionName() const
const Aws::Utils::DateTime & GetLastModifiedAt() const
LambdaDetails & WithFunctionVersion(FunctionVersionT &&value)
LambdaDetails & WithLastModifiedAt(LastModifiedAtT &&value)
AWS_GUARDDUTY_API LambdaDetails()=default
LambdaDetails & WithTags(TagsT &&value)
void SetRevisionId(RevisionIdT &&value)
void SetFunctionArn(FunctionArnT &&value)
AWS_GUARDDUTY_API LambdaDetails(Aws::Utils::Json::JsonView jsonValue)
const VpcConfig & GetVpcConfig() const
LambdaDetails & WithRevisionId(RevisionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue