AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportSnapshotTask.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API ImportSnapshotTask();
38 AWS_EC2_API ImportSnapshotTask(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline ImportSnapshotTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline ImportSnapshotTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline ImportSnapshotTask& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
63 inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
64 inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; }
65 inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
66 inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); }
67 inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); }
68 inline ImportSnapshotTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
69 inline ImportSnapshotTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;}
70 inline ImportSnapshotTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
72
74
77 inline const SnapshotTaskDetail& GetSnapshotTaskDetail() const{ return m_snapshotTaskDetail; }
78 inline bool SnapshotTaskDetailHasBeenSet() const { return m_snapshotTaskDetailHasBeenSet; }
79 inline void SetSnapshotTaskDetail(const SnapshotTaskDetail& value) { m_snapshotTaskDetailHasBeenSet = true; m_snapshotTaskDetail = value; }
80 inline void SetSnapshotTaskDetail(SnapshotTaskDetail&& value) { m_snapshotTaskDetailHasBeenSet = true; m_snapshotTaskDetail = std::move(value); }
82 inline ImportSnapshotTask& WithSnapshotTaskDetail(SnapshotTaskDetail&& value) { SetSnapshotTaskDetail(std::move(value)); return *this;}
84
86
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline ImportSnapshotTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
94 inline ImportSnapshotTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 inline ImportSnapshotTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
96 inline ImportSnapshotTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
103 Aws::String m_importTaskId;
104 bool m_importTaskIdHasBeenSet = false;
105
106 SnapshotTaskDetail m_snapshotTaskDetail;
107 bool m_snapshotTaskDetailHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
ImportSnapshotTask & WithSnapshotTaskDetail(const SnapshotTaskDetail &value)
ImportSnapshotTask & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetDescription() const
const SnapshotTaskDetail & GetSnapshotTaskDetail() const
ImportSnapshotTask & WithImportTaskId(Aws::String &&value)
void SetSnapshotTaskDetail(SnapshotTaskDetail &&value)
void SetImportTaskId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetSnapshotTaskDetail(const SnapshotTaskDetail &value)
AWS_EC2_API ImportSnapshotTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(Aws::Vector< Tag > &&value)
ImportSnapshotTask & WithDescription(Aws::String &&value)
ImportSnapshotTask & WithSnapshotTaskDetail(SnapshotTaskDetail &&value)
ImportSnapshotTask & WithTags(const Aws::Vector< Tag > &value)
ImportSnapshotTask & AddTags(const Tag &value)
void SetDescription(const Aws::String &value)
AWS_EC2_API ImportSnapshotTask(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetImportTaskId() const
ImportSnapshotTask & WithDescription(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportSnapshotTask & WithDescription(const Aws::String &value)
void SetImportTaskId(Aws::String &&value)
ImportSnapshotTask & WithImportTaskId(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetDescription(Aws::String &&value)
ImportSnapshotTask & AddTags(Tag &&value)
ImportSnapshotTask & WithImportTaskId(const Aws::String &value)
void SetImportTaskId(const char *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