AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TestAlarmRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/AlarmState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API TestAlarmRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TestAlarm"; }
32
33 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
43 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
44 template<typename AlarmNameT = Aws::String>
45 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
46 template<typename AlarmNameT = Aws::String>
47 TestAlarmRequest& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
49
51
59 inline AlarmState GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 inline void SetState(AlarmState value) { m_stateHasBeenSet = true; m_state = value; }
62 inline TestAlarmRequest& WithState(AlarmState value) { SetState(value); return *this;}
64 private:
65
66 Aws::String m_alarmName;
67 bool m_alarmNameHasBeenSet = false;
68
70 bool m_stateHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Lightsail
75} // 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