AWS SDK for C++  1.9.66
AWS SDK for C++
ListEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DevOpsGuru
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListEvents"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const ListEventsFilters& GetFilters() const{ return m_filters; }
41 
46  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
47 
52  inline void SetFilters(const ListEventsFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
53 
58  inline void SetFilters(ListEventsFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
59 
64  inline ListEventsRequest& WithFilters(const ListEventsFilters& value) { SetFilters(value); return *this;}
65 
70  inline ListEventsRequest& WithFilters(ListEventsFilters&& value) { SetFilters(std::move(value)); return *this;}
71 
72 
78  inline int GetMaxResults() const{ return m_maxResults; }
79 
85  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 
92  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
93 
99  inline ListEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 
101 
106  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
107 
112  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 
118  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 
124  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
125 
130  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
131 
136  inline ListEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
137 
142  inline ListEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
143 
148  inline ListEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
149 
150  private:
151 
152  ListEventsFilters m_filters;
153  bool m_filtersHasBeenSet;
154 
155  int m_maxResults;
156  bool m_maxResultsHasBeenSet;
157 
158  Aws::String m_nextToken;
159  bool m_nextTokenHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace DevOpsGuru
164 } // namespace Aws
Aws::DevOpsGuru::Model::ListEventsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListEventsRequest.h:46
Aws::DevOpsGuru::Model::ListEventsRequest::SetFilters
void SetFilters(const ListEventsFilters &value)
Definition: ListEventsRequest.h:52
Aws::DevOpsGuru::Model::ListEventsRequest::WithFilters
ListEventsRequest & WithFilters(const ListEventsFilters &value)
Definition: ListEventsRequest.h:64
Aws::DevOpsGuru::Model::ListEventsFilters
Definition: ListEventsFilters.h:37
Aws::DevOpsGuru::Model::ListEventsRequest::WithNextToken
ListEventsRequest & WithNextToken(const Aws::String &value)
Definition: ListEventsRequest.h:136
Aws::DevOpsGuru::Model::ListEventsRequest
Definition: ListEventsRequest.h:23
Aws::DevOpsGuru::Model::ListEventsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListEventsRequest.h:118
Aws::DevOpsGuru::Model::ListEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListEventsRequest.h:31
Aws::DevOpsGuru::Model::ListEventsRequest::WithNextToken
ListEventsRequest & WithNextToken(const char *value)
Definition: ListEventsRequest.h:148
Aws::DevOpsGuru::Model::ListEventsRequest::WithMaxResults
ListEventsRequest & WithMaxResults(int value)
Definition: ListEventsRequest.h:99
Aws::DevOpsGuru::Model::ListEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DevOpsGuru::Model::ListEventsRequest::WithFilters
ListEventsRequest & WithFilters(ListEventsFilters &&value)
Definition: ListEventsRequest.h:70
DevOpsGuruRequest.h
AWSString.h
Aws::DevOpsGuru::DevOpsGuruRequest
Definition: DevOpsGuruRequest.h:17
Aws::DevOpsGuru::Model::ListEventsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListEventsRequest.h:78
Aws::DevOpsGuru::Model::ListEventsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListEventsRequest.h:130
Aws::DevOpsGuru::Model::ListEventsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListEventsRequest.h:85
Aws::DevOpsGuru::Model::ListEventsRequest::ListEventsRequest
ListEventsRequest()
Aws::DevOpsGuru::Model::ListEventsRequest::WithNextToken
ListEventsRequest & WithNextToken(Aws::String &&value)
Definition: ListEventsRequest.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::DevOpsGuru::Model::ListEventsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListEventsRequest.h:106
ListEventsFilters.h
Aws::DevOpsGuru::Model::ListEventsRequest::SetFilters
void SetFilters(ListEventsFilters &&value)
Definition: ListEventsRequest.h:58
Aws::DevOpsGuru::Model::ListEventsRequest::GetFilters
const ListEventsFilters & GetFilters() const
Definition: ListEventsRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_DEVOPSGURU_API
#define AWS_DEVOPSGURU_API
Definition: DevOpsGuru_EXPORTS.h:28
Aws::DevOpsGuru::Model::ListEventsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListEventsRequest.h:112
DevOpsGuru_EXPORTS.h
Aws::DevOpsGuru::Model::ListEventsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListEventsRequest.h:124
Aws::DevOpsGuru::Model::ListEventsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListEventsRequest.h:92