/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Shield { namespace Model { class DescribeAttackStatisticsResult { public: AWS_SHIELD_API DescribeAttackStatisticsResult(); AWS_SHIELD_API DescribeAttackStatisticsResult(const Aws::AmazonWebServiceResult& result); AWS_SHIELD_API DescribeAttackStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The time range of the attack.

*/ inline const TimeRange& GetTimeRange() const{ return m_timeRange; } /** *

The time range of the attack.

*/ inline void SetTimeRange(const TimeRange& value) { m_timeRange = value; } /** *

The time range of the attack.

*/ inline void SetTimeRange(TimeRange&& value) { m_timeRange = std::move(value); } /** *

The time range of the attack.

*/ inline DescribeAttackStatisticsResult& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;} /** *

The time range of the attack.

*/ inline DescribeAttackStatisticsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;} /** *

The data that describes the attacks detected during the time period.

*/ inline const Aws::Vector& GetDataItems() const{ return m_dataItems; } /** *

The data that describes the attacks detected during the time period.

*/ inline void SetDataItems(const Aws::Vector& value) { m_dataItems = value; } /** *

The data that describes the attacks detected during the time period.

*/ inline void SetDataItems(Aws::Vector&& value) { m_dataItems = std::move(value); } /** *

The data that describes the attacks detected during the time period.

*/ inline DescribeAttackStatisticsResult& WithDataItems(const Aws::Vector& value) { SetDataItems(value); return *this;} /** *

The data that describes the attacks detected during the time period.

*/ inline DescribeAttackStatisticsResult& WithDataItems(Aws::Vector&& value) { SetDataItems(std::move(value)); return *this;} /** *

The data that describes the attacks detected during the time period.

*/ inline DescribeAttackStatisticsResult& AddDataItems(const AttackStatisticsDataItem& value) { m_dataItems.push_back(value); return *this; } /** *

The data that describes the attacks detected during the time period.

*/ inline DescribeAttackStatisticsResult& AddDataItems(AttackStatisticsDataItem&& value) { m_dataItems.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAttackStatisticsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAttackStatisticsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAttackStatisticsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TimeRange m_timeRange; Aws::Vector m_dataItems; Aws::String m_requestId; }; } // namespace Model } // namespace Shield } // namespace Aws