AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAttacksRequest.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/ShieldRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/shield/model/TimeRange.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Shield
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SHIELD_API ListAttacksRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListAttacks"; }
33
34 AWS_SHIELD_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
46 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
47 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
48 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
49 inline ListAttacksRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
50 inline ListAttacksRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
51 inline ListAttacksRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
52 inline ListAttacksRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
53 inline ListAttacksRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
55
57
64 inline const TimeRange& GetStartTime() const{ return m_startTime; }
65 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
66 inline void SetStartTime(const TimeRange& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
67 inline void SetStartTime(TimeRange&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
68 inline ListAttacksRequest& WithStartTime(const TimeRange& value) { SetStartTime(value); return *this;}
69 inline ListAttacksRequest& WithStartTime(TimeRange&& value) { SetStartTime(std::move(value)); return *this;}
71
73
80 inline const TimeRange& GetEndTime() const{ return m_endTime; }
81 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
82 inline void SetEndTime(const TimeRange& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
83 inline void SetEndTime(TimeRange&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
84 inline ListAttacksRequest& WithEndTime(const TimeRange& value) { SetEndTime(value); return *this;}
85 inline ListAttacksRequest& WithEndTime(TimeRange&& value) { SetEndTime(std::move(value)); return *this;}
87
89
103 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
106 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
107 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
108 inline ListAttacksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 inline ListAttacksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 inline ListAttacksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
112
114
121 inline int GetMaxResults() const{ return m_maxResults; }
122 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
123 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
124 inline ListAttacksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
126 private:
127
128 Aws::Vector<Aws::String> m_resourceArns;
129 bool m_resourceArnsHasBeenSet = false;
130
131 TimeRange m_startTime;
132 bool m_startTimeHasBeenSet = false;
133
134 TimeRange m_endTime;
135 bool m_endTimeHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 int m_maxResults;
141 bool m_maxResultsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Shield
146} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNextToken(const Aws::String &value)
void SetStartTime(const TimeRange &value)
AWS_SHIELD_API Aws::String SerializePayload() const override
ListAttacksRequest & WithEndTime(TimeRange &&value)
ListAttacksRequest & WithNextToken(const Aws::String &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
const Aws::String & GetNextToken() const
ListAttacksRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
ListAttacksRequest & WithNextToken(const char *value)
ListAttacksRequest & WithMaxResults(int value)
ListAttacksRequest & AddResourceArns(Aws::String &&value)
ListAttacksRequest & AddResourceArns(const Aws::String &value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
void SetEndTime(const TimeRange &value)
ListAttacksRequest & WithEndTime(const TimeRange &value)
ListAttacksRequest & WithStartTime(const TimeRange &value)
ListAttacksRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
ListAttacksRequest & WithNextToken(Aws::String &&value)
ListAttacksRequest & AddResourceArns(const char *value)
ListAttacksRequest & WithStartTime(TimeRange &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector