AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContainerInstancesStateRequest.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/ContainerInstanceStatus.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 "UpdateContainerInstancesState"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetCluster() const{ return m_cluster; }
46 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
47 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
48 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
49 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
50 inline UpdateContainerInstancesStateRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
51 inline UpdateContainerInstancesStateRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
52 inline UpdateContainerInstancesStateRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetContainerInstances() const{ return m_containerInstances; }
60 inline bool ContainerInstancesHasBeenSet() const { return m_containerInstancesHasBeenSet; }
61 inline void SetContainerInstances(const Aws::Vector<Aws::String>& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = value; }
62 inline void SetContainerInstances(Aws::Vector<Aws::String>&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = std::move(value); }
65 inline UpdateContainerInstancesStateRequest& AddContainerInstances(const Aws::String& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
66 inline UpdateContainerInstancesStateRequest& AddContainerInstances(Aws::String&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(std::move(value)); return *this; }
67 inline UpdateContainerInstancesStateRequest& AddContainerInstances(const char* value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
69
71
80 inline const ContainerInstanceStatus& GetStatus() const{ return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(const ContainerInstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
83 inline void SetStatus(ContainerInstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
85 inline UpdateContainerInstancesStateRequest& WithStatus(ContainerInstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_cluster;
90 bool m_clusterHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_containerInstances;
93 bool m_containerInstancesHasBeenSet = false;
94
96 bool m_statusHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ECS
101} // namespace Aws
UpdateContainerInstancesStateRequest & WithContainerInstances(Aws::Vector< Aws::String > &&value)
UpdateContainerInstancesStateRequest & AddContainerInstances(const char *value)
UpdateContainerInstancesStateRequest & WithCluster(Aws::String &&value)
UpdateContainerInstancesStateRequest & WithCluster(const char *value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateContainerInstancesStateRequest & WithContainerInstances(const Aws::Vector< Aws::String > &value)
UpdateContainerInstancesStateRequest & AddContainerInstances(const Aws::String &value)
UpdateContainerInstancesStateRequest & WithCluster(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
void SetContainerInstances(const Aws::Vector< Aws::String > &value)
UpdateContainerInstancesStateRequest & AddContainerInstances(Aws::String &&value)
UpdateContainerInstancesStateRequest & WithStatus(const ContainerInstanceStatus &value)
UpdateContainerInstancesStateRequest & WithStatus(ContainerInstanceStatus &&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