AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
46 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
47 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
49 inline ListAnomaliesRequest& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
50 inline ListAnomaliesRequest& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
52
54
58 inline const SuppressionState& GetSuppressionState() const{ return m_suppressionState; }
59 inline bool SuppressionStateHasBeenSet() const { return m_suppressionStateHasBeenSet; }
60 inline void SetSuppressionState(const SuppressionState& value) { m_suppressionStateHasBeenSet = true; m_suppressionState = value; }
61 inline void SetSuppressionState(SuppressionState&& value) { m_suppressionStateHasBeenSet = true; m_suppressionState = std::move(value); }
63 inline ListAnomaliesRequest& WithSuppressionState(SuppressionState&& value) { SetSuppressionState(std::move(value)); return *this;}
65
67
71 inline int GetLimit() const{ return m_limit; }
72 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
73 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
74 inline ListAnomaliesRequest& WithLimit(int value) { SetLimit(value); return *this;}
76
78
79 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
83 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
84 inline ListAnomaliesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 inline ListAnomaliesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
86 inline ListAnomaliesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88 private:
89
90 Aws::String m_anomalyDetectorArn;
91 bool m_anomalyDetectorArnHasBeenSet = false;
92
93 SuppressionState m_suppressionState;
94 bool m_suppressionStateHasBeenSet = false;
95
96 int m_limit;
97 bool m_limitHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CloudWatchLogs
105} // namespace Aws
ListAnomaliesRequest & WithSuppressionState(SuppressionState &&value)
ListAnomaliesRequest & WithNextToken(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
ListAnomaliesRequest & WithAnomalyDetectorArn(const Aws::String &value)
ListAnomaliesRequest & WithNextToken(const char *value)
const SuppressionState & GetSuppressionState() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSuppressionState(const SuppressionState &value)
ListAnomaliesRequest & WithSuppressionState(const SuppressionState &value)
virtual const char * GetServiceRequestName() const override
ListAnomaliesRequest & WithNextToken(Aws::String &&value)
ListAnomaliesRequest & WithAnomalyDetectorArn(Aws::String &&value)
ListAnomaliesRequest & WithAnomalyDetectorArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String