AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LambdaDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/guardduty/model/VpcConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/guardduty/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GUARDDUTY_API LambdaDetails() = default;
40 AWS_GUARDDUTY_API LambdaDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API LambdaDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
50 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
51 template<typename FunctionArnT = Aws::String>
52 void SetFunctionArn(FunctionArnT&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::forward<FunctionArnT>(value); }
53 template<typename FunctionArnT = Aws::String>
54 LambdaDetails& WithFunctionArn(FunctionArnT&& value) { SetFunctionArn(std::forward<FunctionArnT>(value)); return *this;}
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) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
65 template<typename FunctionNameT = Aws::String>
66 LambdaDetails& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 LambdaDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
87 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
88 template<typename LastModifiedAtT = Aws::Utils::DateTime>
89 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
90 template<typename LastModifiedAtT = Aws::Utils::DateTime>
91 LambdaDetails& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
93
95
98 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
99 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
100 template<typename RevisionIdT = Aws::String>
101 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
102 template<typename RevisionIdT = Aws::String>
103 LambdaDetails& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
111 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
112 template<typename FunctionVersionT = Aws::String>
113 void SetFunctionVersion(FunctionVersionT&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::forward<FunctionVersionT>(value); }
114 template<typename FunctionVersionT = Aws::String>
115 LambdaDetails& WithFunctionVersion(FunctionVersionT&& value) { SetFunctionVersion(std::forward<FunctionVersionT>(value)); return *this;}
117
119
122 inline const Aws::String& GetRole() const { return m_role; }
123 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
124 template<typename RoleT = Aws::String>
125 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
126 template<typename RoleT = Aws::String>
127 LambdaDetails& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
129
131
135 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
136 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
137 template<typename VpcConfigT = VpcConfig>
138 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
139 template<typename VpcConfigT = VpcConfig>
140 LambdaDetails& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
142
144
148 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template<typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
152 template<typename TagsT = Aws::Vector<Tag>>
153 LambdaDetails& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
154 template<typename TagsT = Tag>
155 LambdaDetails& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
157 private:
158
159 Aws::String m_functionArn;
160 bool m_functionArnHasBeenSet = false;
161
162 Aws::String m_functionName;
163 bool m_functionNameHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
168 Aws::Utils::DateTime m_lastModifiedAt{};
169 bool m_lastModifiedAtHasBeenSet = false;
170
171 Aws::String m_revisionId;
172 bool m_revisionIdHasBeenSet = false;
173
174 Aws::String m_functionVersion;
175 bool m_functionVersionHasBeenSet = false;
176
177 Aws::String m_role;
178 bool m_roleHasBeenSet = false;
179
180 VpcConfig m_vpcConfig;
181 bool m_vpcConfigHasBeenSet = false;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_tagsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace GuardDuty
189} // 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