AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetFilter(const EventFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
46 inline void SetFilter(EventFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
47 inline DescribeEventAggregatesRequest& WithFilter(const EventFilter& value) { SetFilter(value); return *this;}
48 inline DescribeEventAggregatesRequest& WithFilter(EventFilter&& value) { SetFilter(std::move(value)); return *this;}
50
52
55 inline const EventAggregateField& GetAggregateField() const{ return m_aggregateField; }
56 inline bool AggregateFieldHasBeenSet() const { return m_aggregateFieldHasBeenSet; }
57 inline void SetAggregateField(const EventAggregateField& value) { m_aggregateFieldHasBeenSet = true; m_aggregateField = value; }
58 inline void SetAggregateField(EventAggregateField&& value) { m_aggregateFieldHasBeenSet = true; m_aggregateField = std::move(value); }
62
64
68 inline int GetMaxResults() const{ return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline DescribeEventAggregatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline DescribeEventAggregatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline DescribeEventAggregatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline DescribeEventAggregatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 private:
92
93 EventFilter m_filter;
94 bool m_filterHasBeenSet = false;
95
96 EventAggregateField m_aggregateField;
97 bool m_aggregateFieldHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Health
108} // namespace Aws
DescribeEventAggregatesRequest & WithNextToken(Aws::String &&value)
DescribeEventAggregatesRequest & WithAggregateField(const EventAggregateField &value)
DescribeEventAggregatesRequest & WithNextToken(const Aws::String &value)
AWS_HEALTH_API Aws::String SerializePayload() const override
DescribeEventAggregatesRequest & WithFilter(const EventFilter &value)
DescribeEventAggregatesRequest & WithAggregateField(EventAggregateField &&value)
DescribeEventAggregatesRequest & WithNextToken(const char *value)
DescribeEventAggregatesRequest & WithMaxResults(int value)
AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEventAggregatesRequest & WithFilter(EventFilter &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String