AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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