AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/health/HealthRequest.h>
9#include <aws/health/Health_EXPORTS.h>
10#include <aws/health/model/EventFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Health {
16namespace Model {
17
21 public:
22 AWS_HEALTH_API DescribeEventsRequest() = 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 "DescribeEvents"; }
29
30 AWS_HEALTH_API Aws::String SerializePayload() const override;
31
33
35
38 inline const EventFilter& GetFilter() const { return m_filter; }
39 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
40 template <typename FilterT = EventFilter>
41 void SetFilter(FilterT&& value) {
42 m_filterHasBeenSet = true;
43 m_filter = std::forward<FilterT>(value);
44 }
45 template <typename FilterT = EventFilter>
47 SetFilter(std::forward<FilterT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 DescribeEventsRequest& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
79 inline int GetMaxResults() const { return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) {
82 m_maxResultsHasBeenSet = true;
83 m_maxResults = value;
84 }
86 SetMaxResults(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetLocale() const { return m_locale; }
97 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
98 template <typename LocaleT = Aws::String>
99 void SetLocale(LocaleT&& value) {
100 m_localeHasBeenSet = true;
101 m_locale = std::forward<LocaleT>(value);
102 }
103 template <typename LocaleT = Aws::String>
105 SetLocale(std::forward<LocaleT>(value));
106 return *this;
107 }
109 private:
110 EventFilter m_filter;
111
112 Aws::String m_nextToken;
113
114 int m_maxResults{0};
115
116 Aws::String m_locale;
117 bool m_filterHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_maxResultsHasBeenSet = false;
120 bool m_localeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Health
125} // namespace Aws
DescribeEventsRequest & WithFilter(FilterT &&value)
DescribeEventsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithNextToken(NextTokenT &&value)
DescribeEventsRequest & WithLocale(LocaleT &&value)
AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_HEALTH_API Aws::String SerializePayload() const override
AWS_HEALTH_API DescribeEventsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String