AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
LambdaFunction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
29 public:
30 AWS_GUARDDUTY_API LambdaFunction() = default;
31 AWS_GUARDDUTY_API LambdaFunction(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFunctionName() const { return m_functionName; }
40 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
41 template <typename FunctionNameT = Aws::String>
42 void SetFunctionName(FunctionNameT&& value) {
43 m_functionNameHasBeenSet = true;
44 m_functionName = std::forward<FunctionNameT>(value);
45 }
46 template <typename FunctionNameT = Aws::String>
47 LambdaFunction& WithFunctionName(FunctionNameT&& value) {
48 SetFunctionName(std::forward<FunctionNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
58 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
59 template <typename FunctionArnT = Aws::String>
60 void SetFunctionArn(FunctionArnT&& value) {
61 m_functionArnHasBeenSet = true;
62 m_functionArn = std::forward<FunctionArnT>(value);
63 }
64 template <typename FunctionArnT = Aws::String>
65 LambdaFunction& WithFunctionArn(FunctionArnT&& value) {
66 SetFunctionArn(std::forward<FunctionArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
76 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
77 template <typename FunctionVersionT = Aws::String>
78 void SetFunctionVersion(FunctionVersionT&& value) {
79 m_functionVersionHasBeenSet = true;
80 m_functionVersion = std::forward<FunctionVersionT>(value);
81 }
82 template <typename FunctionVersionT = Aws::String>
83 LambdaFunction& WithFunctionVersion(FunctionVersionT&& value) {
84 SetFunctionVersion(std::forward<FunctionVersionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRole() const { return m_role; }
94 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
95 template <typename RoleT = Aws::String>
96 void SetRole(RoleT&& value) {
97 m_roleHasBeenSet = true;
98 m_role = std::forward<RoleT>(value);
99 }
100 template <typename RoleT = Aws::String>
101 LambdaFunction& WithRole(RoleT&& value) {
102 SetRole(std::forward<RoleT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 template <typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) {
115 m_descriptionHasBeenSet = true;
116 m_description = std::forward<DescriptionT>(value);
117 }
118 template <typename DescriptionT = Aws::String>
119 LambdaFunction& WithDescription(DescriptionT&& value) {
120 SetDescription(std::forward<DescriptionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
130 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
131 template <typename RevisionIdT = Aws::String>
132 void SetRevisionId(RevisionIdT&& value) {
133 m_revisionIdHasBeenSet = true;
134 m_revisionId = std::forward<RevisionIdT>(value);
135 }
136 template <typename RevisionIdT = Aws::String>
137 LambdaFunction& WithRevisionId(RevisionIdT&& value) {
138 SetRevisionId(std::forward<RevisionIdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
155 LambdaFunction& WithUpdatedAt(UpdatedAtT&& value) {
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetVpcConfigurationSummary() const { return m_vpcConfigurationSummary; }
166 inline bool VpcConfigurationSummaryHasBeenSet() const { return m_vpcConfigurationSummaryHasBeenSet; }
167 template <typename VpcConfigurationSummaryT = Aws::String>
168 void SetVpcConfigurationSummary(VpcConfigurationSummaryT&& value) {
169 m_vpcConfigurationSummaryHasBeenSet = true;
170 m_vpcConfigurationSummary = std::forward<VpcConfigurationSummaryT>(value);
171 }
172 template <typename VpcConfigurationSummaryT = Aws::String>
173 LambdaFunction& WithVpcConfigurationSummary(VpcConfigurationSummaryT&& value) {
174 SetVpcConfigurationSummary(std::forward<VpcConfigurationSummaryT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_functionName;
180
181 Aws::String m_functionArn;
182
183 Aws::String m_functionVersion;
184
185 Aws::String m_role;
186
187 Aws::String m_description;
188
189 Aws::String m_revisionId;
190
191 Aws::Utils::DateTime m_updatedAt{};
192
193 Aws::String m_vpcConfigurationSummary;
194 bool m_functionNameHasBeenSet = false;
195 bool m_functionArnHasBeenSet = false;
196 bool m_functionVersionHasBeenSet = false;
197 bool m_roleHasBeenSet = false;
198 bool m_descriptionHasBeenSet = false;
199 bool m_revisionIdHasBeenSet = false;
200 bool m_updatedAtHasBeenSet = false;
201 bool m_vpcConfigurationSummaryHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace GuardDuty
206} // namespace Aws
const Aws::String & GetFunctionVersion() const
LambdaFunction & WithFunctionVersion(FunctionVersionT &&value)
LambdaFunction & WithFunctionArn(FunctionArnT &&value)
const Aws::String & GetRevisionId() const
const Aws::String & GetRole() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_GUARDDUTY_API LambdaFunction()=default
LambdaFunction & WithRole(RoleT &&value)
LambdaFunction & WithRevisionId(RevisionIdT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetVpcConfigurationSummary() const
void SetVpcConfigurationSummary(VpcConfigurationSummaryT &&value)
LambdaFunction & WithUpdatedAt(UpdatedAtT &&value)
void SetRevisionId(RevisionIdT &&value)
LambdaFunction & WithDescription(DescriptionT &&value)
const Aws::String & GetFunctionArn() const
void SetFunctionArn(FunctionArnT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFunctionName() const
void SetFunctionVersion(FunctionVersionT &&value)
AWS_GUARDDUTY_API LambdaFunction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
void SetUpdatedAt(UpdatedAtT &&value)
LambdaFunction & WithVpcConfigurationSummary(VpcConfigurationSummaryT &&value)
LambdaFunction & WithFunctionName(FunctionNameT &&value)
void SetFunctionName(FunctionNameT &&value)
AWS_GUARDDUTY_API LambdaFunction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue