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/SnapshotTaskDetail.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
51 template<
typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
53 template<
typename DescriptionT = Aws::String>
63 template<
typename ImportTaskIdT = Aws::String>
64 void SetImportTaskId(ImportTaskIdT&& value) { m_importTaskIdHasBeenSet =
true; m_importTaskId = std::forward<ImportTaskIdT>(value); }
65 template<
typename ImportTaskIdT = Aws::String>
75 template<
typename SnapshotTaskDetailT = SnapshotTaskDetail>
76 void SetSnapshotTaskDetail(SnapshotTaskDetailT&& value) { m_snapshotTaskDetailHasBeenSet =
true; m_snapshotTaskDetail = std::forward<SnapshotTaskDetailT>(value); }
77 template<
typename SnapshotTaskDetailT = SnapshotTaskDetail>
87 template<
typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
89 template<
typename TagsT = Aws::Vector<Tag>>
91 template<
typename TagsT = Tag>
92 ImportSnapshotTask&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
97 bool m_descriptionHasBeenSet =
false;
100 bool m_importTaskIdHasBeenSet =
false;
103 bool m_snapshotTaskDetailHasBeenSet =
false;
106 bool m_tagsHasBeenSet =
false;
const Aws::String & GetDescription() const
const SnapshotTaskDetail & GetSnapshotTaskDetail() const
void SetDescription(DescriptionT &&value)
ImportSnapshotTask & WithSnapshotTaskDetail(SnapshotTaskDetailT &&value)
AWS_EC2_API ImportSnapshotTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotTaskDetail(SnapshotTaskDetailT &&value)
void SetImportTaskId(ImportTaskIdT &&value)
bool DescriptionHasBeenSet() const
AWS_EC2_API ImportSnapshotTask(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SnapshotTaskDetailHasBeenSet() const
ImportSnapshotTask & WithTags(TagsT &&value)
AWS_EC2_API ImportSnapshotTask()=default
bool ImportTaskIdHasBeenSet() const
const Aws::String & GetImportTaskId() const
bool TagsHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportSnapshotTask & WithDescription(DescriptionT &&value)
ImportSnapshotTask & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
ImportSnapshotTask & WithImportTaskId(ImportTaskIdT &&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