AWS SDK for C++  1.9.109
AWS SDK for C++
ListAttacksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Shield
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
44 
49  inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
50 
55  inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
56 
61  inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
62 
67  inline ListAttacksRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
68 
73  inline ListAttacksRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
74 
79  inline ListAttacksRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
80 
85  inline ListAttacksRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
86 
91  inline ListAttacksRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
92 
93 
102  inline const TimeRange& GetStartTime() const{ return m_startTime; }
103 
112  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
113 
122  inline void SetStartTime(const TimeRange& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
123 
132  inline void SetStartTime(TimeRange&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
133 
142  inline ListAttacksRequest& WithStartTime(const TimeRange& value) { SetStartTime(value); return *this;}
143 
152  inline ListAttacksRequest& WithStartTime(TimeRange&& value) { SetStartTime(std::move(value)); return *this;}
153 
154 
162  inline const TimeRange& GetEndTime() const{ return m_endTime; }
163 
171  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
172 
180  inline void SetEndTime(const TimeRange& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
181 
189  inline void SetEndTime(TimeRange&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
190 
198  inline ListAttacksRequest& WithEndTime(const TimeRange& value) { SetEndTime(value); return *this;}
199 
207  inline ListAttacksRequest& WithEndTime(TimeRange&& value) { SetEndTime(std::move(value)); return *this;}
208 
209 
214  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
215 
220  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
221 
226  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
227 
232  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
233 
238  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
239 
244  inline ListAttacksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
245 
250  inline ListAttacksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
251 
256  inline ListAttacksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
257 
258 
268  inline int GetMaxResults() const{ return m_maxResults; }
269 
279  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
280 
290  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
291 
301  inline ListAttacksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
302 
303  private:
304 
305  Aws::Vector<Aws::String> m_resourceArns;
306  bool m_resourceArnsHasBeenSet;
307 
308  TimeRange m_startTime;
309  bool m_startTimeHasBeenSet;
310 
311  TimeRange m_endTime;
312  bool m_endTimeHasBeenSet;
313 
314  Aws::String m_nextToken;
315  bool m_nextTokenHasBeenSet;
316 
317  int m_maxResults;
318  bool m_maxResultsHasBeenSet;
319  };
320 
321 } // namespace Model
322 } // namespace Shield
323 } // namespace Aws
Aws::Shield::Model::ListAttacksRequest::WithMaxResults
ListAttacksRequest & WithMaxResults(int value)
Definition: ListAttacksRequest.h:301
Aws::Shield::Model::ListAttacksRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ListAttacksRequest.h:112
Aws::Shield::Model::ListAttacksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Shield::Model::ListAttacksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAttacksRequest.h:268
Aws::Shield::Model::ListAttacksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAttacksRequest.h:290
Aws::Shield::Model::ListAttacksRequest::WithResourceArns
ListAttacksRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
Definition: ListAttacksRequest.h:73
ShieldRequest.h
Aws::Shield::Model::ListAttacksRequest::WithNextToken
ListAttacksRequest & WithNextToken(Aws::String &&value)
Definition: ListAttacksRequest.h:250
AWS_SHIELD_API
#define AWS_SHIELD_API
Definition: Shield_EXPORTS.h:28
Aws::Shield::Model::ListAttacksRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ListAttacksRequest.h:171
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Shield::Model::ListAttacksRequest::SetStartTime
void SetStartTime(const TimeRange &value)
Definition: ListAttacksRequest.h:122
Aws::Shield::Model::ListAttacksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAttacksRequest.h:279
Aws::Shield::Model::ListAttacksRequest
Definition: ListAttacksRequest.h:24
Aws::Shield::Model::ListAttacksRequest::WithEndTime
ListAttacksRequest & WithEndTime(const TimeRange &value)
Definition: ListAttacksRequest.h:198
Aws::Shield::Model::ListAttacksRequest::WithEndTime
ListAttacksRequest & WithEndTime(TimeRange &&value)
Definition: ListAttacksRequest.h:207
Aws::Shield::Model::ListAttacksRequest::SetStartTime
void SetStartTime(TimeRange &&value)
Definition: ListAttacksRequest.h:132
Aws::Shield::Model::ListAttacksRequest::GetEndTime
const TimeRange & GetEndTime() const
Definition: ListAttacksRequest.h:162
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Shield::Model::TimeRange
Definition: TimeRange.h:32
AWSVector.h
Aws::Shield::Model::ListAttacksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAttacksRequest.h:232
Aws::Shield::Model::ListAttacksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAttacksRequest.h:220
Aws::Shield::ShieldRequest
Definition: ShieldRequest.h:17
Aws::Shield::Model::ListAttacksRequest::WithResourceArns
ListAttacksRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
Definition: ListAttacksRequest.h:67
Aws::Shield::Model::ListAttacksRequest::GetResourceArns
const Aws::Vector< Aws::String > & GetResourceArns() const
Definition: ListAttacksRequest.h:43
Aws::Shield::Model::ListAttacksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAttacksRequest.h:32
Aws::Shield::Model::ListAttacksRequest::AddResourceArns
ListAttacksRequest & AddResourceArns(Aws::String &&value)
Definition: ListAttacksRequest.h:85
Shield_EXPORTS.h
Aws::Shield::Model::ListAttacksRequest::WithStartTime
ListAttacksRequest & WithStartTime(TimeRange &&value)
Definition: ListAttacksRequest.h:152
Aws::Shield::Model::ListAttacksRequest::AddResourceArns
ListAttacksRequest & AddResourceArns(const char *value)
Definition: ListAttacksRequest.h:91
AWSString.h
Aws::Shield::Model::ListAttacksRequest::AddResourceArns
ListAttacksRequest & AddResourceArns(const Aws::String &value)
Definition: ListAttacksRequest.h:79
Aws::Shield::Model::ListAttacksRequest::GetStartTime
const TimeRange & GetStartTime() const
Definition: ListAttacksRequest.h:102
Aws::Shield::Model::ListAttacksRequest::WithStartTime
ListAttacksRequest & WithStartTime(const TimeRange &value)
Definition: ListAttacksRequest.h:142
Aws::Shield::Model::ListAttacksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAttacksRequest.h:226
Aws::Shield::Model::ListAttacksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAttacksRequest.h:214
TimeRange.h
Aws::Shield::Model::ListAttacksRequest::SetResourceArns
void SetResourceArns(const Aws::Vector< Aws::String > &value)
Definition: ListAttacksRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Shield::Model::ListAttacksRequest::SetEndTime
void SetEndTime(TimeRange &&value)
Definition: ListAttacksRequest.h:189
Aws::Shield::Model::ListAttacksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Shield::Model::ListAttacksRequest::WithNextToken
ListAttacksRequest & WithNextToken(const char *value)
Definition: ListAttacksRequest.h:256
Aws::Shield::Model::ListAttacksRequest::SetEndTime
void SetEndTime(const TimeRange &value)
Definition: ListAttacksRequest.h:180
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Shield::Model::ListAttacksRequest::WithNextToken
ListAttacksRequest & WithNextToken(const Aws::String &value)
Definition: ListAttacksRequest.h:244
Aws::Shield::Model::ListAttacksRequest::SetResourceArns
void SetResourceArns(Aws::Vector< Aws::String > &&value)
Definition: ListAttacksRequest.h:61
Aws::Shield::Model::ListAttacksRequest::ResourceArnsHasBeenSet
bool ResourceArnsHasBeenSet() const
Definition: ListAttacksRequest.h:49
Aws::Shield::Model::ListAttacksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAttacksRequest.h:238
Aws::Shield::Model::ListAttacksRequest::ListAttacksRequest
ListAttacksRequest()