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/ImportInstanceTaskDetails.h>
11#include <aws/ec2/model/ImportVolumeTaskDetails.h>
12#include <aws/ec2/model/ConversionTaskState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Tag.h>
53 template<
typename ConversionTaskIdT = Aws::String>
54 void SetConversionTaskId(ConversionTaskIdT&& value) { m_conversionTaskIdHasBeenSet =
true; m_conversionTaskId = std::forward<ConversionTaskIdT>(value); }
55 template<
typename ConversionTaskIdT = Aws::String>
66 template<
typename ExpirationTimeT = Aws::String>
67 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet =
true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
68 template<
typename ExpirationTimeT = Aws::String>
79 template<
typename ImportInstanceT = ImportInstanceTaskDetails>
80 void SetImportInstance(ImportInstanceT&& value) { m_importInstanceHasBeenSet =
true; m_importInstance = std::forward<ImportInstanceT>(value); }
81 template<
typename ImportInstanceT = ImportInstanceTaskDetails>
92 template<
typename ImportVolumeT = ImportVolumeTaskDetails>
93 void SetImportVolume(ImportVolumeT&& value) { m_importVolumeHasBeenSet =
true; m_importVolume = std::forward<ImportVolumeT>(value); }
94 template<
typename ImportVolumeT = ImportVolumeTaskDetails>
114 template<
typename StatusMessageT = Aws::String>
115 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
116 template<
typename StatusMessageT = Aws::String>
126 template<
typename TagsT = Aws::Vector<Tag>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
128 template<
typename TagsT = Aws::Vector<Tag>>
130 template<
typename TagsT = Tag>
131 ConversionTask&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
136 bool m_conversionTaskIdHasBeenSet =
false;
139 bool m_expirationTimeHasBeenSet =
false;
142 bool m_importInstanceHasBeenSet =
false;
145 bool m_importVolumeHasBeenSet =
false;
148 bool m_stateHasBeenSet =
false;
151 bool m_statusMessageHasBeenSet =
false;
154 bool m_tagsHasBeenSet =
false;
AWS_EC2_API ConversionTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetConversionTaskId(ConversionTaskIdT &&value)
ConversionTask & WithExpirationTime(ExpirationTimeT &&value)
const Aws::String & GetStatusMessage() const
const ImportInstanceTaskDetails & GetImportInstance() const
bool ExpirationTimeHasBeenSet() const
void SetImportInstance(ImportInstanceT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetStatusMessage(StatusMessageT &&value)
const Aws::String & GetConversionTaskId() const
ConversionTask & AddTags(TagsT &&value)
AWS_EC2_API ConversionTask()=default
const ImportVolumeTaskDetails & GetImportVolume() const
void SetState(ConversionTaskState value)
bool ImportInstanceHasBeenSet() const
ConversionTaskState GetState() const
ConversionTask & WithImportVolume(ImportVolumeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool ImportVolumeHasBeenSet() const
AWS_EC2_API ConversionTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ConversionTaskIdHasBeenSet() const
void SetImportVolume(ImportVolumeT &&value)
bool TagsHasBeenSet() const
bool StatusMessageHasBeenSet() const
bool StateHasBeenSet() const
ConversionTask & WithImportInstance(ImportInstanceT &&value)
ConversionTask & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetExpirationTime() const
void SetExpirationTime(ExpirationTimeT &&value)
ConversionTask & WithState(ConversionTaskState value)
ConversionTask & WithTags(TagsT &&value)
ConversionTask & WithConversionTaskId(ConversionTaskIdT &&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