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

Provides information about sensitive data that was detected by managed data * identifiers and produced a sensitive data finding.

See Also:

AWS * API Reference

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

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

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

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

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

The total number of occurrences of the type of 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 data that was detected.

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

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

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

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

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

The type of 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 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 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 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 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 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; Aws::String m_type; bool m_typeHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws