AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ListDaemonsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECS {
16namespace Model {
17
21 public:
22 AWS_ECS_API ListDaemonsRequest() = 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 "ListDaemons"; }
29
30 AWS_ECS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
40 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
41 template <typename ClusterArnT = Aws::String>
42 void SetClusterArn(ClusterArnT&& value) {
43 m_clusterArnHasBeenSet = true;
44 m_clusterArn = std::forward<ClusterArnT>(value);
45 }
46 template <typename ClusterArnT = Aws::String>
47 ListDaemonsRequest& WithClusterArn(ClusterArnT&& value) {
48 SetClusterArn(std::forward<ClusterArnT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::Vector<Aws::String>& GetCapacityProviderArns() const { return m_capacityProviderArns; }
60 inline bool CapacityProviderArnsHasBeenSet() const { return m_capacityProviderArnsHasBeenSet; }
61 template <typename CapacityProviderArnsT = Aws::Vector<Aws::String>>
62 void SetCapacityProviderArns(CapacityProviderArnsT&& value) {
63 m_capacityProviderArnsHasBeenSet = true;
64 m_capacityProviderArns = std::forward<CapacityProviderArnsT>(value);
65 }
66 template <typename CapacityProviderArnsT = Aws::Vector<Aws::String>>
67 ListDaemonsRequest& WithCapacityProviderArns(CapacityProviderArnsT&& value) {
68 SetCapacityProviderArns(std::forward<CapacityProviderArnsT>(value));
69 return *this;
70 }
71 template <typename CapacityProviderArnsT = Aws::String>
72 ListDaemonsRequest& AddCapacityProviderArns(CapacityProviderArnsT&& value) {
73 m_capacityProviderArnsHasBeenSet = true;
74 m_capacityProviderArns.emplace_back(std::forward<CapacityProviderArnsT>(value));
75 return *this;
76 }
78
80
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
97 SetMaxResults(value);
98 return *this;
99 }
101
103
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
120 ListDaemonsRequest& WithNextToken(NextTokenT&& value) {
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_clusterArn;
127
128 Aws::Vector<Aws::String> m_capacityProviderArns;
129
130 int m_maxResults{0};
131
132 Aws::String m_nextToken;
133 bool m_clusterArnHasBeenSet = false;
134 bool m_capacityProviderArnsHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ECS
141} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClusterArn(ClusterArnT &&value)
ListDaemonsRequest & AddCapacityProviderArns(CapacityProviderArnsT &&value)
void SetCapacityProviderArns(CapacityProviderArnsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetCapacityProviderArns() const
const Aws::String & GetNextToken() const
ListDaemonsRequest & WithMaxResults(int value)
ListDaemonsRequest & WithCapacityProviderArns(CapacityProviderArnsT &&value)
ListDaemonsRequest & WithClusterArn(ClusterArnT &&value)
ListDaemonsRequest & WithNextToken(NextTokenT &&value)
AWS_ECS_API ListDaemonsRequest()=default
const Aws::String & GetClusterArn() const
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