AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AnomalyDetectorNameT = Aws::String>
44 void SetAnomalyDetectorName(AnomalyDetectorNameT&& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = std::forward<AnomalyDetectorNameT>(value); }
45 template<typename AnomalyDetectorNameT = Aws::String>
46 CreateAnomalyDetectorRequest& WithAnomalyDetectorName(AnomalyDetectorNameT&& value) { SetAnomalyDetectorName(std::forward<AnomalyDetectorNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetAnomalyDetectorDescription() const { return m_anomalyDetectorDescription; }
54 inline bool AnomalyDetectorDescriptionHasBeenSet() const { return m_anomalyDetectorDescriptionHasBeenSet; }
55 template<typename AnomalyDetectorDescriptionT = Aws::String>
56 void SetAnomalyDetectorDescription(AnomalyDetectorDescriptionT&& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = std::forward<AnomalyDetectorDescriptionT>(value); }
57 template<typename AnomalyDetectorDescriptionT = Aws::String>
58 CreateAnomalyDetectorRequest& WithAnomalyDetectorDescription(AnomalyDetectorDescriptionT&& value) { SetAnomalyDetectorDescription(std::forward<AnomalyDetectorDescriptionT>(value)); return *this;}
60
62
65 inline const AnomalyDetectorConfig& GetAnomalyDetectorConfig() const { return m_anomalyDetectorConfig; }
66 inline bool AnomalyDetectorConfigHasBeenSet() const { return m_anomalyDetectorConfigHasBeenSet; }
67 template<typename AnomalyDetectorConfigT = AnomalyDetectorConfig>
68 void SetAnomalyDetectorConfig(AnomalyDetectorConfigT&& value) { m_anomalyDetectorConfigHasBeenSet = true; m_anomalyDetectorConfig = std::forward<AnomalyDetectorConfigT>(value); }
69 template<typename AnomalyDetectorConfigT = AnomalyDetectorConfig>
70 CreateAnomalyDetectorRequest& WithAnomalyDetectorConfig(AnomalyDetectorConfigT&& value) { SetAnomalyDetectorConfig(std::forward<AnomalyDetectorConfigT>(value)); return *this;}
72
74
77 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
78 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
79 template<typename KmsKeyArnT = Aws::String>
80 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
81 template<typename KmsKeyArnT = Aws::String>
82 CreateAnomalyDetectorRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
84
86
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateAnomalyDetectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateAnomalyDetectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102 private:
103
104 Aws::String m_anomalyDetectorName;
105 bool m_anomalyDetectorNameHasBeenSet = false;
106
107 Aws::String m_anomalyDetectorDescription;
108 bool m_anomalyDetectorDescriptionHasBeenSet = false;
109
110 AnomalyDetectorConfig m_anomalyDetectorConfig;
111 bool m_anomalyDetectorConfigHasBeenSet = false;
112
113 Aws::String m_kmsKeyArn;
114 bool m_kmsKeyArnHasBeenSet = false;
115
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace LookoutMetrics
122} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAnomalyDetectorRequest & WithAnomalyDetectorConfig(AnomalyDetectorConfigT &&value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorName(AnomalyDetectorNameT &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
CreateAnomalyDetectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAnomalyDetectorRequest & WithAnomalyDetectorDescription(AnomalyDetectorDescriptionT &&value)
void SetAnomalyDetectorDescription(AnomalyDetectorDescriptionT &&value)
CreateAnomalyDetectorRequest & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_LOOKOUTMETRICS_API CreateAnomalyDetectorRequest()=default
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