AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeAttackStatisticsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Shield
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
37 
38  inline const TimeRange& GetTimeRange() const{ return m_timeRange; }
39 
40 
41  inline void SetTimeRange(const TimeRange& value) { m_timeRange = value; }
42 
43 
44  inline void SetTimeRange(TimeRange&& value) { m_timeRange = std::move(value); }
45 
46 
47  inline DescribeAttackStatisticsResult& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;}
48 
49 
50  inline DescribeAttackStatisticsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
51 
52 
56  inline const Aws::Vector<AttackStatisticsDataItem>& GetDataItems() const{ return m_dataItems; }
57 
61  inline void SetDataItems(const Aws::Vector<AttackStatisticsDataItem>& value) { m_dataItems = value; }
62 
66  inline void SetDataItems(Aws::Vector<AttackStatisticsDataItem>&& value) { m_dataItems = std::move(value); }
67 
71  inline DescribeAttackStatisticsResult& WithDataItems(const Aws::Vector<AttackStatisticsDataItem>& value) { SetDataItems(value); return *this;}
72 
76  inline DescribeAttackStatisticsResult& WithDataItems(Aws::Vector<AttackStatisticsDataItem>&& value) { SetDataItems(std::move(value)); return *this;}
77 
81  inline DescribeAttackStatisticsResult& AddDataItems(const AttackStatisticsDataItem& value) { m_dataItems.push_back(value); return *this; }
82 
86  inline DescribeAttackStatisticsResult& AddDataItems(AttackStatisticsDataItem&& value) { m_dataItems.push_back(std::move(value)); return *this; }
87 
88  private:
89 
90  TimeRange m_timeRange;
91 
93  };
94 
95 } // namespace Model
96 } // namespace Shield
97 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Shield::Model::DescribeAttackStatisticsResult::WithDataItems
DescribeAttackStatisticsResult & WithDataItems(Aws::Vector< AttackStatisticsDataItem > &&value)
Definition: DescribeAttackStatisticsResult.h:76
AWS_SHIELD_API
#define AWS_SHIELD_API
Definition: Shield_EXPORTS.h:28
Aws::Shield::Model::DescribeAttackStatisticsResult::GetTimeRange
const TimeRange & GetTimeRange() const
Definition: DescribeAttackStatisticsResult.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Shield::Model::AttackStatisticsDataItem
Definition: AttackStatisticsDataItem.h:34
Aws::Shield::Model::DescribeAttackStatisticsResult::WithTimeRange
DescribeAttackStatisticsResult & WithTimeRange(const TimeRange &value)
Definition: DescribeAttackStatisticsResult.h:47
Aws::Shield::Model::TimeRange
Definition: TimeRange.h:32
AWSVector.h
Aws::Shield::Model::DescribeAttackStatisticsResult::AddDataItems
DescribeAttackStatisticsResult & AddDataItems(AttackStatisticsDataItem &&value)
Definition: DescribeAttackStatisticsResult.h:86
Aws::Shield::Model::DescribeAttackStatisticsResult::WithDataItems
DescribeAttackStatisticsResult & WithDataItems(const Aws::Vector< AttackStatisticsDataItem > &value)
Definition: DescribeAttackStatisticsResult.h:71
Aws::Shield::Model::DescribeAttackStatisticsResult::DescribeAttackStatisticsResult
DescribeAttackStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Shield_EXPORTS.h
AttackStatisticsDataItem.h
Aws::Shield::Model::DescribeAttackStatisticsResult
Definition: DescribeAttackStatisticsResult.h:30
Aws::Shield::Model::DescribeAttackStatisticsResult::operator=
DescribeAttackStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TimeRange.h
Aws
Definition: AccessManagementClient.h:15
Aws::Shield::Model::DescribeAttackStatisticsResult::SetTimeRange
void SetTimeRange(TimeRange &&value)
Definition: DescribeAttackStatisticsResult.h:44
Aws::Shield::Model::DescribeAttackStatisticsResult::WithTimeRange
DescribeAttackStatisticsResult & WithTimeRange(TimeRange &&value)
Definition: DescribeAttackStatisticsResult.h:50
Aws::Shield::Model::DescribeAttackStatisticsResult::DescribeAttackStatisticsResult
DescribeAttackStatisticsResult()
Aws::Shield::Model::DescribeAttackStatisticsResult::AddDataItems
DescribeAttackStatisticsResult & AddDataItems(const AttackStatisticsDataItem &value)
Definition: DescribeAttackStatisticsResult.h:81
Aws::Shield::Model::DescribeAttackStatisticsResult::SetDataItems
void SetDataItems(const Aws::Vector< AttackStatisticsDataItem > &value)
Definition: DescribeAttackStatisticsResult.h:61
Aws::Shield::Model::DescribeAttackStatisticsResult::SetDataItems
void SetDataItems(Aws::Vector< AttackStatisticsDataItem > &&value)
Definition: DescribeAttackStatisticsResult.h:66
Aws::Shield::Model::DescribeAttackStatisticsResult::GetDataItems
const Aws::Vector< AttackStatisticsDataItem > & GetDataItems() const
Definition: DescribeAttackStatisticsResult.h:56
Aws::Shield::Model::DescribeAttackStatisticsResult::SetTimeRange
void SetTimeRange(const TimeRange &value)
Definition: DescribeAttackStatisticsResult.h:41