/** * 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 CodeGuruSecurity { namespace Model { /** *

Information about a scan with open findings.

See Also:

AWS * API Reference

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

The number of open findings generated by a scan.

*/ inline int GetFindingNumber() const{ return m_findingNumber; } /** *

The number of open findings generated by a scan.

*/ inline bool FindingNumberHasBeenSet() const { return m_findingNumberHasBeenSet; } /** *

The number of open findings generated by a scan.

*/ inline void SetFindingNumber(int value) { m_findingNumberHasBeenSet = true; m_findingNumber = value; } /** *

The number of open findings generated by a scan.

*/ inline ScanNameWithFindingNum& WithFindingNumber(int value) { SetFindingNumber(value); return *this;} /** *

The name of the scan.

*/ inline const Aws::String& GetScanName() const{ return m_scanName; } /** *

The name of the scan.

*/ inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; } /** *

The name of the scan.

*/ inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; } /** *

The name of the scan.

*/ inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); } /** *

The name of the scan.

*/ inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); } /** *

The name of the scan.

*/ inline ScanNameWithFindingNum& WithScanName(const Aws::String& value) { SetScanName(value); return *this;} /** *

The name of the scan.

*/ inline ScanNameWithFindingNum& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;} /** *

The name of the scan.

*/ inline ScanNameWithFindingNum& WithScanName(const char* value) { SetScanName(value); return *this;} private: int m_findingNumber; bool m_findingNumberHasBeenSet = false; Aws::String m_scanName; bool m_scanNameHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws