AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportSnapshotTask.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/SnapshotTaskDetail.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API ImportSnapshotTask() = default;
33 AWS_EC2_API ImportSnapshotTask(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 ImportSnapshotTask& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetImportTaskId() const { return m_importTaskId; }
62 inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; }
63 template <typename ImportTaskIdT = Aws::String>
64 void SetImportTaskId(ImportTaskIdT&& value) {
65 m_importTaskIdHasBeenSet = true;
66 m_importTaskId = std::forward<ImportTaskIdT>(value);
67 }
68 template <typename ImportTaskIdT = Aws::String>
69 ImportSnapshotTask& WithImportTaskId(ImportTaskIdT&& value) {
70 SetImportTaskId(std::forward<ImportTaskIdT>(value));
71 return *this;
72 }
74
76
79 inline const SnapshotTaskDetail& GetSnapshotTaskDetail() const { return m_snapshotTaskDetail; }
80 inline bool SnapshotTaskDetailHasBeenSet() const { return m_snapshotTaskDetailHasBeenSet; }
81 template <typename SnapshotTaskDetailT = SnapshotTaskDetail>
82 void SetSnapshotTaskDetail(SnapshotTaskDetailT&& value) {
83 m_snapshotTaskDetailHasBeenSet = true;
84 m_snapshotTaskDetail = std::forward<SnapshotTaskDetailT>(value);
85 }
86 template <typename SnapshotTaskDetailT = SnapshotTaskDetail>
87 ImportSnapshotTask& WithSnapshotTaskDetail(SnapshotTaskDetailT&& value) {
88 SetSnapshotTaskDetail(std::forward<SnapshotTaskDetailT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template <typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags = std::forward<TagsT>(value);
103 }
104 template <typename TagsT = Aws::Vector<Tag>>
105 ImportSnapshotTask& WithTags(TagsT&& value) {
106 SetTags(std::forward<TagsT>(value));
107 return *this;
108 }
109 template <typename TagsT = Tag>
110 ImportSnapshotTask& AddTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags.emplace_back(std::forward<TagsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_description;
118
119 Aws::String m_importTaskId;
120
121 SnapshotTaskDetail m_snapshotTaskDetail;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_descriptionHasBeenSet = false;
125 bool m_importTaskIdHasBeenSet = false;
126 bool m_snapshotTaskDetailHasBeenSet = false;
127 bool m_tagsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
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)
AWS_EC2_API ImportSnapshotTask(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportSnapshotTask & WithTags(TagsT &&value)
AWS_EC2_API ImportSnapshotTask()=default
const Aws::String & GetImportTaskId() 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
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