AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuruRequest.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/ListEventsFilters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DevOpsGuru {
16namespace Model {
17
21 public:
22 AWS_DEVOPSGURU_API ListEventsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListEvents"; }
29
30 AWS_DEVOPSGURU_API Aws::String SerializePayload() const override;
31
33
37 inline const ListEventsFilters& GetFilters() const { return m_filters; }
38 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
39 template <typename FiltersT = ListEventsFilters>
40 void SetFilters(FiltersT&& value) {
41 m_filtersHasBeenSet = true;
42 m_filters = std::forward<FiltersT>(value);
43 }
44 template <typename FiltersT = ListEventsFilters>
45 ListEventsRequest& WithFilters(FiltersT&& value) {
46 SetFilters(std::forward<FiltersT>(value));
47 return *this;
48 }
50
52
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
63 inline ListEventsRequest& WithMaxResults(int value) {
64 SetMaxResults(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
82 ListEventsRequest& WithNextToken(NextTokenT&& value) {
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetAccountId() const { return m_accountId; }
93 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
94 template <typename AccountIdT = Aws::String>
95 void SetAccountId(AccountIdT&& value) {
96 m_accountIdHasBeenSet = true;
97 m_accountId = std::forward<AccountIdT>(value);
98 }
99 template <typename AccountIdT = Aws::String>
100 ListEventsRequest& WithAccountId(AccountIdT&& value) {
101 SetAccountId(std::forward<AccountIdT>(value));
102 return *this;
103 }
105 private:
106 ListEventsFilters m_filters;
107
108 int m_maxResults{0};
109
110 Aws::String m_nextToken;
111
112 Aws::String m_accountId;
113 bool m_filtersHasBeenSet = false;
114 bool m_maxResultsHasBeenSet = false;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_accountIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace DevOpsGuru
121} // namespace Aws
AWS_DEVOPSGURU_API ListEventsRequest()=default
ListEventsRequest & WithAccountId(AccountIdT &&value)
AWS_DEVOPSGURU_API Aws::String SerializePayload() const override
ListEventsRequest & WithFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
ListEventsRequest & WithNextToken(NextTokenT &&value)
const ListEventsFilters & GetFilters() const
ListEventsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String