AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConversionTask.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/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>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API ConversionTask();
40 AWS_EC2_API ConversionTask(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetConversionTaskId() const{ return m_conversionTaskId; }
52 inline bool ConversionTaskIdHasBeenSet() const { return m_conversionTaskIdHasBeenSet; }
53 inline void SetConversionTaskId(const Aws::String& value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId = value; }
54 inline void SetConversionTaskId(Aws::String&& value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId = std::move(value); }
55 inline void SetConversionTaskId(const char* value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId.assign(value); }
56 inline ConversionTask& WithConversionTaskId(const Aws::String& value) { SetConversionTaskId(value); return *this;}
57 inline ConversionTask& WithConversionTaskId(Aws::String&& value) { SetConversionTaskId(std::move(value)); return *this;}
58 inline ConversionTask& WithConversionTaskId(const char* value) { SetConversionTaskId(value); return *this;}
60
62
66 inline const Aws::String& GetExpirationTime() const{ return m_expirationTime; }
67 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
68 inline void SetExpirationTime(const Aws::String& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
69 inline void SetExpirationTime(Aws::String&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
70 inline void SetExpirationTime(const char* value) { m_expirationTimeHasBeenSet = true; m_expirationTime.assign(value); }
71 inline ConversionTask& WithExpirationTime(const Aws::String& value) { SetExpirationTime(value); return *this;}
72 inline ConversionTask& WithExpirationTime(Aws::String&& value) { SetExpirationTime(std::move(value)); return *this;}
73 inline ConversionTask& WithExpirationTime(const char* value) { SetExpirationTime(value); return *this;}
75
77
81 inline const ImportInstanceTaskDetails& GetImportInstance() const{ return m_importInstance; }
82 inline bool ImportInstanceHasBeenSet() const { return m_importInstanceHasBeenSet; }
83 inline void SetImportInstance(const ImportInstanceTaskDetails& value) { m_importInstanceHasBeenSet = true; m_importInstance = value; }
84 inline void SetImportInstance(ImportInstanceTaskDetails&& value) { m_importInstanceHasBeenSet = true; m_importInstance = std::move(value); }
86 inline ConversionTask& WithImportInstance(ImportInstanceTaskDetails&& value) { SetImportInstance(std::move(value)); return *this;}
88
90
94 inline const ImportVolumeTaskDetails& GetImportVolume() const{ return m_importVolume; }
95 inline bool ImportVolumeHasBeenSet() const { return m_importVolumeHasBeenSet; }
96 inline void SetImportVolume(const ImportVolumeTaskDetails& value) { m_importVolumeHasBeenSet = true; m_importVolume = value; }
97 inline void SetImportVolume(ImportVolumeTaskDetails&& value) { m_importVolumeHasBeenSet = true; m_importVolume = std::move(value); }
98 inline ConversionTask& WithImportVolume(const ImportVolumeTaskDetails& value) { SetImportVolume(value); return *this;}
99 inline ConversionTask& WithImportVolume(ImportVolumeTaskDetails&& value) { SetImportVolume(std::move(value)); return *this;}
101
103
106 inline const ConversionTaskState& GetState() const{ return m_state; }
107 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
108 inline void SetState(const ConversionTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
109 inline void SetState(ConversionTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
110 inline ConversionTask& WithState(const ConversionTaskState& value) { SetState(value); return *this;}
111 inline ConversionTask& WithState(ConversionTaskState&& value) { SetState(std::move(value)); return *this;}
113
115
118 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
119 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
120 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
121 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
122 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
123 inline ConversionTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
124 inline ConversionTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
125 inline ConversionTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
127
129
132 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
136 inline ConversionTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
137 inline ConversionTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
138 inline ConversionTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
139 inline ConversionTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
141 private:
142
143 Aws::String m_conversionTaskId;
144 bool m_conversionTaskIdHasBeenSet = false;
145
146 Aws::String m_expirationTime;
147 bool m_expirationTimeHasBeenSet = false;
148
149 ImportInstanceTaskDetails m_importInstance;
150 bool m_importInstanceHasBeenSet = false;
151
152 ImportVolumeTaskDetails m_importVolume;
153 bool m_importVolumeHasBeenSet = false;
154
155 ConversionTaskState m_state;
156 bool m_stateHasBeenSet = false;
157
158 Aws::String m_statusMessage;
159 bool m_statusMessageHasBeenSet = false;
160
161 Aws::Vector<Tag> m_tags;
162 bool m_tagsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
AWS_EC2_API ConversionTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetConversionTaskId(Aws::String &&value)
ConversionTask & WithStatusMessage(const Aws::String &value)
void SetImportInstance(const ImportInstanceTaskDetails &value)
void SetImportVolume(ImportVolumeTaskDetails &&value)
void SetState(const ConversionTaskState &value)
ConversionTask & WithConversionTaskId(Aws::String &&value)
ConversionTask & WithImportInstance(const ImportInstanceTaskDetails &value)
ConversionTask & AddTags(Tag &&value)
ConversionTask & WithState(ConversionTaskState &&value)
ConversionTask & WithImportVolume(const ImportVolumeTaskDetails &value)
void SetStatusMessage(const Aws::String &value)
ConversionTask & AddTags(const Tag &value)
ConversionTask & WithStatusMessage(Aws::String &&value)
const Aws::String & GetStatusMessage() const
void SetConversionTaskId(const Aws::String &value)
const ImportInstanceTaskDetails & GetImportInstance() const
void SetStatusMessage(Aws::String &&value)
void SetState(ConversionTaskState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(const Aws::Vector< Tag > &value)
ConversionTask & WithConversionTaskId(const char *value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetConversionTaskId() const
ConversionTask & WithExpirationTime(Aws::String &&value)
ConversionTask & WithStatusMessage(const char *value)
const ImportVolumeTaskDetails & GetImportVolume() const
ConversionTask & WithState(const ConversionTaskState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ConversionTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetExpirationTime(const Aws::String &value)
ConversionTask & WithExpirationTime(const Aws::String &value)
void SetConversionTaskId(const char *value)
void SetExpirationTime(const char *value)
const ConversionTaskState & GetState() const
ConversionTask & WithTags(const Aws::Vector< Tag > &value)
ConversionTask & WithTags(Aws::Vector< Tag > &&value)
void SetImportInstance(ImportInstanceTaskDetails &&value)
const Aws::String & GetExpirationTime() const
ConversionTask & WithImportVolume(ImportVolumeTaskDetails &&value)
ConversionTask & WithExpirationTime(const char *value)
void SetExpirationTime(Aws::String &&value)
void SetImportVolume(const ImportVolumeTaskDetails &value)
ConversionTask & WithImportInstance(ImportInstanceTaskDetails &&value)
void SetTags(Aws::Vector< Tag > &&value)
ConversionTask & WithConversionTaskId(const Aws::String &value)
void SetStatusMessage(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