AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
45 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
46 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
47 inline TestAlarmRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
48 inline TestAlarmRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
49 inline TestAlarmRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
51
53
61 inline const AlarmState& GetState() const{ return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(const AlarmState& value) { m_stateHasBeenSet = true; m_state = value; }
64 inline void SetState(AlarmState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
65 inline TestAlarmRequest& WithState(const AlarmState& value) { SetState(value); return *this;}
66 inline TestAlarmRequest& WithState(AlarmState&& value) { SetState(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_alarmName;
71 bool m_alarmNameHasBeenSet = false;
72
73 AlarmState m_state;
74 bool m_stateHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Lightsail
79} // namespace Aws
void SetState(const AlarmState &value)
TestAlarmRequest & WithAlarmName(const Aws::String &value)
void SetAlarmName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
TestAlarmRequest & WithAlarmName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetAlarmName() const
TestAlarmRequest & WithAlarmName(const char *value)
TestAlarmRequest & WithState(const AlarmState &value)
TestAlarmRequest & WithState(AlarmState &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String