/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Provides information about a type of sensitive data that Amazon Macie found * in an S3 bucket while performing automated sensitive data discovery for the * bucket. The information also specifies the custom data identifier or managed * data identifier that detected the data. This information is available only if * automated sensitive data discovery is currently enabled for your * account.

See Also:

AWS * API Reference

*/ class Detection { public: AWS_MACIE2_API Detection(); AWS_MACIE2_API Detection(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Detection& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline Detection& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline Detection& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

If the sensitive data was detected by a custom data identifier, the Amazon * Resource Name (ARN) of the custom data identifier that detected the data. * Otherwise, this value is null.

*/ inline Detection& WithArn(const char* value) { SetArn(value); return *this;} /** *

The total number of occurrences of the sensitive data.

*/ inline long long GetCount() const{ return m_count; } /** *

The total number of occurrences of the sensitive data.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The total number of occurrences of the sensitive data.

*/ inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; } /** *

The total number of occurrences of the sensitive data.

*/ inline Detection& WithCount(long long value) { SetCount(value); return *this;} /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline Detection& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline Detection& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the custom data identifier or managed data * identifier that detected the sensitive data. For additional details about a * specified managed data identifier, see Using * managed data identifiers in the Amazon Macie User Guide.

*/ inline Detection& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline Detection& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline Detection& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the custom data identifier or managed data identifier that * detected the sensitive data. For a managed data identifier, this value is the * same as the unique identifier (id).

*/ inline Detection& WithName(const char* value) { SetName(value); return *this;} /** *

Specifies whether occurrences of this type of sensitive data are excluded * (true) or included (false) in the bucket's sensitivity score.

*/ inline bool GetSuppressed() const{ return m_suppressed; } /** *

Specifies whether occurrences of this type of sensitive data are excluded * (true) or included (false) in the bucket's sensitivity score.

*/ inline bool SuppressedHasBeenSet() const { return m_suppressedHasBeenSet; } /** *

Specifies whether occurrences of this type of sensitive data are excluded * (true) or included (false) in the bucket's sensitivity score.

*/ inline void SetSuppressed(bool value) { m_suppressedHasBeenSet = true; m_suppressed = value; } /** *

Specifies whether occurrences of this type of sensitive data are excluded * (true) or included (false) in the bucket's sensitivity score.

*/ inline Detection& WithSuppressed(bool value) { SetSuppressed(value); return *this;} /** *

The type of data identifier that detected the sensitive data. Possible values * are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data * identifier.

*/ inline const DataIdentifierType& GetType() const{ return m_type; } /** *

The type of data identifier that detected the sensitive data. Possible values * are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data * identifier.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of data identifier that detected the sensitive data. Possible values * are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data * identifier.

*/ inline void SetType(const DataIdentifierType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of data identifier that detected the sensitive data. Possible values * are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data * identifier.

*/ inline void SetType(DataIdentifierType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of data identifier that detected the sensitive data. Possible values * are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data * identifier.

*/ inline Detection& WithType(const DataIdentifierType& value) { SetType(value); return *this;} /** *

The type of data identifier that detected the sensitive data. Possible values * are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data * identifier.

*/ inline Detection& WithType(DataIdentifierType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; long long m_count; bool m_countHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; bool m_suppressed; bool m_suppressedHasBeenSet = false; DataIdentifierType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws