AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateContainerInstancesStateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace 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 "UpdateContainerInstancesState"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetCluster() const{ return m_cluster; }
45 
51  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
52 
58  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
59 
65  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
66 
72  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
73 
79  inline UpdateContainerInstancesStateRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
80 
86  inline UpdateContainerInstancesStateRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
87 
93  inline UpdateContainerInstancesStateRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
94 
95 
99  inline const Aws::Vector<Aws::String>& GetContainerInstances() const{ return m_containerInstances; }
100 
104  inline bool ContainerInstancesHasBeenSet() const { return m_containerInstancesHasBeenSet; }
105 
109  inline void SetContainerInstances(const Aws::Vector<Aws::String>& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = value; }
110 
114  inline void SetContainerInstances(Aws::Vector<Aws::String>&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = std::move(value); }
115 
119  inline UpdateContainerInstancesStateRequest& WithContainerInstances(const Aws::Vector<Aws::String>& value) { SetContainerInstances(value); return *this;}
120 
124  inline UpdateContainerInstancesStateRequest& WithContainerInstances(Aws::Vector<Aws::String>&& value) { SetContainerInstances(std::move(value)); return *this;}
125 
129  inline UpdateContainerInstancesStateRequest& AddContainerInstances(const Aws::String& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
130 
134  inline UpdateContainerInstancesStateRequest& AddContainerInstances(Aws::String&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(std::move(value)); return *this; }
135 
139  inline UpdateContainerInstancesStateRequest& AddContainerInstances(const char* value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
140 
141 
152  inline const ContainerInstanceStatus& GetStatus() const{ return m_status; }
153 
164  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
165 
176  inline void SetStatus(const ContainerInstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
177 
188  inline void SetStatus(ContainerInstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
189 
200  inline UpdateContainerInstancesStateRequest& WithStatus(const ContainerInstanceStatus& value) { SetStatus(value); return *this;}
201 
212  inline UpdateContainerInstancesStateRequest& WithStatus(ContainerInstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
213 
214  private:
215 
216  Aws::String m_cluster;
217  bool m_clusterHasBeenSet;
218 
219  Aws::Vector<Aws::String> m_containerInstances;
220  bool m_containerInstancesHasBeenSet;
221 
222  ContainerInstanceStatus m_status;
223  bool m_statusHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace ECS
228 } // namespace Aws
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetContainerInstances
void SetContainerInstances(Aws::Vector< Aws::String > &&value)
Definition: UpdateContainerInstancesStateRequest.h:114
Aws::ECS::Model::ContainerInstanceStatus
ContainerInstanceStatus
Definition: ContainerInstanceStatus.h:17
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: UpdateContainerInstancesStateRequest.h:65
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetStatus
void SetStatus(ContainerInstanceStatus &&value)
Definition: UpdateContainerInstancesStateRequest.h:188
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetCluster
void SetCluster(const char *value)
Definition: UpdateContainerInstancesStateRequest.h:72
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: UpdateContainerInstancesStateRequest.h:58
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithCluster
UpdateContainerInstancesStateRequest & WithCluster(Aws::String &&value)
Definition: UpdateContainerInstancesStateRequest.h:86
Aws::ECS::Model::UpdateContainerInstancesStateRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdateContainerInstancesStateRequest.h:164
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::UpdateContainerInstancesStateRequest::GetCluster
const Aws::String & GetCluster() const
Definition: UpdateContainerInstancesStateRequest.h:44
AWSVector.h
ContainerInstanceStatus.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateContainerInstancesStateRequest::UpdateContainerInstancesStateRequest
UpdateContainerInstancesStateRequest()
Aws::ECS::Model::UpdateContainerInstancesStateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetStatus
void SetStatus(const ContainerInstanceStatus &value)
Definition: UpdateContainerInstancesStateRequest.h:176
Aws::ECS::Model::UpdateContainerInstancesStateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContainerInstancesStateRequest.h:32
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithStatus
UpdateContainerInstancesStateRequest & WithStatus(const ContainerInstanceStatus &value)
Definition: UpdateContainerInstancesStateRequest.h:200
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithCluster
UpdateContainerInstancesStateRequest & WithCluster(const Aws::String &value)
Definition: UpdateContainerInstancesStateRequest.h:79
Aws::ECS::Model::UpdateContainerInstancesStateRequest::GetContainerInstances
const Aws::Vector< Aws::String > & GetContainerInstances() const
Definition: UpdateContainerInstancesStateRequest.h:99
Aws::ECS::Model::UpdateContainerInstancesStateRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: UpdateContainerInstancesStateRequest.h:51
Aws::ECS::Model::UpdateContainerInstancesStateRequest
Definition: UpdateContainerInstancesStateRequest.h:24
AWSString.h
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithStatus
UpdateContainerInstancesStateRequest & WithStatus(ContainerInstanceStatus &&value)
Definition: UpdateContainerInstancesStateRequest.h:212
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithContainerInstances
UpdateContainerInstancesStateRequest & WithContainerInstances(const Aws::Vector< Aws::String > &value)
Definition: UpdateContainerInstancesStateRequest.h:119
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithCluster
UpdateContainerInstancesStateRequest & WithCluster(const char *value)
Definition: UpdateContainerInstancesStateRequest.h:93
Aws::ECS::Model::UpdateContainerInstancesStateRequest::AddContainerInstances
UpdateContainerInstancesStateRequest & AddContainerInstances(const char *value)
Definition: UpdateContainerInstancesStateRequest.h:139
Aws::ECS::Model::UpdateContainerInstancesStateRequest::AddContainerInstances
UpdateContainerInstancesStateRequest & AddContainerInstances(const Aws::String &value)
Definition: UpdateContainerInstancesStateRequest.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::UpdateContainerInstancesStateRequest::ContainerInstancesHasBeenSet
bool ContainerInstancesHasBeenSet() const
Definition: UpdateContainerInstancesStateRequest.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateContainerInstancesStateRequest::AddContainerInstances
UpdateContainerInstancesStateRequest & AddContainerInstances(Aws::String &&value)
Definition: UpdateContainerInstancesStateRequest.h:134
Aws::ECS::Model::UpdateContainerInstancesStateRequest::SetContainerInstances
void SetContainerInstances(const Aws::Vector< Aws::String > &value)
Definition: UpdateContainerInstancesStateRequest.h:109
Aws::ECS::Model::UpdateContainerInstancesStateRequest::GetStatus
const ContainerInstanceStatus & GetStatus() const
Definition: UpdateContainerInstancesStateRequest.h:152
Aws::ECS::Model::UpdateContainerInstancesStateRequest::WithContainerInstances
UpdateContainerInstancesStateRequest & WithContainerInstances(Aws::Vector< Aws::String > &&value)
Definition: UpdateContainerInstancesStateRequest.h:124
ECS_EXPORTS.h
ECSRequest.h