AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutDashboardRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatch {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCH_API PutDashboardRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutDashboard"; }
28
29 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
30
32
34
40 inline const Aws::String& GetDashboardName() const { return m_dashboardName; }
41 inline bool DashboardNameHasBeenSet() const { return m_dashboardNameHasBeenSet; }
42 template <typename DashboardNameT = Aws::String>
43 void SetDashboardName(DashboardNameT&& value) {
44 m_dashboardNameHasBeenSet = true;
45 m_dashboardName = std::forward<DashboardNameT>(value);
46 }
47 template <typename DashboardNameT = Aws::String>
48 PutDashboardRequest& WithDashboardName(DashboardNameT&& value) {
49 SetDashboardName(std::forward<DashboardNameT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetDashboardBody() const { return m_dashboardBody; }
63 inline bool DashboardBodyHasBeenSet() const { return m_dashboardBodyHasBeenSet; }
64 template <typename DashboardBodyT = Aws::String>
65 void SetDashboardBody(DashboardBodyT&& value) {
66 m_dashboardBodyHasBeenSet = true;
67 m_dashboardBody = std::forward<DashboardBodyT>(value);
68 }
69 template <typename DashboardBodyT = Aws::String>
70 PutDashboardRequest& WithDashboardBody(DashboardBodyT&& value) {
71 SetDashboardBody(std::forward<DashboardBodyT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_dashboardName;
77
78 Aws::String m_dashboardBody;
79 bool m_dashboardNameHasBeenSet = false;
80 bool m_dashboardBodyHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace CloudWatch
85} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutDashboardRequest & WithDashboardBody(DashboardBodyT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutDashboardRequest & WithDashboardName(DashboardNameT &&value)
AWS_CLOUDWATCH_API PutDashboardRequest()=default
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