AWS SDK for C++  1.9.67
AWS SDK for C++
CancelImportTaskResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
40 
44  inline void SetImportTaskId(const Aws::String& value) { m_importTaskId = value; }
45 
49  inline void SetImportTaskId(Aws::String&& value) { m_importTaskId = std::move(value); }
50 
54  inline void SetImportTaskId(const char* value) { m_importTaskId.assign(value); }
55 
59  inline CancelImportTaskResponse& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
60 
64  inline CancelImportTaskResponse& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;}
65 
69  inline CancelImportTaskResponse& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
70 
71 
75  inline const Aws::String& GetPreviousState() const{ return m_previousState; }
76 
80  inline void SetPreviousState(const Aws::String& value) { m_previousState = value; }
81 
85  inline void SetPreviousState(Aws::String&& value) { m_previousState = std::move(value); }
86 
90  inline void SetPreviousState(const char* value) { m_previousState.assign(value); }
91 
95  inline CancelImportTaskResponse& WithPreviousState(const Aws::String& value) { SetPreviousState(value); return *this;}
96 
100  inline CancelImportTaskResponse& WithPreviousState(Aws::String&& value) { SetPreviousState(std::move(value)); return *this;}
101 
105  inline CancelImportTaskResponse& WithPreviousState(const char* value) { SetPreviousState(value); return *this;}
106 
107 
111  inline const Aws::String& GetState() const{ return m_state; }
112 
116  inline void SetState(const Aws::String& value) { m_state = value; }
117 
121  inline void SetState(Aws::String&& value) { m_state = std::move(value); }
122 
126  inline void SetState(const char* value) { m_state.assign(value); }
127 
131  inline CancelImportTaskResponse& WithState(const Aws::String& value) { SetState(value); return *this;}
132 
136  inline CancelImportTaskResponse& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
137 
141  inline CancelImportTaskResponse& WithState(const char* value) { SetState(value); return *this;}
142 
143 
144 
145  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
146 
147 
148  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
149 
150 
151  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
152 
153 
154  inline CancelImportTaskResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
155 
156 
157  inline CancelImportTaskResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
158 
159  private:
160 
161  Aws::String m_importTaskId;
162 
163  Aws::String m_previousState;
164 
165  Aws::String m_state;
166 
167  ResponseMetadata m_responseMetadata;
168  };
169 
170 } // namespace Model
171 } // namespace EC2
172 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CancelImportTaskResponse::WithPreviousState
CancelImportTaskResponse & WithPreviousState(Aws::String &&value)
Definition: CancelImportTaskResponse.h:100
Aws::EC2::Model::CancelImportTaskResponse::CancelImportTaskResponse
CancelImportTaskResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CancelImportTaskResponse::SetState
void SetState(const char *value)
Definition: CancelImportTaskResponse.h:126
Aws::EC2::Model::CancelImportTaskResponse::WithImportTaskId
CancelImportTaskResponse & WithImportTaskId(const Aws::String &value)
Definition: CancelImportTaskResponse.h:59
Aws::EC2::Model::CancelImportTaskResponse::SetImportTaskId
void SetImportTaskId(const char *value)
Definition: CancelImportTaskResponse.h:54
Aws::EC2::Model::CancelImportTaskResponse::CancelImportTaskResponse
CancelImportTaskResponse()
Aws::EC2::Model::CancelImportTaskResponse::WithImportTaskId
CancelImportTaskResponse & WithImportTaskId(Aws::String &&value)
Definition: CancelImportTaskResponse.h:64
Aws::EC2::Model::CancelImportTaskResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CancelImportTaskResponse.h:148
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CancelImportTaskResponse::WithState
CancelImportTaskResponse & WithState(const char *value)
Definition: CancelImportTaskResponse.h:141
Aws::EC2::Model::CancelImportTaskResponse::WithResponseMetadata
CancelImportTaskResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CancelImportTaskResponse.h:154
Aws::EC2::Model::CancelImportTaskResponse::operator=
CancelImportTaskResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ResponseMetadata.h
Aws::EC2::Model::CancelImportTaskResponse::WithPreviousState
CancelImportTaskResponse & WithPreviousState(const Aws::String &value)
Definition: CancelImportTaskResponse.h:95
Aws::EC2::Model::CancelImportTaskResponse::GetState
const Aws::String & GetState() const
Definition: CancelImportTaskResponse.h:111
Aws::EC2::Model::CancelImportTaskResponse::GetImportTaskId
const Aws::String & GetImportTaskId() const
Definition: CancelImportTaskResponse.h:39
Aws::EC2::Model::CancelImportTaskResponse::SetPreviousState
void SetPreviousState(const Aws::String &value)
Definition: CancelImportTaskResponse.h:80
Aws::EC2::Model::CancelImportTaskResponse::WithResponseMetadata
CancelImportTaskResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CancelImportTaskResponse.h:157
Aws::EC2::Model::CancelImportTaskResponse::SetImportTaskId
void SetImportTaskId(Aws::String &&value)
Definition: CancelImportTaskResponse.h:49
Aws::EC2::Model::CancelImportTaskResponse::SetState
void SetState(const Aws::String &value)
Definition: CancelImportTaskResponse.h:116
Aws::EC2::Model::CancelImportTaskResponse::SetState
void SetState(Aws::String &&value)
Definition: CancelImportTaskResponse.h:121
Aws::EC2::Model::CancelImportTaskResponse::SetPreviousState
void SetPreviousState(Aws::String &&value)
Definition: CancelImportTaskResponse.h:85
Aws::EC2::Model::CancelImportTaskResponse::SetPreviousState
void SetPreviousState(const char *value)
Definition: CancelImportTaskResponse.h:90
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CancelImportTaskResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CancelImportTaskResponse.h:145
Aws::EC2::Model::CancelImportTaskResponse::WithPreviousState
CancelImportTaskResponse & WithPreviousState(const char *value)
Definition: CancelImportTaskResponse.h:105
Aws::EC2::Model::CancelImportTaskResponse::WithImportTaskId
CancelImportTaskResponse & WithImportTaskId(const char *value)
Definition: CancelImportTaskResponse.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CancelImportTaskResponse::GetPreviousState
const Aws::String & GetPreviousState() const
Definition: CancelImportTaskResponse.h:75
Aws::EC2::Model::CancelImportTaskResponse::WithState
CancelImportTaskResponse & WithState(const Aws::String &value)
Definition: CancelImportTaskResponse.h:131
Aws::EC2::Model::CancelImportTaskResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CancelImportTaskResponse.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CancelImportTaskResponse::WithState
CancelImportTaskResponse & WithState(Aws::String &&value)
Definition: CancelImportTaskResponse.h:136
EC2_EXPORTS.h
Aws::EC2::Model::CancelImportTaskResponse
Definition: CancelImportTaskResponse.h:29
Aws::EC2::Model::CancelImportTaskResponse::SetImportTaskId
void SetImportTaskId(const Aws::String &value)
Definition: CancelImportTaskResponse.h:44