AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAnomaliesRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/SuppressionState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API ListAnomaliesRequest() = 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 "ListAnomalies"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
44 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
45 template<typename AnomalyDetectorArnT = Aws::String>
46 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
47 template<typename AnomalyDetectorArnT = Aws::String>
48 ListAnomaliesRequest& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
50
52
56 inline SuppressionState GetSuppressionState() const { return m_suppressionState; }
57 inline bool SuppressionStateHasBeenSet() const { return m_suppressionStateHasBeenSet; }
58 inline void SetSuppressionState(SuppressionState value) { m_suppressionStateHasBeenSet = true; m_suppressionState = value; }
61
63
67 inline int GetLimit() const { return m_limit; }
68 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
69 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
70 inline ListAnomaliesRequest& WithLimit(int value) { SetLimit(value); return *this;}
72
74
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template<typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
79 template<typename NextTokenT = Aws::String>
80 ListAnomaliesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
82 private:
83
84 Aws::String m_anomalyDetectorArn;
85 bool m_anomalyDetectorArnHasBeenSet = false;
86
88 bool m_suppressionStateHasBeenSet = false;
89
90 int m_limit{0};
91 bool m_limitHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CloudWatchLogs
99} // 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