AWS SDK for C++

AWS SDK for C++ Version 1.11.800

Loading...
Searching...
No Matches
PutDashboardRequest.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/monitoring/CloudWatchRequest.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatch {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCH_API PutDashboardRequest() = 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 "PutDashboard"; }
30
31 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetDashboardName() const { return m_dashboardName; }
43 inline bool DashboardNameHasBeenSet() const { return m_dashboardNameHasBeenSet; }
44 template <typename DashboardNameT = Aws::String>
45 void SetDashboardName(DashboardNameT&& value) {
46 m_dashboardNameHasBeenSet = true;
47 m_dashboardName = std::forward<DashboardNameT>(value);
48 }
49 template <typename DashboardNameT = Aws::String>
50 PutDashboardRequest& WithDashboardName(DashboardNameT&& value) {
51 SetDashboardName(std::forward<DashboardNameT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetDashboardBody() const { return m_dashboardBody; }
65 inline bool DashboardBodyHasBeenSet() const { return m_dashboardBodyHasBeenSet; }
66 template <typename DashboardBodyT = Aws::String>
67 void SetDashboardBody(DashboardBodyT&& value) {
68 m_dashboardBodyHasBeenSet = true;
69 m_dashboardBody = std::forward<DashboardBodyT>(value);
70 }
71 template <typename DashboardBodyT = Aws::String>
72 PutDashboardRequest& WithDashboardBody(DashboardBodyT&& value) {
73 SetDashboardBody(std::forward<DashboardBodyT>(value));
74 return *this;
75 }
77
79
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template <typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Vector<Tag>>
99 PutDashboardRequest& WithTags(TagsT&& value) {
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsT = Tag>
104 PutDashboardRequest& AddTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags.emplace_back(std::forward<TagsT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_dashboardName;
112
113 Aws::String m_dashboardBody;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_dashboardNameHasBeenSet = false;
117 bool m_dashboardBodyHasBeenSet = false;
118 bool m_tagsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CloudWatch
123} // namespace Aws
PutDashboardRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
PutDashboardRequest & WithDashboardBody(DashboardBodyT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutDashboardRequest & AddTags(TagsT &&value)
PutDashboardRequest & WithDashboardName(DashboardNameT &&value)
AWS_CLOUDWATCH_API PutDashboardRequest()=default
const Aws::Vector< Tag > & GetTags() const
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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