AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlarmStateInformation.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ExternalAlarmState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSM_API AlarmStateInformation();
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline AlarmStateInformation& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline AlarmStateInformation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline AlarmStateInformation& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const ExternalAlarmState& GetState() const{ return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(const ExternalAlarmState& value) { m_stateHasBeenSet = true; m_state = value; }
63 inline void SetState(ExternalAlarmState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
64 inline AlarmStateInformation& WithState(const ExternalAlarmState& value) { SetState(value); return *this;}
65 inline AlarmStateInformation& WithState(ExternalAlarmState&& value) { SetState(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
72 ExternalAlarmState m_state;
73 bool m_stateHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SSM
78} // namespace Aws
AWS_SSM_API AlarmStateInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(const ExternalAlarmState &value)
AlarmStateInformation & WithState(const ExternalAlarmState &value)
AlarmStateInformation & WithState(ExternalAlarmState &&value)
AWS_SSM_API AlarmStateInformation(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmStateInformation & WithName(Aws::String &&value)
AlarmStateInformation & WithName(const char *value)
const ExternalAlarmState & GetState() const
void SetState(ExternalAlarmState &&value)
AlarmStateInformation & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue