AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateMonitorRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/forecast/ForecastServiceRequest.h>
10#include <aws/forecast/ForecastService_EXPORTS.h>
11#include <aws/forecast/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ForecastService {
17namespace Model {
18
22 public:
23 AWS_FORECASTSERVICE_API CreateMonitorRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateMonitor"; }
30
31 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
40 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
41 template <typename MonitorNameT = Aws::String>
42 void SetMonitorName(MonitorNameT&& value) {
43 m_monitorNameHasBeenSet = true;
44 m_monitorName = std::forward<MonitorNameT>(value);
45 }
46 template <typename MonitorNameT = Aws::String>
47 CreateMonitorRequest& WithMonitorName(MonitorNameT&& value) {
48 SetMonitorName(std::forward<MonitorNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
58 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
59 template <typename ResourceArnT = Aws::String>
60 void SetResourceArn(ResourceArnT&& value) {
61 m_resourceArnHasBeenSet = true;
62 m_resourceArn = std::forward<ResourceArnT>(value);
63 }
64 template <typename ResourceArnT = Aws::String>
65 CreateMonitorRequest& WithResourceArn(ResourceArnT&& value) {
66 SetResourceArn(std::forward<ResourceArnT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Vector<Tag>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Vector<Tag>>
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsT = Tag>
90 CreateMonitorRequest& AddTags(TagsT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags.emplace_back(std::forward<TagsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_monitorName;
98
99 Aws::String m_resourceArn;
100
101 Aws::Vector<Tag> m_tags;
102 bool m_monitorNameHasBeenSet = false;
103 bool m_resourceArnHasBeenSet = false;
104 bool m_tagsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ForecastService
109} // namespace Aws
CreateMonitorRequest & WithResourceArn(ResourceArnT &&value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateMonitorRequest & WithMonitorName(MonitorNameT &&value)
AWS_FORECASTSERVICE_API CreateMonitorRequest()=default
virtual const char * GetServiceRequestName() const override
CreateMonitorRequest & WithTags(TagsT &&value)
CreateMonitorRequest & AddTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector