AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Alarm.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
31 class Alarm
32 {
33 public:
38
39
44 inline const Aws::String& GetName() const{ return m_name; }
45
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69
74 inline Alarm& WithName(const Aws::String& value) { SetName(value); return *this;}
75
80 inline Alarm& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81
86 inline Alarm& WithName(const char* value) { SetName(value); return *this;}
87
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeDeploy
96} // namespace Aws
#define AWS_CODEDEPLOY_API
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API Alarm & operator=(Aws::Utils::Json::JsonView jsonValue)
Alarm & WithName(const char *value)
Definition: Alarm.h:86
Alarm & WithName(Aws::String &&value)
Definition: Alarm.h:80
bool NameHasBeenSet() const
Definition: Alarm.h:50
void SetName(const Aws::String &value)
Definition: Alarm.h:56
AWS_CODEDEPLOY_API Alarm(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Alarm()
const Aws::String & GetName() const
Definition: Alarm.h:44
Alarm & WithName(const Aws::String &value)
Definition: Alarm.h:74
void SetName(const char *value)
Definition: Alarm.h:68
void SetName(Aws::String &&value)
Definition: Alarm.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String