AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetAlarmStateRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/monitoring/model/StateValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatch
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCH_API SetAlarmStateRequest();
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 "SetAlarmState"; }
32
33 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
45 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
46 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
47 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
48 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
49 inline SetAlarmStateRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
50 inline SetAlarmStateRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
51 inline SetAlarmStateRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
53
55
58 inline const StateValue& GetStateValue() const{ return m_stateValue; }
59 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
60 inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
61 inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::move(value); }
62 inline SetAlarmStateRequest& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
63 inline SetAlarmStateRequest& WithStateValue(StateValue&& value) { SetStateValue(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
71 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
72 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
73 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
74 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
75 inline SetAlarmStateRequest& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
76 inline SetAlarmStateRequest& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
77 inline SetAlarmStateRequest& WithStateReason(const char* value) { SetStateReason(value); return *this;}
79
81
87 inline const Aws::String& GetStateReasonData() const{ return m_stateReasonData; }
88 inline bool StateReasonDataHasBeenSet() const { return m_stateReasonDataHasBeenSet; }
89 inline void SetStateReasonData(const Aws::String& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = value; }
90 inline void SetStateReasonData(Aws::String&& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = std::move(value); }
91 inline void SetStateReasonData(const char* value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData.assign(value); }
92 inline SetAlarmStateRequest& WithStateReasonData(const Aws::String& value) { SetStateReasonData(value); return *this;}
93 inline SetAlarmStateRequest& WithStateReasonData(Aws::String&& value) { SetStateReasonData(std::move(value)); return *this;}
94 inline SetAlarmStateRequest& WithStateReasonData(const char* value) { SetStateReasonData(value); return *this;}
96 private:
97
98 Aws::String m_alarmName;
99 bool m_alarmNameHasBeenSet = false;
100
101 StateValue m_stateValue;
102 bool m_stateValueHasBeenSet = false;
103
104 Aws::String m_stateReason;
105 bool m_stateReasonHasBeenSet = false;
106
107 Aws::String m_stateReasonData;
108 bool m_stateReasonDataHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CloudWatch
113} // namespace Aws
SetAlarmStateRequest & WithStateValue(StateValue &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
SetAlarmStateRequest & WithStateReason(const char *value)
SetAlarmStateRequest & WithStateReasonData(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SetAlarmStateRequest & WithAlarmName(Aws::String &&value)
SetAlarmStateRequest & WithStateValue(const StateValue &value)
SetAlarmStateRequest & WithAlarmName(const char *value)
SetAlarmStateRequest & WithStateReasonData(Aws::String &&value)
SetAlarmStateRequest & WithStateReasonData(const char *value)
SetAlarmStateRequest & WithAlarmName(const Aws::String &value)
void SetStateReasonData(const Aws::String &value)
SetAlarmStateRequest & WithStateReason(const Aws::String &value)
SetAlarmStateRequest & WithStateReason(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String