AWS SDK for C++  1.9.108
AWS SDK for C++
TestAlarmRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
42 
46  inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
47 
51  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
52 
56  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
57 
61  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
62 
66  inline TestAlarmRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
67 
71  inline TestAlarmRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
72 
76  inline TestAlarmRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
77 
78 
87  inline const AlarmState& GetState() const{ return m_state; }
88 
97  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
98 
107  inline void SetState(const AlarmState& value) { m_stateHasBeenSet = true; m_state = value; }
108 
117  inline void SetState(AlarmState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
118 
127  inline TestAlarmRequest& WithState(const AlarmState& value) { SetState(value); return *this;}
128 
137  inline TestAlarmRequest& WithState(AlarmState&& value) { SetState(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::String m_alarmName;
142  bool m_alarmNameHasBeenSet;
143 
144  AlarmState m_state;
145  bool m_stateHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace Lightsail
150 } // namespace Aws
Aws::Lightsail::Model::TestAlarmRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::TestAlarmRequest::GetAlarmName
const Aws::String & GetAlarmName() const
Definition: TestAlarmRequest.h:41
Aws::Lightsail::Model::TestAlarmRequest
Definition: TestAlarmRequest.h:23
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::TestAlarmRequest::WithAlarmName
TestAlarmRequest & WithAlarmName(const Aws::String &value)
Definition: TestAlarmRequest.h:66
Aws::Lightsail::Model::TestAlarmRequest::GetState
const AlarmState & GetState() const
Definition: TestAlarmRequest.h:87
Aws::Lightsail::Model::TestAlarmRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::TestAlarmRequest::WithState
TestAlarmRequest & WithState(AlarmState &&value)
Definition: TestAlarmRequest.h:137
Aws::Lightsail::Model::TestAlarmRequest::AlarmNameHasBeenSet
bool AlarmNameHasBeenSet() const
Definition: TestAlarmRequest.h:46
Aws::Lightsail::Model::TestAlarmRequest::WithState
TestAlarmRequest & WithState(const AlarmState &value)
Definition: TestAlarmRequest.h:127
Aws::Lightsail::Model::TestAlarmRequest::TestAlarmRequest
TestAlarmRequest()
LightsailRequest.h
Aws::Lightsail::Model::TestAlarmRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TestAlarmRequest.h:31
AlarmState.h
Aws::Lightsail::Model::TestAlarmRequest::SetAlarmName
void SetAlarmName(const char *value)
Definition: TestAlarmRequest.h:61
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::TestAlarmRequest::WithAlarmName
TestAlarmRequest & WithAlarmName(const char *value)
Definition: TestAlarmRequest.h:76
Aws::Lightsail::Model::AlarmState
AlarmState
Definition: AlarmState.h:17
Lightsail_EXPORTS.h
Aws::Lightsail::Model::TestAlarmRequest::SetAlarmName
void SetAlarmName(const Aws::String &value)
Definition: TestAlarmRequest.h:51
Aws::Lightsail::Model::TestAlarmRequest::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TestAlarmRequest.h:97
Aws::Lightsail::Model::TestAlarmRequest::WithAlarmName
TestAlarmRequest & WithAlarmName(Aws::String &&value)
Definition: TestAlarmRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::TestAlarmRequest::SetAlarmName
void SetAlarmName(Aws::String &&value)
Definition: TestAlarmRequest.h:56
Aws::Lightsail::Model::TestAlarmRequest::SetState
void SetState(AlarmState &&value)
Definition: TestAlarmRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::TestAlarmRequest::SetState
void SetState(const AlarmState &value)
Definition: TestAlarmRequest.h:107
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28