AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMonitorName(const Aws::String& value) { m_monitorNameHasBeenSet = true; m_monitorName = value; }
46 inline void SetMonitorName(Aws::String&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::move(value); }
47 inline void SetMonitorName(const char* value) { m_monitorNameHasBeenSet = true; m_monitorName.assign(value); }
48 inline CreateMonitorRequest& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;}
49 inline CreateMonitorRequest& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;}
50 inline CreateMonitorRequest& WithMonitorName(const char* value) { SetMonitorName(value); return *this;}
52
54
57 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
58 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
59 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
60 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
61 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
62 inline CreateMonitorRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
63 inline CreateMonitorRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
64 inline CreateMonitorRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
66
68
73 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
76 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
77 inline CreateMonitorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
78 inline CreateMonitorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
79 inline CreateMonitorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
80 inline CreateMonitorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
82 private:
83
84 Aws::String m_monitorName;
85 bool m_monitorNameHasBeenSet = false;
86
87 Aws::String m_resourceArn;
88 bool m_resourceArnHasBeenSet = false;
89
90 Aws::Vector<Tag> m_tags;
91 bool m_tagsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ForecastService
96} // namespace Aws
CreateMonitorRequest & AddTags(const Tag &value)
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateMonitorRequest & WithMonitorName(const char *value)
CreateMonitorRequest & WithResourceArn(Aws::String &&value)
CreateMonitorRequest & WithResourceArn(const Aws::String &value)
CreateMonitorRequest & WithMonitorName(const Aws::String &value)
CreateMonitorRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
CreateMonitorRequest & WithMonitorName(Aws::String &&value)
CreateMonitorRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateMonitorRequest & WithResourceArn(const char *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