AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BundleTask.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/BundleTaskState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/Storage.h>
13#include <aws/ec2/model/BundleTaskError.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_EC2_API BundleTask();
39 AWS_EC2_API BundleTask(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API BundleTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
51 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
54 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
55 inline BundleTask& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
56 inline BundleTask& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
57 inline BundleTask& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
59
61
64 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
65 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
66 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
67 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
68 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
69 inline BundleTask& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
70 inline BundleTask& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
71 inline BundleTask& WithBundleId(const char* value) { SetBundleId(value); return *this;}
73
75
78 inline const BundleTaskState& GetState() const{ return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(const BundleTaskState& value) { m_stateHasBeenSet = true; m_state = value; }
81 inline void SetState(BundleTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
82 inline BundleTask& WithState(const BundleTaskState& value) { SetState(value); return *this;}
83 inline BundleTask& WithState(BundleTaskState&& value) { SetState(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
91 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
92 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
93 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
94 inline BundleTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
95 inline BundleTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
103 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
104 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
105 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
106 inline BundleTask& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
107 inline BundleTask& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
109
111
114 inline const Storage& GetStorage() const{ return m_storage; }
115 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
116 inline void SetStorage(const Storage& value) { m_storageHasBeenSet = true; m_storage = value; }
117 inline void SetStorage(Storage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
118 inline BundleTask& WithStorage(const Storage& value) { SetStorage(value); return *this;}
119 inline BundleTask& WithStorage(Storage&& value) { SetStorage(std::move(value)); return *this;}
121
123
126 inline const Aws::String& GetProgress() const{ return m_progress; }
127 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
128 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
129 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
130 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
131 inline BundleTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
132 inline BundleTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
133 inline BundleTask& WithProgress(const char* value) { SetProgress(value); return *this;}
135
137
140 inline const BundleTaskError& GetBundleTaskError() const{ return m_bundleTaskError; }
141 inline bool BundleTaskErrorHasBeenSet() const { return m_bundleTaskErrorHasBeenSet; }
142 inline void SetBundleTaskError(const BundleTaskError& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = value; }
143 inline void SetBundleTaskError(BundleTaskError&& value) { m_bundleTaskErrorHasBeenSet = true; m_bundleTaskError = std::move(value); }
144 inline BundleTask& WithBundleTaskError(const BundleTaskError& value) { SetBundleTaskError(value); return *this;}
145 inline BundleTask& WithBundleTaskError(BundleTaskError&& value) { SetBundleTaskError(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_instanceId;
150 bool m_instanceIdHasBeenSet = false;
151
152 Aws::String m_bundleId;
153 bool m_bundleIdHasBeenSet = false;
154
155 BundleTaskState m_state;
156 bool m_stateHasBeenSet = false;
157
158 Aws::Utils::DateTime m_startTime;
159 bool m_startTimeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_updateTime;
162 bool m_updateTimeHasBeenSet = false;
163
164 Storage m_storage;
165 bool m_storageHasBeenSet = false;
166
167 Aws::String m_progress;
168 bool m_progressHasBeenSet = false;
169
170 BundleTaskError m_bundleTaskError;
171 bool m_bundleTaskErrorHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace EC2
176} // namespace Aws
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition BundleTask.h:104
void SetState(const BundleTaskState &value)
Definition BundleTask.h:80
bool UpdateTimeHasBeenSet() const
Definition BundleTask.h:103
BundleTask & WithBundleId(const char *value)
Definition BundleTask.h:71
BundleTask & WithStartTime(const Aws::Utils::DateTime &value)
Definition BundleTask.h:94
BundleTask & WithBundleTaskError(const BundleTaskError &value)
Definition BundleTask.h:144
void SetInstanceId(const Aws::String &value)
Definition BundleTask.h:52
const Aws::String & GetBundleId() const
Definition BundleTask.h:64
BundleTask & WithState(const BundleTaskState &value)
Definition BundleTask.h:82
BundleTask & WithProgress(Aws::String &&value)
Definition BundleTask.h:132
void SetStorage(const Storage &value)
Definition BundleTask.h:116
void SetBundleId(const Aws::String &value)
Definition BundleTask.h:66
const Aws::Utils::DateTime & GetStartTime() const
Definition BundleTask.h:90
void SetProgress(const char *value)
Definition BundleTask.h:130
BundleTask & WithStorage(const Storage &value)
Definition BundleTask.h:118
void SetStartTime(Aws::Utils::DateTime &&value)
Definition BundleTask.h:93
const Aws::String & GetInstanceId() const
Definition BundleTask.h:50
bool InstanceIdHasBeenSet() const
Definition BundleTask.h:51
BundleTask & WithBundleId(const Aws::String &value)
Definition BundleTask.h:69
BundleTask & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition BundleTask.h:107
const Aws::String & GetProgress() const
Definition BundleTask.h:126
BundleTask & WithBundleTaskError(BundleTaskError &&value)
Definition BundleTask.h:145
void SetBundleTaskError(BundleTaskError &&value)
Definition BundleTask.h:143
const BundleTaskError & GetBundleTaskError() const
Definition BundleTask.h:140
BundleTask & WithBundleId(Aws::String &&value)
Definition BundleTask.h:70
void SetInstanceId(Aws::String &&value)
Definition BundleTask.h:53
void SetState(BundleTaskState &&value)
Definition BundleTask.h:81
void SetBundleId(Aws::String &&value)
Definition BundleTask.h:67
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BundleTask & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition BundleTask.h:106
AWS_EC2_API BundleTask(const Aws::Utils::Xml::XmlNode &xmlNode)
const BundleTaskState & GetState() const
Definition BundleTask.h:78
bool StartTimeHasBeenSet() const
Definition BundleTask.h:91
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition BundleTask.h:105
const Storage & GetStorage() const
Definition BundleTask.h:114
BundleTask & WithProgress(const Aws::String &value)
Definition BundleTask.h:131
BundleTask & WithStorage(Storage &&value)
Definition BundleTask.h:119
bool BundleTaskErrorHasBeenSet() const
Definition BundleTask.h:141
void SetBundleId(const char *value)
Definition BundleTask.h:68
const Aws::Utils::DateTime & GetUpdateTime() const
Definition BundleTask.h:102
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BundleTask & WithInstanceId(const Aws::String &value)
Definition BundleTask.h:55
BundleTask & WithInstanceId(const char *value)
Definition BundleTask.h:57
void SetInstanceId(const char *value)
Definition BundleTask.h:54
void SetBundleTaskError(const BundleTaskError &value)
Definition BundleTask.h:142
AWS_EC2_API BundleTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
BundleTask & WithState(BundleTaskState &&value)
Definition BundleTask.h:83
bool BundleIdHasBeenSet() const
Definition BundleTask.h:65
BundleTask & WithStartTime(Aws::Utils::DateTime &&value)
Definition BundleTask.h:95
BundleTask & WithInstanceId(Aws::String &&value)
Definition BundleTask.h:56
bool ProgressHasBeenSet() const
Definition BundleTask.h:127
void SetProgress(Aws::String &&value)
Definition BundleTask.h:129
void SetStartTime(const Aws::Utils::DateTime &value)
Definition BundleTask.h:92
void SetStorage(Storage &&value)
Definition BundleTask.h:117
BundleTask & WithProgress(const char *value)
Definition BundleTask.h:133
void SetProgress(const Aws::String &value)
Definition BundleTask.h:128
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream