/** * 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 was detected by a * managed data identifier and produced a sensitive data finding.

See * Also:

AWS * API Reference

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

The total number of occurrences of the type of sensitive data that was * detected.

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

The total number of occurrences of the type of sensitive data that was * detected.

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

The total number of occurrences of the type of sensitive data that was * detected.

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

The total number of occurrences of the type of sensitive data that was * detected.

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

The location of 1-15 occurrences of the sensitive data that was detected. A * finding includes location data for a maximum of 15 occurrences of sensitive * data.

*/ inline const Occurrences& GetOccurrences() const{ return m_occurrences; } /** *

The location of 1-15 occurrences of the sensitive data that was detected. A * finding includes location data for a maximum of 15 occurrences of sensitive * data.

*/ inline bool OccurrencesHasBeenSet() const { return m_occurrencesHasBeenSet; } /** *

The location of 1-15 occurrences of the sensitive data that was detected. A * finding includes location data for a maximum of 15 occurrences of sensitive * data.

*/ inline void SetOccurrences(const Occurrences& value) { m_occurrencesHasBeenSet = true; m_occurrences = value; } /** *

The location of 1-15 occurrences of the sensitive data that was detected. A * finding includes location data for a maximum of 15 occurrences of sensitive * data.

*/ inline void SetOccurrences(Occurrences&& value) { m_occurrencesHasBeenSet = true; m_occurrences = std::move(value); } /** *

The location of 1-15 occurrences of the sensitive data that was detected. A * finding includes location data for a maximum of 15 occurrences of sensitive * data.

*/ inline DefaultDetection& WithOccurrences(const Occurrences& value) { SetOccurrences(value); return *this;} /** *

The location of 1-15 occurrences of the sensitive data that was detected. A * finding includes location data for a maximum of 15 occurrences of sensitive * data.

*/ inline DefaultDetection& WithOccurrences(Occurrences&& value) { SetOccurrences(std::move(value)); return *this;} /** *

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

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

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

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

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

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

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

*/ inline DefaultDetection& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

*/ inline DefaultDetection& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of sensitive data that was detected. For example, AWS_CREDENTIALS, * PHONE_NUMBER, or ADDRESS.

*/ inline DefaultDetection& WithType(const char* value) { SetType(value); return *this;} private: long long m_count; bool m_countHasBeenSet = false; Occurrences m_occurrences; bool m_occurrencesHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws