AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EventInfo.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 CodeGuruReviewer
22{
23namespace Model
24{
25
33 {
34 public:
39
40
46 inline const Aws::String& GetName() const{ return m_name; }
47
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68
74 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75
81 inline EventInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
82
88 inline EventInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89
95 inline EventInfo& WithName(const char* value) { SetName(value); return *this;}
96
97
101 inline const Aws::String& GetState() const{ return m_state; }
102
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107
111 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
112
116 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
117
121 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
122
126 inline EventInfo& WithState(const Aws::String& value) { SetState(value); return *this;}
127
131 inline EventInfo& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
132
136 inline EventInfo& WithState(const char* value) { SetState(value); return *this;}
137
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_state;
144 bool m_stateHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CodeGuruReviewer
149} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
AWS_CODEGURUREVIEWER_API EventInfo(Aws::Utils::Json::JsonView jsonValue)
EventInfo & WithName(const Aws::String &value)
Definition: EventInfo.h:81
void SetName(const Aws::String &value)
Definition: EventInfo.h:60
EventInfo & WithState(Aws::String &&value)
Definition: EventInfo.h:131
AWS_CODEGURUREVIEWER_API EventInfo()
void SetName(const char *value)
Definition: EventInfo.h:74
EventInfo & WithState(const Aws::String &value)
Definition: EventInfo.h:126
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition: EventInfo.h:46
EventInfo & WithName(Aws::String &&value)
Definition: EventInfo.h:88
void SetState(const char *value)
Definition: EventInfo.h:121
const Aws::String & GetState() const
Definition: EventInfo.h:101
void SetState(const Aws::String &value)
Definition: EventInfo.h:111
void SetState(Aws::String &&value)
Definition: EventInfo.h:116
void SetName(Aws::String &&value)
Definition: EventInfo.h:67
EventInfo & WithState(const char *value)
Definition: EventInfo.h:136
AWS_CODEGURUREVIEWER_API EventInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
EventInfo & WithName(const char *value)
Definition: EventInfo.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String