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

A response that contains details on the results of a finding aggregation by * title.

See Also:

AWS * API Reference

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

The ID of the Amazon Web Services account associated with the findings.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline TitleAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline TitleAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account associated with the findings.

*/ inline TitleAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

An object that represent the count of matched findings per severity.

*/ inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } /** *

An object that represent the count of matched findings per severity.

*/ inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } /** *

An object that represent the count of matched findings per severity.

*/ inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } /** *

An object that represent the count of matched findings per severity.

*/ inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); } /** *

An object that represent the count of matched findings per severity.

*/ inline TitleAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;} /** *

An object that represent the count of matched findings per severity.

*/ inline TitleAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;} /** *

The title that the findings were aggregated on.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title that the findings were aggregated on.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title that the findings were aggregated on.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title that the findings were aggregated on.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title that the findings were aggregated on.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title that the findings were aggregated on.

*/ inline TitleAggregationResponse& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title that the findings were aggregated on.

*/ inline TitleAggregationResponse& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title that the findings were aggregated on.

*/ inline TitleAggregationResponse& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The vulnerability ID of the finding.

*/ inline const Aws::String& GetVulnerabilityId() const{ return m_vulnerabilityId; } /** *

The vulnerability ID of the finding.

*/ inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; } /** *

The vulnerability ID of the finding.

*/ inline void SetVulnerabilityId(const Aws::String& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = value; } /** *

The vulnerability ID of the finding.

*/ inline void SetVulnerabilityId(Aws::String&& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = std::move(value); } /** *

The vulnerability ID of the finding.

*/ inline void SetVulnerabilityId(const char* value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId.assign(value); } /** *

The vulnerability ID of the finding.

*/ inline TitleAggregationResponse& WithVulnerabilityId(const Aws::String& value) { SetVulnerabilityId(value); return *this;} /** *

The vulnerability ID of the finding.

*/ inline TitleAggregationResponse& WithVulnerabilityId(Aws::String&& value) { SetVulnerabilityId(std::move(value)); return *this;} /** *

The vulnerability ID of the finding.

*/ inline TitleAggregationResponse& WithVulnerabilityId(const char* value) { SetVulnerabilityId(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_vulnerabilityId; bool m_vulnerabilityIdHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws