AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteCommandResult.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/Session.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ECS
25{
26namespace Model
27{
29 {
30 public:
31 AWS_ECS_API ExecuteCommandResult();
34
35
37
40 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
41 inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; }
42 inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); }
43 inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); }
44 inline ExecuteCommandResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
45 inline ExecuteCommandResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
46 inline ExecuteCommandResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
48
50
53 inline const Aws::String& GetContainerArn() const{ return m_containerArn; }
54 inline void SetContainerArn(const Aws::String& value) { m_containerArn = value; }
55 inline void SetContainerArn(Aws::String&& value) { m_containerArn = std::move(value); }
56 inline void SetContainerArn(const char* value) { m_containerArn.assign(value); }
57 inline ExecuteCommandResult& WithContainerArn(const Aws::String& value) { SetContainerArn(value); return *this;}
58 inline ExecuteCommandResult& WithContainerArn(Aws::String&& value) { SetContainerArn(std::move(value)); return *this;}
59 inline ExecuteCommandResult& WithContainerArn(const char* value) { SetContainerArn(value); return *this;}
61
63
66 inline const Aws::String& GetContainerName() const{ return m_containerName; }
67 inline void SetContainerName(const Aws::String& value) { m_containerName = value; }
68 inline void SetContainerName(Aws::String&& value) { m_containerName = std::move(value); }
69 inline void SetContainerName(const char* value) { m_containerName.assign(value); }
70 inline ExecuteCommandResult& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
71 inline ExecuteCommandResult& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
72 inline ExecuteCommandResult& WithContainerName(const char* value) { SetContainerName(value); return *this;}
74
76
81 inline bool GetInteractive() const{ return m_interactive; }
82 inline void SetInteractive(bool value) { m_interactive = value; }
83 inline ExecuteCommandResult& WithInteractive(bool value) { SetInteractive(value); return *this;}
85
87
91 inline const Session& GetSession() const{ return m_session; }
92 inline void SetSession(const Session& value) { m_session = value; }
93 inline void SetSession(Session&& value) { m_session = std::move(value); }
94 inline ExecuteCommandResult& WithSession(const Session& value) { SetSession(value); return *this;}
95 inline ExecuteCommandResult& WithSession(Session&& value) { SetSession(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
103 inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
104 inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
105 inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
106 inline ExecuteCommandResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
107 inline ExecuteCommandResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
108 inline ExecuteCommandResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
110
112
113 inline const Aws::String& GetRequestId() const{ return m_requestId; }
114 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
115 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
116 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
117 inline ExecuteCommandResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
118 inline ExecuteCommandResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
119 inline ExecuteCommandResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
121 private:
122
123 Aws::String m_clusterArn;
124
125 Aws::String m_containerArn;
126
127 Aws::String m_containerName;
128
129 bool m_interactive;
130
131 Session m_session;
132
133 Aws::String m_taskArn;
134
135 Aws::String m_requestId;
136 };
137
138} // namespace Model
139} // namespace ECS
140} // namespace Aws
ExecuteCommandResult & WithContainerName(const char *value)
void SetContainerName(const Aws::String &value)
ExecuteCommandResult & WithContainerArn(const char *value)
ExecuteCommandResult & WithClusterArn(Aws::String &&value)
void SetTaskArn(const Aws::String &value)
void SetRequestId(const Aws::String &value)
ExecuteCommandResult & WithSession(Session &&value)
const Aws::String & GetContainerArn() const
ExecuteCommandResult & WithContainerArn(const Aws::String &value)
AWS_ECS_API ExecuteCommandResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExecuteCommandResult & WithSession(const Session &value)
ExecuteCommandResult & WithContainerName(Aws::String &&value)
ExecuteCommandResult & WithTaskArn(Aws::String &&value)
ExecuteCommandResult & WithContainerArn(Aws::String &&value)
void SetContainerArn(const Aws::String &value)
const Aws::String & GetContainerName() const
ExecuteCommandResult & WithInteractive(bool value)
ExecuteCommandResult & WithClusterArn(const char *value)
ExecuteCommandResult & WithClusterArn(const Aws::String &value)
ExecuteCommandResult & WithRequestId(Aws::String &&value)
ExecuteCommandResult & WithContainerName(const Aws::String &value)
ExecuteCommandResult & WithTaskArn(const Aws::String &value)
const Aws::String & GetClusterArn() const
ExecuteCommandResult & WithTaskArn(const char *value)
ExecuteCommandResult & WithRequestId(const Aws::String &value)
void SetClusterArn(const Aws::String &value)
ExecuteCommandResult & WithRequestId(const char *value)
AWS_ECS_API ExecuteCommandResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue