AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTaskSetsRequest.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/TaskSetField.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 "DescribeTaskSets"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCluster() const{ return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
47 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
48 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
49 inline DescribeTaskSetsRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
50 inline DescribeTaskSetsRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
51 inline DescribeTaskSetsRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
53
55
59 inline const Aws::String& GetService() const{ return m_service; }
60 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
61 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
62 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
63 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
64 inline DescribeTaskSetsRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
65 inline DescribeTaskSetsRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
66 inline DescribeTaskSetsRequest& WithService(const char* value) { SetService(value); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetTaskSets() const{ return m_taskSets; }
74 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
75 inline void SetTaskSets(const Aws::Vector<Aws::String>& value) { m_taskSetsHasBeenSet = true; m_taskSets = value; }
76 inline void SetTaskSets(Aws::Vector<Aws::String>&& value) { m_taskSetsHasBeenSet = true; m_taskSets = std::move(value); }
77 inline DescribeTaskSetsRequest& WithTaskSets(const Aws::Vector<Aws::String>& value) { SetTaskSets(value); return *this;}
78 inline DescribeTaskSetsRequest& WithTaskSets(Aws::Vector<Aws::String>&& value) { SetTaskSets(std::move(value)); return *this;}
79 inline DescribeTaskSetsRequest& AddTaskSets(const Aws::String& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(value); return *this; }
80 inline DescribeTaskSetsRequest& AddTaskSets(Aws::String&& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(std::move(value)); return *this; }
81 inline DescribeTaskSetsRequest& AddTaskSets(const char* value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(value); return *this; }
83
85
90 inline const Aws::Vector<TaskSetField>& GetInclude() const{ return m_include; }
91 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
92 inline void SetInclude(const Aws::Vector<TaskSetField>& value) { m_includeHasBeenSet = true; m_include = value; }
93 inline void SetInclude(Aws::Vector<TaskSetField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
94 inline DescribeTaskSetsRequest& WithInclude(const Aws::Vector<TaskSetField>& value) { SetInclude(value); return *this;}
95 inline DescribeTaskSetsRequest& WithInclude(Aws::Vector<TaskSetField>&& value) { SetInclude(std::move(value)); return *this;}
96 inline DescribeTaskSetsRequest& AddInclude(const TaskSetField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
97 inline DescribeTaskSetsRequest& AddInclude(TaskSetField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_cluster;
102 bool m_clusterHasBeenSet = false;
103
104 Aws::String m_service;
105 bool m_serviceHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_taskSets;
108 bool m_taskSetsHasBeenSet = false;
109
111 bool m_includeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ECS
116} // namespace Aws
DescribeTaskSetsRequest & WithCluster(Aws::String &&value)
const Aws::Vector< TaskSetField > & GetInclude() const
DescribeTaskSetsRequest & WithService(const char *value)
DescribeTaskSetsRequest & AddInclude(TaskSetField &&value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetTaskSets() const
DescribeTaskSetsRequest & AddTaskSets(const char *value)
DescribeTaskSetsRequest & AddTaskSets(const Aws::String &value)
DescribeTaskSetsRequest & WithService(Aws::String &&value)
DescribeTaskSetsRequest & WithCluster(const char *value)
DescribeTaskSetsRequest & WithCluster(const Aws::String &value)
DescribeTaskSetsRequest & WithInclude(Aws::Vector< TaskSetField > &&value)
void SetTaskSets(const Aws::Vector< Aws::String > &value)
void SetInclude(Aws::Vector< TaskSetField > &&value)
DescribeTaskSetsRequest & AddInclude(const TaskSetField &value)
DescribeTaskSetsRequest & WithService(const Aws::String &value)
DescribeTaskSetsRequest & WithInclude(const Aws::Vector< TaskSetField > &value)
void SetInclude(const Aws::Vector< TaskSetField > &value)
DescribeTaskSetsRequest & WithTaskSets(Aws::Vector< Aws::String > &&value)
DescribeTaskSetsRequest & AddTaskSets(Aws::String &&value)
void SetTaskSets(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeTaskSetsRequest & WithTaskSets(const Aws::Vector< 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