AWS SDK for C++  1.9.153
AWS SDK for C++
ExecuteCommandResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_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 Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ECS
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
40 
44  inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; }
45 
49  inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); }
50 
54  inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); }
55 
59  inline ExecuteCommandResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
60 
64  inline ExecuteCommandResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
65 
69  inline ExecuteCommandResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
70 
71 
75  inline const Aws::String& GetContainerArn() const{ return m_containerArn; }
76 
80  inline void SetContainerArn(const Aws::String& value) { m_containerArn = value; }
81 
85  inline void SetContainerArn(Aws::String&& value) { m_containerArn = std::move(value); }
86 
90  inline void SetContainerArn(const char* value) { m_containerArn.assign(value); }
91 
95  inline ExecuteCommandResult& WithContainerArn(const Aws::String& value) { SetContainerArn(value); return *this;}
96 
100  inline ExecuteCommandResult& WithContainerArn(Aws::String&& value) { SetContainerArn(std::move(value)); return *this;}
101 
105  inline ExecuteCommandResult& WithContainerArn(const char* value) { SetContainerArn(value); return *this;}
106 
107 
111  inline const Aws::String& GetContainerName() const{ return m_containerName; }
112 
116  inline void SetContainerName(const Aws::String& value) { m_containerName = value; }
117 
121  inline void SetContainerName(Aws::String&& value) { m_containerName = std::move(value); }
122 
126  inline void SetContainerName(const char* value) { m_containerName.assign(value); }
127 
131  inline ExecuteCommandResult& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
132 
136  inline ExecuteCommandResult& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
137 
141  inline ExecuteCommandResult& WithContainerName(const char* value) { SetContainerName(value); return *this;}
142 
143 
149  inline bool GetInteractive() const{ return m_interactive; }
150 
156  inline void SetInteractive(bool value) { m_interactive = value; }
157 
163  inline ExecuteCommandResult& WithInteractive(bool value) { SetInteractive(value); return *this;}
164 
165 
170  inline const Session& GetSession() const{ return m_session; }
171 
176  inline void SetSession(const Session& value) { m_session = value; }
177 
182  inline void SetSession(Session&& value) { m_session = std::move(value); }
183 
188  inline ExecuteCommandResult& WithSession(const Session& value) { SetSession(value); return *this;}
189 
194  inline ExecuteCommandResult& WithSession(Session&& value) { SetSession(std::move(value)); return *this;}
195 
196 
200  inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
201 
205  inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
206 
210  inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
211 
215  inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
216 
220  inline ExecuteCommandResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
221 
225  inline ExecuteCommandResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
226 
230  inline ExecuteCommandResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
231 
232  private:
233 
234  Aws::String m_clusterArn;
235 
236  Aws::String m_containerArn;
237 
238  Aws::String m_containerName;
239 
240  bool m_interactive;
241 
242  Session m_session;
243 
244  Aws::String m_taskArn;
245  };
246 
247 } // namespace Model
248 } // namespace ECS
249 } // namespace Aws
Aws::ECS::Model::ExecuteCommandResult::GetContainerArn
const Aws::String & GetContainerArn() const
Definition: ExecuteCommandResult.h:75
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::ExecuteCommandResult::SetInteractive
void SetInteractive(bool value)
Definition: ExecuteCommandResult.h:156
Aws::ECS::Model::ExecuteCommandResult::SetTaskArn
void SetTaskArn(Aws::String &&value)
Definition: ExecuteCommandResult.h:210
Aws::ECS::Model::ExecuteCommandResult::WithContainerArn
ExecuteCommandResult & WithContainerArn(const char *value)
Definition: ExecuteCommandResult.h:105
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ExecuteCommandResult::operator=
ExecuteCommandResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::ExecuteCommandResult::SetSession
void SetSession(Session &&value)
Definition: ExecuteCommandResult.h:182
Session.h
Aws::ECS::Model::ExecuteCommandResult::WithTaskArn
ExecuteCommandResult & WithTaskArn(const Aws::String &value)
Definition: ExecuteCommandResult.h:220
Aws::ECS::Model::ExecuteCommandResult
Definition: ExecuteCommandResult.h:29
Aws::ECS::Model::ExecuteCommandResult::SetTaskArn
void SetTaskArn(const char *value)
Definition: ExecuteCommandResult.h:215
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ExecuteCommandResult::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: ExecuteCommandResult.h:116
Aws::ECS::Model::ExecuteCommandResult::GetSession
const Session & GetSession() const
Definition: ExecuteCommandResult.h:170
Aws::ECS::Model::ExecuteCommandResult::WithSession
ExecuteCommandResult & WithSession(Session &&value)
Definition: ExecuteCommandResult.h:194
Aws::ECS::Model::ExecuteCommandResult::WithContainerArn
ExecuteCommandResult & WithContainerArn(const Aws::String &value)
Definition: ExecuteCommandResult.h:95
Aws::ECS::Model::ExecuteCommandResult::SetSession
void SetSession(const Session &value)
Definition: ExecuteCommandResult.h:176
Aws::ECS::Model::ExecuteCommandResult::WithInteractive
ExecuteCommandResult & WithInteractive(bool value)
Definition: ExecuteCommandResult.h:163
Aws::ECS::Model::ExecuteCommandResult::WithContainerName
ExecuteCommandResult & WithContainerName(const char *value)
Definition: ExecuteCommandResult.h:141
Aws::ECS::Model::ExecuteCommandResult::SetClusterArn
void SetClusterArn(const char *value)
Definition: ExecuteCommandResult.h:54
Aws::ECS::Model::ExecuteCommandResult::SetContainerArn
void SetContainerArn(const Aws::String &value)
Definition: ExecuteCommandResult.h:80
Aws::ECS::Model::ExecuteCommandResult::GetContainerName
const Aws::String & GetContainerName() const
Definition: ExecuteCommandResult.h:111
Aws::ECS::Model::ExecuteCommandResult::GetClusterArn
const Aws::String & GetClusterArn() const
Definition: ExecuteCommandResult.h:39
Aws::ECS::Model::ExecuteCommandResult::ExecuteCommandResult
ExecuteCommandResult()
Aws::ECS::Model::ExecuteCommandResult::SetContainerArn
void SetContainerArn(const char *value)
Definition: ExecuteCommandResult.h:90
AWSString.h
Aws::ECS::Model::ExecuteCommandResult::WithTaskArn
ExecuteCommandResult & WithTaskArn(Aws::String &&value)
Definition: ExecuteCommandResult.h:225
Aws::ECS::Model::ExecuteCommandResult::WithClusterArn
ExecuteCommandResult & WithClusterArn(Aws::String &&value)
Definition: ExecuteCommandResult.h:64
Aws::ECS::Model::ExecuteCommandResult::ExecuteCommandResult
ExecuteCommandResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::ExecuteCommandResult::WithClusterArn
ExecuteCommandResult & WithClusterArn(const Aws::String &value)
Definition: ExecuteCommandResult.h:59
Aws::ECS::Model::ExecuteCommandResult::WithContainerName
ExecuteCommandResult & WithContainerName(Aws::String &&value)
Definition: ExecuteCommandResult.h:136
Aws::ECS::Model::ExecuteCommandResult::SetTaskArn
void SetTaskArn(const Aws::String &value)
Definition: ExecuteCommandResult.h:205
Aws::ECS::Model::ExecuteCommandResult::SetClusterArn
void SetClusterArn(Aws::String &&value)
Definition: ExecuteCommandResult.h:49
Aws::ECS::Model::ExecuteCommandResult::SetContainerArn
void SetContainerArn(Aws::String &&value)
Definition: ExecuteCommandResult.h:85
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::Session
Definition: Session.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ExecuteCommandResult::GetTaskArn
const Aws::String & GetTaskArn() const
Definition: ExecuteCommandResult.h:200
Aws::ECS::Model::ExecuteCommandResult::WithTaskArn
ExecuteCommandResult & WithTaskArn(const char *value)
Definition: ExecuteCommandResult.h:230
Aws::ECS::Model::ExecuteCommandResult::SetClusterArn
void SetClusterArn(const Aws::String &value)
Definition: ExecuteCommandResult.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ExecuteCommandResult::WithClusterArn
ExecuteCommandResult & WithClusterArn(const char *value)
Definition: ExecuteCommandResult.h:69
Aws::ECS::Model::ExecuteCommandResult::SetContainerName
void SetContainerName(const char *value)
Definition: ExecuteCommandResult.h:126
Aws::ECS::Model::ExecuteCommandResult::GetInteractive
bool GetInteractive() const
Definition: ExecuteCommandResult.h:149
Aws::ECS::Model::ExecuteCommandResult::WithContainerName
ExecuteCommandResult & WithContainerName(const Aws::String &value)
Definition: ExecuteCommandResult.h:131
ECS_EXPORTS.h
Aws::ECS::Model::ExecuteCommandResult::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: ExecuteCommandResult.h:121
Aws::ECS::Model::ExecuteCommandResult::WithSession
ExecuteCommandResult & WithSession(const Session &value)
Definition: ExecuteCommandResult.h:188
Aws::ECS::Model::ExecuteCommandResult::WithContainerArn
ExecuteCommandResult & WithContainerArn(Aws::String &&value)
Definition: ExecuteCommandResult.h:100