7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ExportToS3Task.h>
11#include <aws/ec2/model/InstanceExportDetails.h>
12#include <aws/ec2/model/ExportTaskState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Tag.h>
53 template<
typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
55 template<
typename DescriptionT = Aws::String>
65 template<
typename ExportTaskIdT = Aws::String>
66 void SetExportTaskId(ExportTaskIdT&& value) { m_exportTaskIdHasBeenSet =
true; m_exportTaskId = std::forward<ExportTaskIdT>(value); }
67 template<
typename ExportTaskIdT = Aws::String>
77 template<
typename ExportToS3TaskT = ExportToS3Task>
78 void SetExportToS3Task(ExportToS3TaskT&& value) { m_exportToS3TaskHasBeenSet =
true; m_exportToS3Task = std::forward<ExportToS3TaskT>(value); }
79 template<
typename ExportToS3TaskT = ExportToS3Task>
89 template<
typename InstanceExportDetailsT = InstanceExportDetails>
90 void SetInstanceExportDetails(InstanceExportDetailsT&& value) { m_instanceExportDetailsHasBeenSet =
true; m_instanceExportDetails = std::forward<InstanceExportDetailsT>(value); }
91 template<
typename InstanceExportDetailsT = InstanceExportDetails>
111 template<
typename StatusMessageT = Aws::String>
112 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
113 template<
typename StatusMessageT = Aws::String>
123 template<
typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
125 template<
typename TagsT = Aws::Vector<Tag>>
127 template<
typename TagsT = Tag>
128 ExportTask&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
133 bool m_descriptionHasBeenSet =
false;
136 bool m_exportTaskIdHasBeenSet =
false;
139 bool m_exportToS3TaskHasBeenSet =
false;
142 bool m_instanceExportDetailsHasBeenSet =
false;
145 bool m_stateHasBeenSet =
false;
148 bool m_statusMessageHasBeenSet =
false;
151 bool m_tagsHasBeenSet =
false;
const InstanceExportDetails & GetInstanceExportDetails() const
bool InstanceExportDetailsHasBeenSet() const
ExportTask & WithState(ExportTaskState value)
bool TagsHasBeenSet() const
bool StatusMessageHasBeenSet() const
void SetExportTaskId(ExportTaskIdT &&value)
void SetState(ExportTaskState value)
const ExportToS3Task & GetExportToS3Task() const
bool ExportToS3TaskHasBeenSet() const
void SetStatusMessage(StatusMessageT &&value)
ExportTask & WithTags(TagsT &&value)
const Aws::String & GetStatusMessage() const
const Aws::String & GetExportTaskId() const
bool ExportTaskIdHasBeenSet() const
AWS_EC2_API ExportTask()=default
ExportTask & WithInstanceExportDetails(InstanceExportDetailsT &&value)
void SetExportToS3Task(ExportToS3TaskT &&value)
ExportTaskState GetState() const
const Aws::Vector< Tag > & GetTags() const
ExportTask & WithExportTaskId(ExportTaskIdT &&value)
AWS_EC2_API ExportTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportTask & WithExportToS3Task(ExportToS3TaskT &&value)
void SetInstanceExportDetails(InstanceExportDetailsT &&value)
ExportTask & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
ExportTask & WithDescription(DescriptionT &&value)
void SetTags(TagsT &&value)
AWS_EC2_API ExportTask(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DescriptionHasBeenSet() const
bool StateHasBeenSet() const
ExportTask & WithStatusMessage(StatusMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream