AWS SDK for C++  1.9.71
AWS SDK for C++
ImportSnapshotTask.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetDescription() const{ return m_description; }
49 
53  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 
58  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 
63  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 
68  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 
73  inline ImportSnapshotTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
74 
78  inline ImportSnapshotTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 
83  inline ImportSnapshotTask& WithDescription(const char* value) { SetDescription(value); return *this;}
84 
85 
89  inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
90 
94  inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; }
95 
99  inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
100 
104  inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); }
105 
109  inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); }
110 
114  inline ImportSnapshotTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
115 
119  inline ImportSnapshotTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;}
120 
124  inline ImportSnapshotTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
125 
126 
130  inline const SnapshotTaskDetail& GetSnapshotTaskDetail() const{ return m_snapshotTaskDetail; }
131 
135  inline bool SnapshotTaskDetailHasBeenSet() const { return m_snapshotTaskDetailHasBeenSet; }
136 
140  inline void SetSnapshotTaskDetail(const SnapshotTaskDetail& value) { m_snapshotTaskDetailHasBeenSet = true; m_snapshotTaskDetail = value; }
141 
145  inline void SetSnapshotTaskDetail(SnapshotTaskDetail&& value) { m_snapshotTaskDetailHasBeenSet = true; m_snapshotTaskDetail = std::move(value); }
146 
150  inline ImportSnapshotTask& WithSnapshotTaskDetail(const SnapshotTaskDetail& value) { SetSnapshotTaskDetail(value); return *this;}
151 
155  inline ImportSnapshotTask& WithSnapshotTaskDetail(SnapshotTaskDetail&& value) { SetSnapshotTaskDetail(std::move(value)); return *this;}
156 
157 
161  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
162 
166  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 
171  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
172 
176  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 
181  inline ImportSnapshotTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
182 
186  inline ImportSnapshotTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
187 
191  inline ImportSnapshotTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
192 
196  inline ImportSnapshotTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
197 
198  private:
199 
200  Aws::String m_description;
201  bool m_descriptionHasBeenSet;
202 
203  Aws::String m_importTaskId;
204  bool m_importTaskIdHasBeenSet;
205 
206  SnapshotTaskDetail m_snapshotTaskDetail;
207  bool m_snapshotTaskDetailHasBeenSet;
208 
209  Aws::Vector<Tag> m_tags;
210  bool m_tagsHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace EC2
215 } // namespace Aws
Aws::EC2::Model::ImportSnapshotTask::WithSnapshotTaskDetail
ImportSnapshotTask & WithSnapshotTaskDetail(SnapshotTaskDetail &&value)
Definition: ImportSnapshotTask.h:155
Aws::EC2::Model::ImportSnapshotTask::SetImportTaskId
void SetImportTaskId(Aws::String &&value)
Definition: ImportSnapshotTask.h:104
Aws::EC2::Model::ImportSnapshotTask::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImportSnapshotTask.h:63
Aws::EC2::Model::ImportSnapshotTask::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ImportSnapshotTask.h:171
Aws::EC2::Model::Tag
Definition: Tag.h:32
SnapshotTaskDetail.h
Aws::EC2::Model::SnapshotTaskDetail
Definition: SnapshotTaskDetail.h:33
Aws::EC2::Model::ImportSnapshotTask::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ImportSnapshotTask.h:176
Aws::EC2::Model::ImportSnapshotTask::GetImportTaskId
const Aws::String & GetImportTaskId() const
Definition: ImportSnapshotTask.h:89
Aws::EC2::Model::ImportSnapshotTask::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ImportSnapshotTask.h:166
Aws::EC2::Model::ImportSnapshotTask::WithDescription
ImportSnapshotTask & WithDescription(Aws::String &&value)
Definition: ImportSnapshotTask.h:78
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ImportSnapshotTask::WithTags
ImportSnapshotTask & WithTags(const Aws::Vector< Tag > &value)
Definition: ImportSnapshotTask.h:181
Aws::EC2::Model::ImportSnapshotTask::ImportTaskIdHasBeenSet
bool ImportTaskIdHasBeenSet() const
Definition: ImportSnapshotTask.h:94
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ImportSnapshotTask::WithTags
ImportSnapshotTask & WithTags(Aws::Vector< Tag > &&value)
Definition: ImportSnapshotTask.h:186
Aws::EC2::Model::ImportSnapshotTask::WithSnapshotTaskDetail
ImportSnapshotTask & WithSnapshotTaskDetail(const SnapshotTaskDetail &value)
Definition: ImportSnapshotTask.h:150
Aws::EC2::Model::ImportSnapshotTask::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::EC2::Model::ImportSnapshotTask::ImportSnapshotTask
ImportSnapshotTask()
AWSVector.h
Tag.h
Aws::EC2::Model::ImportSnapshotTask::WithImportTaskId
ImportSnapshotTask & WithImportTaskId(const Aws::String &value)
Definition: ImportSnapshotTask.h:114
Aws::EC2::Model::ImportSnapshotTask
Definition: ImportSnapshotTask.h:35
Aws::EC2::Model::ImportSnapshotTask::WithImportTaskId
ImportSnapshotTask & WithImportTaskId(const char *value)
Definition: ImportSnapshotTask.h:124
Aws::EC2::Model::ImportSnapshotTask::WithImportTaskId
ImportSnapshotTask & WithImportTaskId(Aws::String &&value)
Definition: ImportSnapshotTask.h:119
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ImportSnapshotTask::SnapshotTaskDetailHasBeenSet
bool SnapshotTaskDetailHasBeenSet() const
Definition: ImportSnapshotTask.h:135
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ImportSnapshotTask::GetDescription
const Aws::String & GetDescription() const
Definition: ImportSnapshotTask.h:48
Aws::EC2::Model::ImportSnapshotTask::operator=
ImportSnapshotTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::ImportSnapshotTask::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImportSnapshotTask.h:53
Aws::EC2::Model::ImportSnapshotTask::AddTags
ImportSnapshotTask & AddTags(const Tag &value)
Definition: ImportSnapshotTask.h:191
Aws::EC2::Model::ImportSnapshotTask::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ImportSnapshotTask.h:161
Aws::EC2::Model::ImportSnapshotTask::AddTags
ImportSnapshotTask & AddTags(Tag &&value)
Definition: ImportSnapshotTask.h:196
Aws::EC2::Model::ImportSnapshotTask::SetSnapshotTaskDetail
void SetSnapshotTaskDetail(const SnapshotTaskDetail &value)
Definition: ImportSnapshotTask.h:140
Aws::EC2::Model::ImportSnapshotTask::SetSnapshotTaskDetail
void SetSnapshotTaskDetail(SnapshotTaskDetail &&value)
Definition: ImportSnapshotTask.h:145
Aws::EC2::Model::ImportSnapshotTask::SetImportTaskId
void SetImportTaskId(const char *value)
Definition: ImportSnapshotTask.h:109
Aws::EC2::Model::ImportSnapshotTask::WithDescription
ImportSnapshotTask & WithDescription(const char *value)
Definition: ImportSnapshotTask.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ImportSnapshotTask::WithDescription
ImportSnapshotTask & WithDescription(const Aws::String &value)
Definition: ImportSnapshotTask.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ImportSnapshotTask::SetDescription
void SetDescription(const char *value)
Definition: ImportSnapshotTask.h:68
Aws::EC2::Model::ImportSnapshotTask::ImportSnapshotTask
ImportSnapshotTask(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ImportSnapshotTask::GetSnapshotTaskDetail
const SnapshotTaskDetail & GetSnapshotTaskDetail() const
Definition: ImportSnapshotTask.h:130
EC2_EXPORTS.h
Aws::EC2::Model::ImportSnapshotTask::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ImportSnapshotTask::SetImportTaskId
void SetImportTaskId(const Aws::String &value)
Definition: ImportSnapshotTask.h:99
Aws::EC2::Model::ImportSnapshotTask::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImportSnapshotTask.h:58