AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubmitContainerStateChangeRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/NetworkBinding.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SubmitContainerStateChange"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetCluster() const{ return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
46 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
47 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
48 inline SubmitContainerStateChangeRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
49 inline SubmitContainerStateChangeRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
50 inline SubmitContainerStateChangeRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
52
54
58 inline const Aws::String& GetTask() const{ return m_task; }
59 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
60 inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
61 inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
62 inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
63 inline SubmitContainerStateChangeRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
64 inline SubmitContainerStateChangeRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
65 inline SubmitContainerStateChangeRequest& WithTask(const char* value) { SetTask(value); return *this;}
67
69
72 inline const Aws::String& GetContainerName() const{ return m_containerName; }
73 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
74 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
75 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
76 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
78 inline SubmitContainerStateChangeRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
79 inline SubmitContainerStateChangeRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
81
83
86 inline const Aws::String& GetRuntimeId() const{ return m_runtimeId; }
87 inline bool RuntimeIdHasBeenSet() const { return m_runtimeIdHasBeenSet; }
88 inline void SetRuntimeId(const Aws::String& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = value; }
89 inline void SetRuntimeId(Aws::String&& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = std::move(value); }
90 inline void SetRuntimeId(const char* value) { m_runtimeIdHasBeenSet = true; m_runtimeId.assign(value); }
91 inline SubmitContainerStateChangeRequest& WithRuntimeId(const Aws::String& value) { SetRuntimeId(value); return *this;}
92 inline SubmitContainerStateChangeRequest& WithRuntimeId(Aws::String&& value) { SetRuntimeId(std::move(value)); return *this;}
93 inline SubmitContainerStateChangeRequest& WithRuntimeId(const char* value) { SetRuntimeId(value); return *this;}
95
97
100 inline const Aws::String& GetStatus() const{ return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
103 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
104 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
105 inline SubmitContainerStateChangeRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
106 inline SubmitContainerStateChangeRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
107 inline SubmitContainerStateChangeRequest& WithStatus(const char* value) { SetStatus(value); return *this;}
109
111
114 inline int GetExitCode() const{ return m_exitCode; }
115 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
116 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
117 inline SubmitContainerStateChangeRequest& WithExitCode(int value) { SetExitCode(value); return *this;}
119
121
124 inline const Aws::String& GetReason() const{ return m_reason; }
125 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
126 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
127 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
128 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
129 inline SubmitContainerStateChangeRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
130 inline SubmitContainerStateChangeRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
131 inline SubmitContainerStateChangeRequest& WithReason(const char* value) { SetReason(value); return *this;}
133
135
138 inline const Aws::Vector<NetworkBinding>& GetNetworkBindings() const{ return m_networkBindings; }
139 inline bool NetworkBindingsHasBeenSet() const { return m_networkBindingsHasBeenSet; }
140 inline void SetNetworkBindings(const Aws::Vector<NetworkBinding>& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; }
141 inline void SetNetworkBindings(Aws::Vector<NetworkBinding>&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = std::move(value); }
144 inline SubmitContainerStateChangeRequest& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; }
145 inline SubmitContainerStateChangeRequest& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_cluster;
150 bool m_clusterHasBeenSet = false;
151
152 Aws::String m_task;
153 bool m_taskHasBeenSet = false;
154
155 Aws::String m_containerName;
156 bool m_containerNameHasBeenSet = false;
157
158 Aws::String m_runtimeId;
159 bool m_runtimeIdHasBeenSet = false;
160
161 Aws::String m_status;
162 bool m_statusHasBeenSet = false;
163
164 int m_exitCode;
165 bool m_exitCodeHasBeenSet = false;
166
167 Aws::String m_reason;
168 bool m_reasonHasBeenSet = false;
169
170 Aws::Vector<NetworkBinding> m_networkBindings;
171 bool m_networkBindingsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace ECS
176} // namespace Aws
SubmitContainerStateChangeRequest & WithReason(const char *value)
SubmitContainerStateChangeRequest & WithStatus(Aws::String &&value)
SubmitContainerStateChangeRequest & WithTask(Aws::String &&value)
void SetNetworkBindings(Aws::Vector< NetworkBinding > &&value)
SubmitContainerStateChangeRequest & WithRuntimeId(const char *value)
SubmitContainerStateChangeRequest & WithExitCode(int value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SubmitContainerStateChangeRequest & WithCluster(const Aws::String &value)
SubmitContainerStateChangeRequest & WithContainerName(const char *value)
SubmitContainerStateChangeRequest & WithNetworkBindings(const Aws::Vector< NetworkBinding > &value)
SubmitContainerStateChangeRequest & WithStatus(const Aws::String &value)
SubmitContainerStateChangeRequest & WithContainerName(Aws::String &&value)
SubmitContainerStateChangeRequest & WithRuntimeId(Aws::String &&value)
SubmitContainerStateChangeRequest & WithContainerName(const Aws::String &value)
SubmitContainerStateChangeRequest & WithReason(const Aws::String &value)
SubmitContainerStateChangeRequest & WithTask(const Aws::String &value)
SubmitContainerStateChangeRequest & WithCluster(const char *value)
SubmitContainerStateChangeRequest & WithStatus(const char *value)
SubmitContainerStateChangeRequest & WithReason(Aws::String &&value)
SubmitContainerStateChangeRequest & AddNetworkBindings(NetworkBinding &&value)
SubmitContainerStateChangeRequest & WithCluster(Aws::String &&value)
void SetNetworkBindings(const Aws::Vector< NetworkBinding > &value)
const Aws::Vector< NetworkBinding > & GetNetworkBindings() const
SubmitContainerStateChangeRequest & WithTask(const char *value)
SubmitContainerStateChangeRequest & AddNetworkBindings(const NetworkBinding &value)
AWS_ECS_API Aws::String SerializePayload() const override
SubmitContainerStateChangeRequest & WithNetworkBindings(Aws::Vector< NetworkBinding > &&value)
SubmitContainerStateChangeRequest & WithRuntimeId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector