7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/InspectorServiceAttributes.h>
10#include <aws/inspector/model/AssetType.h>
11#include <aws/inspector/model/AssetAttributes.h>
12#include <aws/inspector/model/Severity.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/inspector/model/Attribute.h>
55 template<
typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
57 template<
typename ArnT = Aws::String>
67 inline void SetSchemaVersion(
int value) { m_schemaVersionHasBeenSet =
true; m_schemaVersion = value; }
77 template<
typename ServiceT = Aws::String>
78 void SetService(ServiceT&& value) { m_serviceHasBeenSet =
true; m_service = std::forward<ServiceT>(value); }
79 template<
typename ServiceT = Aws::String>
89 template<
typename ServiceAttributesT = InspectorServiceAttributes>
90 void SetServiceAttributes(ServiceAttributesT&& value) { m_serviceAttributesHasBeenSet =
true; m_serviceAttributes = std::forward<ServiceAttributesT>(value); }
91 template<
typename ServiceAttributesT = InspectorServiceAttributes>
112 template<
typename AssetAttributesT = AssetAttributes>
113 void SetAssetAttributes(AssetAttributesT&& value) { m_assetAttributesHasBeenSet =
true; m_assetAttributes = std::forward<AssetAttributesT>(value); }
114 template<
typename AssetAttributesT = AssetAttributes>
124 template<
typename IdT = Aws::String>
125 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
126 template<
typename IdT = Aws::String>
136 template<
typename TitleT = Aws::String>
137 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
138 template<
typename TitleT = Aws::String>
148 template<
typename DescriptionT = Aws::String>
149 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
150 template<
typename DescriptionT = Aws::String>
160 template<
typename RecommendationT = Aws::String>
161 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet =
true; m_recommendation = std::forward<RecommendationT>(value); }
162 template<
typename RecommendationT = Aws::String>
183 inline void SetNumericSeverity(
double value) { m_numericSeverityHasBeenSet =
true; m_numericSeverity = value; }
193 inline void SetConfidence(
int value) { m_confidenceHasBeenSet =
true; m_confidence = value; }
213 template<
typename AttributesT = Aws::Vector<Attribute>>
214 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
215 template<
typename AttributesT = Aws::Vector<Attribute>>
217 template<
typename AttributesT = Attribute>
218 Finding&
AddAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes.emplace_back(std::forward<AttributesT>(value));
return *
this; }
227 template<
typename UserAttributesT = Aws::Vector<Attribute>>
228 void SetUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet =
true; m_userAttributes = std::forward<UserAttributesT>(value); }
229 template<
typename UserAttributesT = Aws::Vector<Attribute>>
231 template<
typename UserAttributesT = Attribute>
232 Finding&
AddUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet =
true; m_userAttributes.emplace_back(std::forward<UserAttributesT>(value));
return *
this; }
241 template<
typename CreatedAtT = Aws::Utils::DateTime>
242 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
243 template<
typename CreatedAtT = Aws::Utils::DateTime>
253 template<
typename UpdatedAtT = Aws::Utils::DateTime>
254 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
255 template<
typename UpdatedAtT = Aws::Utils::DateTime>
261 bool m_arnHasBeenSet =
false;
263 int m_schemaVersion{0};
264 bool m_schemaVersionHasBeenSet =
false;
267 bool m_serviceHasBeenSet =
false;
269 InspectorServiceAttributes m_serviceAttributes;
270 bool m_serviceAttributesHasBeenSet =
false;
273 bool m_assetTypeHasBeenSet =
false;
275 AssetAttributes m_assetAttributes;
276 bool m_assetAttributesHasBeenSet =
false;
279 bool m_idHasBeenSet =
false;
282 bool m_titleHasBeenSet =
false;
285 bool m_descriptionHasBeenSet =
false;
288 bool m_recommendationHasBeenSet =
false;
291 bool m_severityHasBeenSet =
false;
293 double m_numericSeverity{0.0};
294 bool m_numericSeverityHasBeenSet =
false;
297 bool m_confidenceHasBeenSet =
false;
299 bool m_indicatorOfCompromise{
false};
300 bool m_indicatorOfCompromiseHasBeenSet =
false;
303 bool m_attributesHasBeenSet =
false;
306 bool m_userAttributesHasBeenSet =
false;
309 bool m_createdAtHasBeenSet =
false;
312 bool m_updatedAtHasBeenSet =
false;
void SetAssetType(AssetType value)
Finding & WithService(ServiceT &&value)
AssetType GetAssetType() const
Finding & WithArn(ArnT &&value)
bool TitleHasBeenSet() const
bool UpdatedAtHasBeenSet() const
bool IndicatorOfCompromiseHasBeenSet() const
bool ArnHasBeenSet() const
void SetUserAttributes(UserAttributesT &&value)
const Aws::Vector< Attribute > & GetUserAttributes() const
Finding & WithAssetType(AssetType value)
bool ServiceAttributesHasBeenSet() const
int GetSchemaVersion() const
void SetRecommendation(RecommendationT &&value)
bool IdHasBeenSet() const
void SetAssetAttributes(AssetAttributesT &&value)
void SetSeverity(Severity value)
bool NumericSeverityHasBeenSet() const
bool CreatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetId() const
double GetNumericSeverity() const
bool ServiceHasBeenSet() const
bool GetIndicatorOfCompromise() const
Finding & WithAssetAttributes(AssetAttributesT &&value)
bool ConfidenceHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_INSPECTOR_API Finding()=default
Finding & WithSchemaVersion(int value)
bool AssetAttributesHasBeenSet() const
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & WithDescription(DescriptionT &&value)
const InspectorServiceAttributes & GetServiceAttributes() const
void SetNumericSeverity(double value)
void SetTitle(TitleT &&value)
void SetServiceAttributes(ServiceAttributesT &&value)
bool SchemaVersionHasBeenSet() const
Finding & AddUserAttributes(UserAttributesT &&value)
Finding & WithAttributes(AttributesT &&value)
Finding & WithRecommendation(RecommendationT &&value)
bool RecommendationHasBeenSet() const
void SetIndicatorOfCompromise(bool value)
AWS_INSPECTOR_API Finding(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
const AssetAttributes & GetAssetAttributes() const
Finding & WithUserAttributes(UserAttributesT &&value)
bool DescriptionHasBeenSet() const
Finding & WithIndicatorOfCompromise(bool value)
bool UserAttributesHasBeenSet() const
void SetArn(ArnT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
void SetUpdatedAt(UpdatedAtT &&value)
Finding & WithTitle(TitleT &&value)
Finding & WithConfidence(int value)
Finding & WithServiceAttributes(ServiceAttributesT &&value)
Finding & WithId(IdT &&value)
Finding & WithSeverity(Severity value)
const Aws::String & GetRecommendation() const
bool AttributesHasBeenSet() const
int GetConfidence() const
const Aws::String & GetService() const
void SetCreatedAt(CreatedAtT &&value)
bool AssetTypeHasBeenSet() const
AWS_INSPECTOR_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Finding & AddAttributes(AttributesT &&value)
bool SeverityHasBeenSet() const
Finding & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetTitle() const
Finding & WithCreatedAt(CreatedAtT &&value)
void SetConfidence(int value)
Severity GetSeverity() const
Finding & WithNumericSeverity(double value)
void SetAttributes(AttributesT &&value)
void SetService(ServiceT &&value)
void SetSchemaVersion(int value)
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue