/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the finding, which is generated when abnormal or
* suspicious activity is detected.See Also:
AWS
* API Reference
The ID of the account in which the finding was generated.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The ID of the account in which the finding was generated.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The ID of the account in which the finding was generated.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The ID of the account in which the finding was generated.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The ID of the account in which the finding was generated.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The ID of the account in which the finding was generated.
*/ inline Finding& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The ID of the account in which the finding was generated.
*/ inline Finding& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The ID of the account in which the finding was generated.
*/ inline Finding& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The ARN of the finding.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the finding.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the finding.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the finding.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the finding.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the finding.
*/ inline Finding& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the finding.
*/ inline Finding& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the finding.
*/ inline Finding& WithArn(const char* value) { SetArn(value); return *this;} /** *The confidence score for the finding.
*/ inline double GetConfidence() const{ return m_confidence; } /** *The confidence score for the finding.
*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *The confidence score for the finding.
*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *The confidence score for the finding.
*/ inline Finding& WithConfidence(double value) { SetConfidence(value); return *this;} /** *The time and date when the finding was created.
*/ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** *The time and date when the finding was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time and date when the finding was created.
*/ inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time and date when the finding was created.
*/ inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time and date when the finding was created.
*/ inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); } /** *The time and date when the finding was created.
*/ inline Finding& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** *The time and date when the finding was created.
*/ inline Finding& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The time and date when the finding was created.
*/ inline Finding& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** *The description of the finding.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the finding.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the finding.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the finding.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the finding.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the finding.
*/ inline Finding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the finding.
*/ inline Finding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the finding.
*/ inline Finding& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The ID of the finding.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the finding.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the finding.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the finding.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the finding.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the finding.
*/ inline Finding& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the finding.
*/ inline Finding& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the finding.
*/ inline Finding& WithId(const char* value) { SetId(value); return *this;} /** *The partition associated with the finding.
*/ inline const Aws::String& GetPartition() const{ return m_partition; } /** *The partition associated with the finding.
*/ inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; } /** *The partition associated with the finding.
*/ inline void SetPartition(const Aws::String& value) { m_partitionHasBeenSet = true; m_partition = value; } /** *The partition associated with the finding.
*/ inline void SetPartition(Aws::String&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); } /** *The partition associated with the finding.
*/ inline void SetPartition(const char* value) { m_partitionHasBeenSet = true; m_partition.assign(value); } /** *The partition associated with the finding.
*/ inline Finding& WithPartition(const Aws::String& value) { SetPartition(value); return *this;} /** *The partition associated with the finding.
*/ inline Finding& WithPartition(Aws::String&& value) { SetPartition(std::move(value)); return *this;} /** *The partition associated with the finding.
*/ inline Finding& WithPartition(const char* value) { SetPartition(value); return *this;} /** *The Region where the finding was generated.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The Region where the finding was generated.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The Region where the finding was generated.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The Region where the finding was generated.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The Region where the finding was generated.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The Region where the finding was generated.
*/ inline Finding& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The Region where the finding was generated.
*/ inline Finding& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The Region where the finding was generated.
*/ inline Finding& WithRegion(const char* value) { SetRegion(value); return *this;} inline const Resource& GetResource() const{ return m_resource; } inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } inline void SetResource(const Resource& value) { m_resourceHasBeenSet = true; m_resource = value; } inline void SetResource(Resource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } inline Finding& WithResource(const Resource& value) { SetResource(value); return *this;} inline Finding& WithResource(Resource&& value) { SetResource(std::move(value)); return *this;} /** *The version of the schema used for the finding.
*/ inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; } /** *The version of the schema used for the finding.
*/ inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; } /** *The version of the schema used for the finding.
*/ inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; } /** *The version of the schema used for the finding.
*/ inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); } /** *The version of the schema used for the finding.
*/ inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); } /** *The version of the schema used for the finding.
*/ inline Finding& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;} /** *The version of the schema used for the finding.
*/ inline Finding& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;} /** *The version of the schema used for the finding.
*/ inline Finding& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;} inline const Service& GetService() const{ return m_service; } inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } inline void SetService(const Service& value) { m_serviceHasBeenSet = true; m_service = value; } inline void SetService(Service&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } inline Finding& WithService(const Service& value) { SetService(value); return *this;} inline Finding& WithService(Service&& value) { SetService(std::move(value)); return *this;} /** *The severity of the finding.
*/ inline double GetSeverity() const{ return m_severity; } /** *The severity of the finding.
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the finding.
*/ inline void SetSeverity(double value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the finding.
*/ inline Finding& WithSeverity(double value) { SetSeverity(value); return *this;} /** *The title of the finding.
*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *The title of the finding.
*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *The title of the finding.
*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *The title of the finding.
*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *The title of the finding.
*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *The title of the finding.
*/ inline Finding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *The title of the finding.
*/ inline Finding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *The title of the finding.
*/ inline Finding& WithTitle(const char* value) { SetTitle(value); return *this;} /** *The type of finding.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The type of finding.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of finding.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of finding.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of finding.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The type of finding.
*/ inline Finding& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The type of finding.
*/ inline Finding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The type of finding.
*/ inline Finding& WithType(const char* value) { SetType(value); return *this;} /** *The time and date when the finding was last updated.
*/ inline const Aws::String& GetUpdatedAt() const{ return m_updatedAt; } /** *The time and date when the finding was last updated.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The time and date when the finding was last updated.
*/ inline void SetUpdatedAt(const Aws::String& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The time and date when the finding was last updated.
*/ inline void SetUpdatedAt(Aws::String&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The time and date when the finding was last updated.
*/ inline void SetUpdatedAt(const char* value) { m_updatedAtHasBeenSet = true; m_updatedAt.assign(value); } /** *The time and date when the finding was last updated.
*/ inline Finding& WithUpdatedAt(const Aws::String& value) { SetUpdatedAt(value); return *this;} /** *The time and date when the finding was last updated.
*/ inline Finding& WithUpdatedAt(Aws::String&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *The time and date when the finding was last updated.
*/ inline Finding& WithUpdatedAt(const char* value) { SetUpdatedAt(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; Aws::String m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_partition; bool m_partitionHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Resource m_resource; bool m_resourceHasBeenSet = false; Aws::String m_schemaVersion; bool m_schemaVersionHasBeenSet = false; Service m_service; bool m_serviceHasBeenSet = false; double m_severity; bool m_severityHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws