AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateTaskSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/Scale.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECS {
16namespace Model {
17
21 public:
22 AWS_ECS_API UpdateTaskSetRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskSet"; }
29
30 AWS_ECS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetCluster() const { return m_cluster; }
40 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
41 template <typename ClusterT = Aws::String>
42 void SetCluster(ClusterT&& value) {
43 m_clusterHasBeenSet = true;
44 m_cluster = std::forward<ClusterT>(value);
45 }
46 template <typename ClusterT = Aws::String>
47 UpdateTaskSetRequest& WithCluster(ClusterT&& value) {
48 SetCluster(std::forward<ClusterT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetService() const { return m_service; }
59 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
60 template <typename ServiceT = Aws::String>
61 void SetService(ServiceT&& value) {
62 m_serviceHasBeenSet = true;
63 m_service = std::forward<ServiceT>(value);
64 }
65 template <typename ServiceT = Aws::String>
66 UpdateTaskSetRequest& WithService(ServiceT&& value) {
67 SetService(std::forward<ServiceT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetTaskSet() const { return m_taskSet; }
78 inline bool TaskSetHasBeenSet() const { return m_taskSetHasBeenSet; }
79 template <typename TaskSetT = Aws::String>
80 void SetTaskSet(TaskSetT&& value) {
81 m_taskSetHasBeenSet = true;
82 m_taskSet = std::forward<TaskSetT>(value);
83 }
84 template <typename TaskSetT = Aws::String>
85 UpdateTaskSetRequest& WithTaskSet(TaskSetT&& value) {
86 SetTaskSet(std::forward<TaskSetT>(value));
87 return *this;
88 }
90
92
96 inline const Scale& GetScale() const { return m_scale; }
97 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
98 template <typename ScaleT = Scale>
99 void SetScale(ScaleT&& value) {
100 m_scaleHasBeenSet = true;
101 m_scale = std::forward<ScaleT>(value);
102 }
103 template <typename ScaleT = Scale>
105 SetScale(std::forward<ScaleT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_cluster;
111
112 Aws::String m_service;
113
114 Aws::String m_taskSet;
115
116 Scale m_scale;
117 bool m_clusterHasBeenSet = false;
118 bool m_serviceHasBeenSet = false;
119 bool m_taskSetHasBeenSet = false;
120 bool m_scaleHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace ECS
125} // namespace Aws
UpdateTaskSetRequest & WithService(ServiceT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
UpdateTaskSetRequest & WithTaskSet(TaskSetT &&value)
AWS_ECS_API UpdateTaskSetRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateTaskSetRequest & WithScale(ScaleT &&value)
UpdateTaskSetRequest & WithCluster(ClusterT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String