AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeSecurityIntegrationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/IntegrationStatus.h>
12#include <aws/inspector2/model/IntegrationType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API CodeSecurityIntegrationSummary() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetIntegrationArn() const { return m_integrationArn; }
44 inline bool IntegrationArnHasBeenSet() const { return m_integrationArnHasBeenSet; }
45 template <typename IntegrationArnT = Aws::String>
46 void SetIntegrationArn(IntegrationArnT&& value) {
47 m_integrationArnHasBeenSet = true;
48 m_integrationArn = std::forward<IntegrationArnT>(value);
49 }
50 template <typename IntegrationArnT = Aws::String>
52 SetIntegrationArn(std::forward<IntegrationArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline IntegrationType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(IntegrationType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
95 inline IntegrationStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(IntegrationStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
112 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
113 template <typename StatusReasonT = Aws::String>
114 void SetStatusReason(StatusReasonT&& value) {
115 m_statusReasonHasBeenSet = true;
116 m_statusReason = std::forward<StatusReasonT>(value);
117 }
118 template <typename StatusReasonT = Aws::String>
120 SetStatusReason(std::forward<StatusReasonT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
130 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
131 template <typename CreatedOnT = Aws::Utils::DateTime>
132 void SetCreatedOn(CreatedOnT&& value) {
133 m_createdOnHasBeenSet = true;
134 m_createdOn = std::forward<CreatedOnT>(value);
135 }
136 template <typename CreatedOnT = Aws::Utils::DateTime>
138 SetCreatedOn(std::forward<CreatedOnT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetLastUpdateOn() const { return m_lastUpdateOn; }
148 inline bool LastUpdateOnHasBeenSet() const { return m_lastUpdateOnHasBeenSet; }
149 template <typename LastUpdateOnT = Aws::Utils::DateTime>
150 void SetLastUpdateOn(LastUpdateOnT&& value) {
151 m_lastUpdateOnHasBeenSet = true;
152 m_lastUpdateOn = std::forward<LastUpdateOnT>(value);
153 }
154 template <typename LastUpdateOnT = Aws::Utils::DateTime>
156 SetLastUpdateOn(std::forward<LastUpdateOnT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 CodeSecurityIntegrationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_integrationArn;
186
187 Aws::String m_name;
188
190
192
193 Aws::String m_statusReason;
194
195 Aws::Utils::DateTime m_createdOn{};
196
197 Aws::Utils::DateTime m_lastUpdateOn{};
198
200 bool m_integrationArnHasBeenSet = false;
201 bool m_nameHasBeenSet = false;
202 bool m_typeHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_statusReasonHasBeenSet = false;
205 bool m_createdOnHasBeenSet = false;
206 bool m_lastUpdateOnHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace Inspector2
212} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CodeSecurityIntegrationSummary & WithStatus(IntegrationStatus value)
AWS_INSPECTOR2_API CodeSecurityIntegrationSummary(Aws::Utils::Json::JsonView jsonValue)
CodeSecurityIntegrationSummary & WithCreatedOn(CreatedOnT &&value)
CodeSecurityIntegrationSummary & WithName(NameT &&value)
CodeSecurityIntegrationSummary & WithType(IntegrationType value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CodeSecurityIntegrationSummary & WithIntegrationArn(IntegrationArnT &&value)
CodeSecurityIntegrationSummary & WithTags(TagsT &&value)
CodeSecurityIntegrationSummary & WithLastUpdateOn(LastUpdateOnT &&value)
CodeSecurityIntegrationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_INSPECTOR2_API CodeSecurityIntegrationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeSecurityIntegrationSummary & WithStatusReason(StatusReasonT &&value)
AWS_INSPECTOR2_API CodeSecurityIntegrationSummary()=default
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