AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAnomalyDetectorRequest.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/LookoutMetricsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutmetrics/model/AnomalyDetectorConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LookoutMetrics
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOOKOUTMETRICS_API CreateAnomalyDetectorRequest();
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 "CreateAnomalyDetector"; }
33
34 AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAnomalyDetectorName() const{ return m_anomalyDetectorName; }
42 inline bool AnomalyDetectorNameHasBeenSet() const { return m_anomalyDetectorNameHasBeenSet; }
43 inline void SetAnomalyDetectorName(const Aws::String& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = value; }
44 inline void SetAnomalyDetectorName(Aws::String&& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = std::move(value); }
45 inline void SetAnomalyDetectorName(const char* value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName.assign(value); }
48 inline CreateAnomalyDetectorRequest& WithAnomalyDetectorName(const char* value) { SetAnomalyDetectorName(value); return *this;}
50
52
55 inline const Aws::String& GetAnomalyDetectorDescription() const{ return m_anomalyDetectorDescription; }
56 inline bool AnomalyDetectorDescriptionHasBeenSet() const { return m_anomalyDetectorDescriptionHasBeenSet; }
57 inline void SetAnomalyDetectorDescription(const Aws::String& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = value; }
58 inline void SetAnomalyDetectorDescription(Aws::String&& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = std::move(value); }
59 inline void SetAnomalyDetectorDescription(const char* value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription.assign(value); }
64
66
69 inline const AnomalyDetectorConfig& GetAnomalyDetectorConfig() const{ return m_anomalyDetectorConfig; }
70 inline bool AnomalyDetectorConfigHasBeenSet() const { return m_anomalyDetectorConfigHasBeenSet; }
71 inline void SetAnomalyDetectorConfig(const AnomalyDetectorConfig& value) { m_anomalyDetectorConfigHasBeenSet = true; m_anomalyDetectorConfig = value; }
72 inline void SetAnomalyDetectorConfig(AnomalyDetectorConfig&& value) { m_anomalyDetectorConfigHasBeenSet = true; m_anomalyDetectorConfig = std::move(value); }
76
78
81 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
82 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
83 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
84 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
85 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
86 inline CreateAnomalyDetectorRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
87 inline CreateAnomalyDetectorRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
88 inline CreateAnomalyDetectorRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
90
92
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline CreateAnomalyDetectorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateAnomalyDetectorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateAnomalyDetectorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateAnomalyDetectorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateAnomalyDetectorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateAnomalyDetectorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateAnomalyDetectorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateAnomalyDetectorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111 private:
112
113 Aws::String m_anomalyDetectorName;
114 bool m_anomalyDetectorNameHasBeenSet = false;
115
116 Aws::String m_anomalyDetectorDescription;
117 bool m_anomalyDetectorDescriptionHasBeenSet = false;
118
119 AnomalyDetectorConfig m_anomalyDetectorConfig;
120 bool m_anomalyDetectorConfigHasBeenSet = false;
121
122 Aws::String m_kmsKeyArn;
123 bool m_kmsKeyArnHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace LookoutMetrics
131} // namespace Aws
CreateAnomalyDetectorRequest & AddTags(const char *key, const char *value)
CreateAnomalyDetectorRequest & WithKmsKeyArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorDescription(const char *value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorName(Aws::String &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
CreateAnomalyDetectorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorDescription(const Aws::String &value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorName(const Aws::String &value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorConfig(AnomalyDetectorConfig &&value)
CreateAnomalyDetectorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAnomalyDetectorRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorDescription(Aws::String &&value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorConfig(const AnomalyDetectorConfig &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAnomalyDetectorRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAnomalyDetectorRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAnomalyDetectorRequest & WithKmsKeyArn(Aws::String &&value)
CreateAnomalyDetectorRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAnomalyDetectorRequest & WithKmsKeyArn(const Aws::String &value)
CreateAnomalyDetectorRequest & AddTags(Aws::String &&key, const char *value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorName(const char *value)
CreateAnomalyDetectorRequest & AddTags(const char *key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String