AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StoreImageTaskResponse.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/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAmiId() const{ return m_amiId; }
49 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
50 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
51 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
52 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
53 inline StoreImageTaskResponse& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
54 inline StoreImageTaskResponse& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
55 inline StoreImageTaskResponse& WithAmiId(const char* value) { SetAmiId(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; }
63 inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; }
64 inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; }
65 inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); }
67 inline StoreImageTaskResponse& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetBucket() const{ return m_bucket; }
75 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
76 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
77 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
78 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
79 inline StoreImageTaskResponse& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
80 inline StoreImageTaskResponse& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
81 inline StoreImageTaskResponse& WithBucket(const char* value) { SetBucket(value); return *this;}
83
85
88 inline const Aws::String& GetS3objectKey() const{ return m_s3objectKey; }
89 inline bool S3objectKeyHasBeenSet() const { return m_s3objectKeyHasBeenSet; }
90 inline void SetS3objectKey(const Aws::String& value) { m_s3objectKeyHasBeenSet = true; m_s3objectKey = value; }
91 inline void SetS3objectKey(Aws::String&& value) { m_s3objectKeyHasBeenSet = true; m_s3objectKey = std::move(value); }
92 inline void SetS3objectKey(const char* value) { m_s3objectKeyHasBeenSet = true; m_s3objectKey.assign(value); }
93 inline StoreImageTaskResponse& WithS3objectKey(const Aws::String& value) { SetS3objectKey(value); return *this;}
94 inline StoreImageTaskResponse& WithS3objectKey(Aws::String&& value) { SetS3objectKey(std::move(value)); return *this;}
95 inline StoreImageTaskResponse& WithS3objectKey(const char* value) { SetS3objectKey(value); return *this;}
97
99
102 inline int GetProgressPercentage() const{ return m_progressPercentage; }
103 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
104 inline void SetProgressPercentage(int value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; }
105 inline StoreImageTaskResponse& WithProgressPercentage(int value) { SetProgressPercentage(value); return *this;}
107
109
113 inline const Aws::String& GetStoreTaskState() const{ return m_storeTaskState; }
114 inline bool StoreTaskStateHasBeenSet() const { return m_storeTaskStateHasBeenSet; }
115 inline void SetStoreTaskState(const Aws::String& value) { m_storeTaskStateHasBeenSet = true; m_storeTaskState = value; }
116 inline void SetStoreTaskState(Aws::String&& value) { m_storeTaskStateHasBeenSet = true; m_storeTaskState = std::move(value); }
117 inline void SetStoreTaskState(const char* value) { m_storeTaskStateHasBeenSet = true; m_storeTaskState.assign(value); }
118 inline StoreImageTaskResponse& WithStoreTaskState(const Aws::String& value) { SetStoreTaskState(value); return *this;}
119 inline StoreImageTaskResponse& WithStoreTaskState(Aws::String&& value) { SetStoreTaskState(std::move(value)); return *this;}
120 inline StoreImageTaskResponse& WithStoreTaskState(const char* value) { SetStoreTaskState(value); return *this;}
122
124
128 inline const Aws::String& GetStoreTaskFailureReason() const{ return m_storeTaskFailureReason; }
129 inline bool StoreTaskFailureReasonHasBeenSet() const { return m_storeTaskFailureReasonHasBeenSet; }
130 inline void SetStoreTaskFailureReason(const Aws::String& value) { m_storeTaskFailureReasonHasBeenSet = true; m_storeTaskFailureReason = value; }
131 inline void SetStoreTaskFailureReason(Aws::String&& value) { m_storeTaskFailureReasonHasBeenSet = true; m_storeTaskFailureReason = std::move(value); }
132 inline void SetStoreTaskFailureReason(const char* value) { m_storeTaskFailureReasonHasBeenSet = true; m_storeTaskFailureReason.assign(value); }
135 inline StoreImageTaskResponse& WithStoreTaskFailureReason(const char* value) { SetStoreTaskFailureReason(value); return *this;}
137 private:
138
139 Aws::String m_amiId;
140 bool m_amiIdHasBeenSet = false;
141
142 Aws::Utils::DateTime m_taskStartTime;
143 bool m_taskStartTimeHasBeenSet = false;
144
145 Aws::String m_bucket;
146 bool m_bucketHasBeenSet = false;
147
148 Aws::String m_s3objectKey;
149 bool m_s3objectKeyHasBeenSet = false;
150
151 int m_progressPercentage;
152 bool m_progressPercentageHasBeenSet = false;
153
154 Aws::String m_storeTaskState;
155 bool m_storeTaskStateHasBeenSet = false;
156
157 Aws::String m_storeTaskFailureReason;
158 bool m_storeTaskFailureReasonHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace EC2
163} // namespace Aws
StoreImageTaskResponse & WithStoreTaskFailureReason(const Aws::String &value)
StoreImageTaskResponse & WithProgressPercentage(int value)
StoreImageTaskResponse & WithStoreTaskFailureReason(const char *value)
StoreImageTaskResponse & WithS3objectKey(const Aws::String &value)
StoreImageTaskResponse & WithTaskStartTime(Aws::Utils::DateTime &&value)
void SetTaskStartTime(const Aws::Utils::DateTime &value)
StoreImageTaskResponse & WithAmiId(const char *value)
AWS_EC2_API StoreImageTaskResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTaskStartTime(Aws::Utils::DateTime &&value)
StoreImageTaskResponse & WithBucket(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StoreImageTaskResponse & WithStoreTaskState(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetStoreTaskFailureReason() const
StoreImageTaskResponse & WithS3objectKey(Aws::String &&value)
AWS_EC2_API StoreImageTaskResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StoreImageTaskResponse & WithAmiId(const Aws::String &value)
StoreImageTaskResponse & WithStoreTaskFailureReason(Aws::String &&value)
StoreImageTaskResponse & WithAmiId(Aws::String &&value)
StoreImageTaskResponse & WithTaskStartTime(const Aws::Utils::DateTime &value)
StoreImageTaskResponse & WithStoreTaskState(const Aws::String &value)
const Aws::Utils::DateTime & GetTaskStartTime() const
void SetS3objectKey(const Aws::String &value)
void SetStoreTaskFailureReason(const Aws::String &value)
StoreImageTaskResponse & WithS3objectKey(const char *value)
StoreImageTaskResponse & WithBucket(Aws::String &&value)
StoreImageTaskResponse & WithStoreTaskState(const char *value)
void SetStoreTaskState(const Aws::String &value)
StoreImageTaskResponse & WithBucket(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream