AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TestAlarmRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/AlarmState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API TestAlarmRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "TestAlarm"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
39 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
40 template <typename AlarmNameT = Aws::String>
41 void SetAlarmName(AlarmNameT&& value) {
42 m_alarmNameHasBeenSet = true;
43 m_alarmName = std::forward<AlarmNameT>(value);
44 }
45 template <typename AlarmNameT = Aws::String>
46 TestAlarmRequest& WithAlarmName(AlarmNameT&& value) {
47 SetAlarmName(std::forward<AlarmNameT>(value));
48 return *this;
49 }
51
53
61 inline AlarmState GetState() const { return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(AlarmState value) {
64 m_stateHasBeenSet = true;
65 m_state = value;
66 }
68 SetState(value);
69 return *this;
70 }
72 private:
73 Aws::String m_alarmName;
74
76 bool m_alarmNameHasBeenSet = false;
77 bool m_stateHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Lightsail
82} // namespace Aws
TestAlarmRequest & WithState(AlarmState value)
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API TestAlarmRequest()=default
TestAlarmRequest & WithAlarmName(AlarmNameT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetAlarmName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String