AWS SDK for C++  1.9.155
AWS SDK for C++
UpdateCustomMetricRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "UpdateCustomMetric"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetMetricName() const{ return m_metricName; }
39 
43  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
44 
48  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
49 
53  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
54 
58  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
59 
63  inline UpdateCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
64 
68  inline UpdateCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
69 
73  inline UpdateCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
74 
75 
81  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
82 
88  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
89 
95  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
96 
102  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
103 
109  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
110 
116  inline UpdateCustomMetricRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
117 
123  inline UpdateCustomMetricRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
124 
130  inline UpdateCustomMetricRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
131 
132  private:
133 
134  Aws::String m_metricName;
135  bool m_metricNameHasBeenSet;
136 
137  Aws::String m_displayName;
138  bool m_displayNameHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace IoT
143 } // namespace Aws
Aws::IoT::Model::UpdateCustomMetricRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: UpdateCustomMetricRequest.h:95
Aws::IoT::Model::UpdateCustomMetricRequest::WithMetricName
UpdateCustomMetricRequest & WithMetricName(Aws::String &&value)
Definition: UpdateCustomMetricRequest.h:68
Aws::IoT::Model::UpdateCustomMetricRequest::SetMetricName
void SetMetricName(const char *value)
Definition: UpdateCustomMetricRequest.h:58
Aws::IoT::Model::UpdateCustomMetricRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: UpdateCustomMetricRequest.h:109
Aws::IoT::Model::UpdateCustomMetricRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: UpdateCustomMetricRequest.h:102
Aws::IoT::Model::UpdateCustomMetricRequest::WithMetricName
UpdateCustomMetricRequest & WithMetricName(const char *value)
Definition: UpdateCustomMetricRequest.h:73
Aws::IoT::Model::UpdateCustomMetricRequest::WithDisplayName
UpdateCustomMetricRequest & WithDisplayName(const char *value)
Definition: UpdateCustomMetricRequest.h:130
Aws::IoT::Model::UpdateCustomMetricRequest::WithMetricName
UpdateCustomMetricRequest & WithMetricName(const Aws::String &value)
Definition: UpdateCustomMetricRequest.h:63
Aws::IoT::Model::UpdateCustomMetricRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: UpdateCustomMetricRequest.h:43
Aws::IoT::Model::UpdateCustomMetricRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCustomMetricRequest.h:30
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateCustomMetricRequest::WithDisplayName
UpdateCustomMetricRequest & WithDisplayName(const Aws::String &value)
Definition: UpdateCustomMetricRequest.h:116
Aws::IoT::Model::UpdateCustomMetricRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: UpdateCustomMetricRequest.h:81
Aws::IoT::Model::UpdateCustomMetricRequest::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: UpdateCustomMetricRequest.h:48
Aws::IoT::Model::UpdateCustomMetricRequest::GetMetricName
const Aws::String & GetMetricName() const
Definition: UpdateCustomMetricRequest.h:38
Aws::IoT::Model::UpdateCustomMetricRequest::WithDisplayName
UpdateCustomMetricRequest & WithDisplayName(Aws::String &&value)
Definition: UpdateCustomMetricRequest.h:123
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateCustomMetricRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: UpdateCustomMetricRequest.h:88
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::UpdateCustomMetricRequest
Definition: UpdateCustomMetricRequest.h:22
IoTRequest.h
Aws::IoT::Model::UpdateCustomMetricRequest::UpdateCustomMetricRequest
UpdateCustomMetricRequest()
Aws::IoT::Model::UpdateCustomMetricRequest::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: UpdateCustomMetricRequest.h:53
IoT_EXPORTS.h
Aws::IoT::Model::UpdateCustomMetricRequest::SerializePayload
Aws::String SerializePayload() const override