AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeEventAggregatesRequest.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/health/model/EventAggregateField.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Health
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_HEALTH_API DescribeEventAggregatesRequest() = default;
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 "DescribeEventAggregates"; }
33
34 AWS_HEALTH_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const EventFilter& GetFilter() const { return m_filter; }
44 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
45 template<typename FilterT = EventFilter>
46 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
47 template<typename FilterT = EventFilter>
48 DescribeEventAggregatesRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
50
52
55 inline EventAggregateField GetAggregateField() const { return m_aggregateField; }
56 inline bool AggregateFieldHasBeenSet() const { return m_aggregateFieldHasBeenSet; }
57 inline void SetAggregateField(EventAggregateField value) { m_aggregateFieldHasBeenSet = true; m_aggregateField = value; }
60
62
66 inline int GetMaxResults() const { return m_maxResults; }
67 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
68 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
69 inline DescribeEventAggregatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
71
73
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template<typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
84 template<typename NextTokenT = Aws::String>
85 DescribeEventAggregatesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
87 private:
88
89 EventFilter m_filter;
90 bool m_filterHasBeenSet = false;
91
93 bool m_aggregateFieldHasBeenSet = false;
94
95 int m_maxResults{0};
96 bool m_maxResultsHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Health
104} // namespace Aws
AWS_HEALTH_API Aws::String SerializePayload() const override
DescribeEventAggregatesRequest & WithAggregateField(EventAggregateField value)
DescribeEventAggregatesRequest & WithNextToken(NextTokenT &&value)
DescribeEventAggregatesRequest & WithFilter(FilterT &&value)
DescribeEventAggregatesRequest & WithMaxResults(int value)
AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_HEALTH_API DescribeEventAggregatesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String