AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateMonitorRequest.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/forecast/ForecastServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/forecast/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ForecastService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_FORECASTSERVICE_API CreateMonitorRequest() = 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 "CreateMonitor"; }
33
34 AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
44 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
45 template<typename MonitorNameT = Aws::String>
46 void SetMonitorName(MonitorNameT&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::forward<MonitorNameT>(value); }
47 template<typename MonitorNameT = Aws::String>
48 CreateMonitorRequest& WithMonitorName(MonitorNameT&& value) { SetMonitorName(std::forward<MonitorNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
56 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
57 template<typename ResourceArnT = Aws::String>
58 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
59 template<typename ResourceArnT = Aws::String>
60 CreateMonitorRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
62
64
69 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
70 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
71 template<typename TagsT = Aws::Vector<Tag>>
72 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
73 template<typename TagsT = Aws::Vector<Tag>>
74 CreateMonitorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
75 template<typename TagsT = Tag>
76 CreateMonitorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
78 private:
79
80 Aws::String m_monitorName;
81 bool m_monitorNameHasBeenSet = false;
82
83 Aws::String m_resourceArn;
84 bool m_resourceArnHasBeenSet = false;
85
86 Aws::Vector<Tag> m_tags;
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ForecastService
92} // 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