AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListAnomaliesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/SuppressionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API ListAnomaliesRequest() = 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 "ListAnomalies"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
40 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
41 template <typename AnomalyDetectorArnT = Aws::String>
42 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) {
43 m_anomalyDetectorArnHasBeenSet = true;
44 m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value);
45 }
46 template <typename AnomalyDetectorArnT = Aws::String>
47 ListAnomaliesRequest& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) {
48 SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value));
49 return *this;
50 }
52
54
58 inline SuppressionState GetSuppressionState() const { return m_suppressionState; }
59 inline bool SuppressionStateHasBeenSet() const { return m_suppressionStateHasBeenSet; }
61 m_suppressionStateHasBeenSet = true;
62 m_suppressionState = value;
63 }
66 return *this;
67 }
69
71
75 inline int GetLimit() const { return m_limit; }
76 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
77 inline void SetLimit(int value) {
78 m_limitHasBeenSet = true;
79 m_limit = value;
80 }
81 inline ListAnomaliesRequest& WithLimit(int value) {
82 SetLimit(value);
83 return *this;
84 }
86
88
89 inline const Aws::String& GetNextToken() const { return m_nextToken; }
90 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 template <typename NextTokenT = Aws::String>
92 void SetNextToken(NextTokenT&& value) {
93 m_nextTokenHasBeenSet = true;
94 m_nextToken = std::forward<NextTokenT>(value);
95 }
96 template <typename NextTokenT = Aws::String>
97 ListAnomaliesRequest& WithNextToken(NextTokenT&& value) {
98 SetNextToken(std::forward<NextTokenT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_anomalyDetectorArn;
104
106
107 int m_limit{0};
108
109 Aws::String m_nextToken;
110 bool m_anomalyDetectorArnHasBeenSet = false;
111 bool m_suppressionStateHasBeenSet = false;
112 bool m_limitHasBeenSet = false;
113 bool m_nextTokenHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CloudWatchLogs
118} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API ListAnomaliesRequest()=default
ListAnomaliesRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
ListAnomaliesRequest & WithSuppressionState(SuppressionState value)
ListAnomaliesRequest & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String