AWS SDK for C++  1.9.156
AWS SDK for C++
Attachment.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace 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 
130  inline const Aws::String& GetStatus() const{ return m_status; }
131 
137  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 
144  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
145 
151  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
152 
158  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
159 
165  inline Attachment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
166 
172  inline Attachment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
173 
179  inline Attachment& WithStatus(const char* value) { SetStatus(value); return *this;}
180 
181 
187  inline const Aws::Vector<KeyValuePair>& GetDetails() const{ return m_details; }
188 
194  inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
195 
201  inline void SetDetails(const Aws::Vector<KeyValuePair>& value) { m_detailsHasBeenSet = true; m_details = value; }
202 
208  inline void SetDetails(Aws::Vector<KeyValuePair>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
209 
215  inline Attachment& WithDetails(const Aws::Vector<KeyValuePair>& value) { SetDetails(value); return *this;}
216 
222  inline Attachment& WithDetails(Aws::Vector<KeyValuePair>&& value) { SetDetails(std::move(value)); return *this;}
223 
229  inline Attachment& AddDetails(const KeyValuePair& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
230 
236  inline Attachment& AddDetails(KeyValuePair&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
237 
238  private:
239 
240  Aws::String m_id;
241  bool m_idHasBeenSet;
242 
243  Aws::String m_type;
244  bool m_typeHasBeenSet;
245 
246  Aws::String m_status;
247  bool m_statusHasBeenSet;
248 
249  Aws::Vector<KeyValuePair> m_details;
250  bool m_detailsHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace ECS
255 } // namespace Aws
Aws::ECS::Model::Attachment::SetType
void SetType(const char *value)
Definition: Attachment.h:107
Aws::ECS::Model::Attachment::WithId
Attachment & WithId(const Aws::String &value)
Definition: Attachment.h:71
Aws::ECS::Model::Attachment::GetId
const Aws::String & GetId() const
Definition: Attachment.h:46
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Attachment
Definition: Attachment.h:35
Aws::ECS::Model::Attachment::SetStatus
void SetStatus(const Aws::String &value)
Definition: Attachment.h:144
Aws::ECS::Model::Attachment::SetType
void SetType(Aws::String &&value)
Definition: Attachment.h:102
Aws::ECS::Model::Attachment::WithType
Attachment & WithType(const char *value)
Definition: Attachment.h:122
Aws::ECS::Model::Attachment::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Attachment.h:137
Aws::ECS::Model::Attachment::WithStatus
Attachment & WithStatus(Aws::String &&value)
Definition: Attachment.h:172
Aws::ECS::Model::Attachment::SetType
void SetType(const Aws::String &value)
Definition: Attachment.h:97
Aws::ECS::Model::Attachment::Attachment
Attachment()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
KeyValuePair.h
Aws::ECS::Model::Attachment::SetDetails
void SetDetails(Aws::Vector< KeyValuePair > &&value)
Definition: Attachment.h:208
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Attachment::WithStatus
Attachment & WithStatus(const Aws::String &value)
Definition: Attachment.h:165
Aws::ECS::Model::Attachment::WithStatus
Attachment & WithStatus(const char *value)
Definition: Attachment.h:179
Aws::ECS::Model::Attachment::GetType
const Aws::String & GetType() const
Definition: Attachment.h:87
Aws::ECS::Model::Attachment::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Attachment.h:92
Aws::ECS::Model::Attachment::SetId
void SetId(Aws::String &&value)
Definition: Attachment.h:61
Aws::ECS::Model::Attachment::WithId
Attachment & WithId(const char *value)
Definition: Attachment.h:81
Aws::ECS::Model::Attachment::GetStatus
const Aws::String & GetStatus() const
Definition: Attachment.h:130
Aws::ECS::Model::Attachment::SetId
void SetId(const char *value)
Definition: Attachment.h:66
Aws::ECS::Model::Attachment::SetStatus
void SetStatus(const char *value)
Definition: Attachment.h:158
Aws::ECS::Model::Attachment::operator=
Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Attachment::Attachment
Attachment(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECS::Model::Attachment::GetDetails
const Aws::Vector< KeyValuePair > & GetDetails() const
Definition: Attachment.h:187
Aws::ECS::Model::Attachment::WithType
Attachment & WithType(Aws::String &&value)
Definition: Attachment.h:117
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Attachment::WithType
Attachment & WithType(const Aws::String &value)
Definition: Attachment.h:112
Aws::ECS::Model::Attachment::WithDetails
Attachment & WithDetails(const Aws::Vector< KeyValuePair > &value)
Definition: Attachment.h:215
Aws::ECS::Model::Attachment::AddDetails
Attachment & AddDetails(KeyValuePair &&value)
Definition: Attachment.h:236
Aws::ECS::Model::Attachment::AddDetails
Attachment & AddDetails(const KeyValuePair &value)
Definition: Attachment.h:229
Aws::ECS::Model::Attachment::WithDetails
Attachment & WithDetails(Aws::Vector< KeyValuePair > &&value)
Definition: Attachment.h:222
Aws::ECS::Model::KeyValuePair
Definition: KeyValuePair.h:32
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::Attachment::SetDetails
void SetDetails(const Aws::Vector< KeyValuePair > &value)
Definition: Attachment.h:201
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Attachment::SetId
void SetId(const Aws::String &value)
Definition: Attachment.h:56
Aws::ECS::Model::Attachment::DetailsHasBeenSet
bool DetailsHasBeenSet() const
Definition: Attachment.h:194
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::Attachment::SetStatus
void SetStatus(Aws::String &&value)
Definition: Attachment.h:151
Aws::ECS::Model::Attachment::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Attachment.h:51
ECS_EXPORTS.h
Aws::ECS::Model::Attachment::WithId
Attachment & WithId(Aws::String &&value)
Definition: Attachment.h:76
Aws::ECS::Model::Attachment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const