AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateTaskSetRequest.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/ecs/model/Scale.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECS_API UpdateTaskSetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskSet"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetCluster() const { return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 template<typename ClusterT = Aws::String>
46 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
47 template<typename ClusterT = Aws::String>
48 UpdateTaskSetRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
50
52
56 inline const Aws::String& GetService() const { return m_service; }
57 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
58 template<typename ServiceT = Aws::String>
59 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
60 template<typename ServiceT = Aws::String>
61 UpdateTaskSetRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
63
65
69 inline const Aws::String& GetTaskSet() const { return m_taskSet; }
70 inline bool TaskSetHasBeenSet() const { return m_taskSetHasBeenSet; }
71 template<typename TaskSetT = Aws::String>
72 void SetTaskSet(TaskSetT&& value) { m_taskSetHasBeenSet = true; m_taskSet = std::forward<TaskSetT>(value); }
73 template<typename TaskSetT = Aws::String>
74 UpdateTaskSetRequest& WithTaskSet(TaskSetT&& value) { SetTaskSet(std::forward<TaskSetT>(value)); return *this;}
76
78
82 inline const Scale& GetScale() const { return m_scale; }
83 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
84 template<typename ScaleT = Scale>
85 void SetScale(ScaleT&& value) { m_scaleHasBeenSet = true; m_scale = std::forward<ScaleT>(value); }
86 template<typename ScaleT = Scale>
87 UpdateTaskSetRequest& WithScale(ScaleT&& value) { SetScale(std::forward<ScaleT>(value)); return *this;}
89 private:
90
91 Aws::String m_cluster;
92 bool m_clusterHasBeenSet = false;
93
94 Aws::String m_service;
95 bool m_serviceHasBeenSet = false;
96
97 Aws::String m_taskSet;
98 bool m_taskSetHasBeenSet = false;
99
100 Scale m_scale;
101 bool m_scaleHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ECS
106} // 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