AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
UpdateCustomMetricRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IoT {
15namespace Model {
16
20 public:
21 AWS_IOT_API UpdateCustomMetricRequest() = 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 "UpdateCustomMetric"; }
28
29 AWS_IOT_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetMetricName() const { return m_metricName; }
36 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
37 template <typename MetricNameT = Aws::String>
38 void SetMetricName(MetricNameT&& value) {
39 m_metricNameHasBeenSet = true;
40 m_metricName = std::forward<MetricNameT>(value);
41 }
42 template <typename MetricNameT = Aws::String>
44 SetMetricName(std::forward<MetricNameT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetDisplayName() const { return m_displayName; }
56 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
57 template <typename DisplayNameT = Aws::String>
58 void SetDisplayName(DisplayNameT&& value) {
59 m_displayNameHasBeenSet = true;
60 m_displayName = std::forward<DisplayNameT>(value);
61 }
62 template <typename DisplayNameT = Aws::String>
64 SetDisplayName(std::forward<DisplayNameT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_metricName;
70 bool m_metricNameHasBeenSet = false;
71
72 Aws::String m_displayName;
73 bool m_displayNameHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IoT
78} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
UpdateCustomMetricRequest & WithDisplayName(DisplayNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API UpdateCustomMetricRequest()=default
UpdateCustomMetricRequest & WithMetricName(MetricNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String