AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/health/Health_EXPORTS.h>
8#include <aws/health/HealthRequest.h>
9#include <aws/health/model/EventFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Health
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_HEALTH_API DescribeEventsRequest() = default;
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 "DescribeEvents"; }
32
33 AWS_HEALTH_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const EventFilter& GetFilter() const { return m_filter; }
43 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
44 template<typename FilterT = EventFilter>
45 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
46 template<typename FilterT = EventFilter>
47 DescribeEventsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
49
51
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template<typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
62 template<typename NextTokenT = Aws::String>
63 DescribeEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
65
67
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DescribeEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
82 inline const Aws::String& GetLocale() const { return m_locale; }
83 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
84 template<typename LocaleT = Aws::String>
85 void SetLocale(LocaleT&& value) { m_localeHasBeenSet = true; m_locale = std::forward<LocaleT>(value); }
86 template<typename LocaleT = Aws::String>
87 DescribeEventsRequest& WithLocale(LocaleT&& value) { SetLocale(std::forward<LocaleT>(value)); return *this;}
89 private:
90
91 EventFilter m_filter;
92 bool m_filterHasBeenSet = false;
93
94 Aws::String m_nextToken;
95 bool m_nextTokenHasBeenSet = false;
96
97 int m_maxResults{0};
98 bool m_maxResultsHasBeenSet = false;
99
100 Aws::String m_locale;
101 bool m_localeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Health
106} // 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