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

A single attack statistics data record. This is returned by * DescribeAttackStatistics along with a time range indicating the time * period that the attack statistics apply to.

See Also:

AWS * API Reference

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

Information about the volume of attacks during the time period. If the * accompanying AttackCount is zero, this setting might be empty.

*/ inline const AttackVolume& GetAttackVolume() const{ return m_attackVolume; } /** *

Information about the volume of attacks during the time period. If the * accompanying AttackCount is zero, this setting might be empty.

*/ inline bool AttackVolumeHasBeenSet() const { return m_attackVolumeHasBeenSet; } /** *

Information about the volume of attacks during the time period. If the * accompanying AttackCount is zero, this setting might be empty.

*/ inline void SetAttackVolume(const AttackVolume& value) { m_attackVolumeHasBeenSet = true; m_attackVolume = value; } /** *

Information about the volume of attacks during the time period. If the * accompanying AttackCount is zero, this setting might be empty.

*/ inline void SetAttackVolume(AttackVolume&& value) { m_attackVolumeHasBeenSet = true; m_attackVolume = std::move(value); } /** *

Information about the volume of attacks during the time period. If the * accompanying AttackCount is zero, this setting might be empty.

*/ inline AttackStatisticsDataItem& WithAttackVolume(const AttackVolume& value) { SetAttackVolume(value); return *this;} /** *

Information about the volume of attacks during the time period. If the * accompanying AttackCount is zero, this setting might be empty.

*/ inline AttackStatisticsDataItem& WithAttackVolume(AttackVolume&& value) { SetAttackVolume(std::move(value)); return *this;} /** *

The number of attacks detected during the time period. This is always * present, but might be zero.

*/ inline long long GetAttackCount() const{ return m_attackCount; } /** *

The number of attacks detected during the time period. This is always * present, but might be zero.

*/ inline bool AttackCountHasBeenSet() const { return m_attackCountHasBeenSet; } /** *

The number of attacks detected during the time period. This is always * present, but might be zero.

*/ inline void SetAttackCount(long long value) { m_attackCountHasBeenSet = true; m_attackCount = value; } /** *

The number of attacks detected during the time period. This is always * present, but might be zero.

*/ inline AttackStatisticsDataItem& WithAttackCount(long long value) { SetAttackCount(value); return *this;} private: AttackVolume m_attackVolume; bool m_attackVolumeHasBeenSet = false; long long m_attackCount; bool m_attackCountHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws