AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Attachment.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const Aws::String& GetId() const{ return m_id; }
47
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57
61 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62
66 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67
71 inline Attachment& WithId(const Aws::String& value) { SetId(value); return *this;}
72
76 inline Attachment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77
81 inline Attachment& WithId(const char* value) { SetId(value); return *this;}
82
83
87 inline const Aws::String& GetType() const{ return m_type; }
88
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93
97 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
98
102 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103
107 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
108
112 inline Attachment& WithType(const Aws::String& value) { SetType(value); return *this;}
113
117 inline Attachment& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
118
122 inline Attachment& WithType(const char* value) { SetType(value); return *this;}
123
124
131 inline const Aws::String& GetStatus() const{ return m_status; }
132
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140
147 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
148
155 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
156
163 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
164
171 inline Attachment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
172
179 inline Attachment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
180
187 inline Attachment& WithStatus(const char* value) { SetStatus(value); return *this;}
188
189
195 inline const Aws::Vector<KeyValuePair>& GetDetails() const{ return m_details; }
196
202 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
203
209 inline void SetDetails(const Aws::Vector<KeyValuePair>& value) { m_detailsHasBeenSet = true; m_details = value; }
210
216 inline void SetDetails(Aws::Vector<KeyValuePair>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
217
223 inline Attachment& WithDetails(const Aws::Vector<KeyValuePair>& value) { SetDetails(value); return *this;}
224
230 inline Attachment& WithDetails(Aws::Vector<KeyValuePair>&& value) { SetDetails(std::move(value)); return *this;}
231
237 inline Attachment& AddDetails(const KeyValuePair& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
238
244 inline Attachment& AddDetails(KeyValuePair&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
245
246 private:
247
248 Aws::String m_id;
249 bool m_idHasBeenSet = false;
250
251 Aws::String m_type;
252 bool m_typeHasBeenSet = false;
253
254 Aws::String m_status;
255 bool m_statusHasBeenSet = false;
256
258 bool m_detailsHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace ECS
263} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AWS_ECS_API Attachment(Aws::Utils::Json::JsonView jsonValue)
void SetId(Aws::String &&value)
Definition: Attachment.h:61
const Aws::String & GetId() const
Definition: Attachment.h:46
Attachment & WithId(const char *value)
Definition: Attachment.h:81
bool StatusHasBeenSet() const
Definition: Attachment.h:139
void SetDetails(const Aws::Vector< KeyValuePair > &value)
Definition: Attachment.h:209
Attachment & AddDetails(const KeyValuePair &value)
Definition: Attachment.h:237
Attachment & WithType(const Aws::String &value)
Definition: Attachment.h:112
Attachment & WithStatus(const Aws::String &value)
Definition: Attachment.h:171
bool DetailsHasBeenSet() const
Definition: Attachment.h:202
Attachment & WithType(Aws::String &&value)
Definition: Attachment.h:117
void SetId(const Aws::String &value)
Definition: Attachment.h:56
Attachment & WithDetails(const Aws::Vector< KeyValuePair > &value)
Definition: Attachment.h:223
void SetType(const Aws::String &value)
Definition: Attachment.h:97
Attachment & WithStatus(const char *value)
Definition: Attachment.h:187
void SetStatus(const Aws::String &value)
Definition: Attachment.h:147
void SetStatus(const char *value)
Definition: Attachment.h:163
bool TypeHasBeenSet() const
Definition: Attachment.h:92
Attachment & WithDetails(Aws::Vector< KeyValuePair > &&value)
Definition: Attachment.h:230
const Aws::String & GetType() const
Definition: Attachment.h:87
Attachment & WithId(Aws::String &&value)
Definition: Attachment.h:76
Attachment & AddDetails(KeyValuePair &&value)
Definition: Attachment.h:244
void SetType(const char *value)
Definition: Attachment.h:107
Attachment & WithType(const char *value)
Definition: Attachment.h:122
const Aws::Vector< KeyValuePair > & GetDetails() const
Definition: Attachment.h:195
void SetDetails(Aws::Vector< KeyValuePair > &&value)
Definition: Attachment.h:216
void SetId(const char *value)
Definition: Attachment.h:66
void SetType(Aws::String &&value)
Definition: Attachment.h:102
const Aws::String & GetStatus() const
Definition: Attachment.h:131
Attachment & WithId(const Aws::String &value)
Definition: Attachment.h:71
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(Aws::String &&value)
Definition: Attachment.h:155
Attachment & WithStatus(Aws::String &&value)
Definition: Attachment.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector