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

The number of managed nodes found for each patch severity level defined in * the request filter.

See Also:

AWS * API Reference

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

The total number of resources or compliance items that have a severity level * of Critical. Critical severity is determined by the organization * that published the compliance items.

*/ inline int GetCriticalCount() const{ return m_criticalCount; } /** *

The total number of resources or compliance items that have a severity level * of Critical. Critical severity is determined by the organization * that published the compliance items.

*/ inline bool CriticalCountHasBeenSet() const { return m_criticalCountHasBeenSet; } /** *

The total number of resources or compliance items that have a severity level * of Critical. Critical severity is determined by the organization * that published the compliance items.

*/ inline void SetCriticalCount(int value) { m_criticalCountHasBeenSet = true; m_criticalCount = value; } /** *

The total number of resources or compliance items that have a severity level * of Critical. Critical severity is determined by the organization * that published the compliance items.

*/ inline SeveritySummary& WithCriticalCount(int value) { SetCriticalCount(value); return *this;} /** *

The total number of resources or compliance items that have a severity level * of high. High severity is determined by the organization that published the * compliance items.

*/ inline int GetHighCount() const{ return m_highCount; } /** *

The total number of resources or compliance items that have a severity level * of high. High severity is determined by the organization that published the * compliance items.

*/ inline bool HighCountHasBeenSet() const { return m_highCountHasBeenSet; } /** *

The total number of resources or compliance items that have a severity level * of high. High severity is determined by the organization that published the * compliance items.

*/ inline void SetHighCount(int value) { m_highCountHasBeenSet = true; m_highCount = value; } /** *

The total number of resources or compliance items that have a severity level * of high. High severity is determined by the organization that published the * compliance items.

*/ inline SeveritySummary& WithHighCount(int value) { SetHighCount(value); return *this;} /** *

The total number of resources or compliance items that have a severity level * of medium. Medium severity is determined by the organization that published the * compliance items.

*/ inline int GetMediumCount() const{ return m_mediumCount; } /** *

The total number of resources or compliance items that have a severity level * of medium. Medium severity is determined by the organization that published the * compliance items.

*/ inline bool MediumCountHasBeenSet() const { return m_mediumCountHasBeenSet; } /** *

The total number of resources or compliance items that have a severity level * of medium. Medium severity is determined by the organization that published the * compliance items.

*/ inline void SetMediumCount(int value) { m_mediumCountHasBeenSet = true; m_mediumCount = value; } /** *

The total number of resources or compliance items that have a severity level * of medium. Medium severity is determined by the organization that published the * compliance items.

*/ inline SeveritySummary& WithMediumCount(int value) { SetMediumCount(value); return *this;} /** *

The total number of resources or compliance items that have a severity level * of low. Low severity is determined by the organization that published the * compliance items.

*/ inline int GetLowCount() const{ return m_lowCount; } /** *

The total number of resources or compliance items that have a severity level * of low. Low severity is determined by the organization that published the * compliance items.

*/ inline bool LowCountHasBeenSet() const { return m_lowCountHasBeenSet; } /** *

The total number of resources or compliance items that have a severity level * of low. Low severity is determined by the organization that published the * compliance items.

*/ inline void SetLowCount(int value) { m_lowCountHasBeenSet = true; m_lowCount = value; } /** *

The total number of resources or compliance items that have a severity level * of low. Low severity is determined by the organization that published the * compliance items.

*/ inline SeveritySummary& WithLowCount(int value) { SetLowCount(value); return *this;} /** *

The total number of resources or compliance items that have a severity level * of informational. Informational severity is determined by the organization that * published the compliance items.

*/ inline int GetInformationalCount() const{ return m_informationalCount; } /** *

The total number of resources or compliance items that have a severity level * of informational. Informational severity is determined by the organization that * published the compliance items.

*/ inline bool InformationalCountHasBeenSet() const { return m_informationalCountHasBeenSet; } /** *

The total number of resources or compliance items that have a severity level * of informational. Informational severity is determined by the organization that * published the compliance items.

*/ inline void SetInformationalCount(int value) { m_informationalCountHasBeenSet = true; m_informationalCount = value; } /** *

The total number of resources or compliance items that have a severity level * of informational. Informational severity is determined by the organization that * published the compliance items.

*/ inline SeveritySummary& WithInformationalCount(int value) { SetInformationalCount(value); return *this;} /** *

The total number of resources or compliance items that have a severity level * of unspecified. Unspecified severity is determined by the organization that * published the compliance items.

*/ inline int GetUnspecifiedCount() const{ return m_unspecifiedCount; } /** *

The total number of resources or compliance items that have a severity level * of unspecified. Unspecified severity is determined by the organization that * published the compliance items.

*/ inline bool UnspecifiedCountHasBeenSet() const { return m_unspecifiedCountHasBeenSet; } /** *

The total number of resources or compliance items that have a severity level * of unspecified. Unspecified severity is determined by the organization that * published the compliance items.

*/ inline void SetUnspecifiedCount(int value) { m_unspecifiedCountHasBeenSet = true; m_unspecifiedCount = value; } /** *

The total number of resources or compliance items that have a severity level * of unspecified. Unspecified severity is determined by the organization that * published the compliance items.

*/ inline SeveritySummary& WithUnspecifiedCount(int value) { SetUnspecifiedCount(value); return *this;} private: int m_criticalCount; bool m_criticalCountHasBeenSet = false; int m_highCount; bool m_highCountHasBeenSet = false; int m_mediumCount; bool m_mediumCountHasBeenSet = false; int m_lowCount; bool m_lowCountHasBeenSet = false; int m_informationalCount; bool m_informationalCountHasBeenSet = false; int m_unspecifiedCount; bool m_unspecifiedCountHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws