AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListAttributesRequest.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/TargetType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECS {
16namespace Model {
17
21 public:
22 AWS_ECS_API ListAttributesRequest() = 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 "ListAttributes"; }
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>
48 SetCluster(std::forward<ClusterT>(value));
49 return *this;
50 }
52
54
57 inline TargetType GetTargetType() const { return m_targetType; }
58 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
59 inline void SetTargetType(TargetType value) {
60 m_targetTypeHasBeenSet = true;
61 m_targetType = value;
62 }
64 SetTargetType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
74 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
75 template <typename AttributeNameT = Aws::String>
76 void SetAttributeName(AttributeNameT&& value) {
77 m_attributeNameHasBeenSet = true;
78 m_attributeName = std::forward<AttributeNameT>(value);
79 }
80 template <typename AttributeNameT = Aws::String>
81 ListAttributesRequest& WithAttributeName(AttributeNameT&& value) {
82 SetAttributeName(std::forward<AttributeNameT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
93 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
94 template <typename AttributeValueT = Aws::String>
95 void SetAttributeValue(AttributeValueT&& value) {
96 m_attributeValueHasBeenSet = true;
97 m_attributeValue = std::forward<AttributeValueT>(value);
98 }
99 template <typename AttributeValueT = Aws::String>
100 ListAttributesRequest& WithAttributeValue(AttributeValueT&& value) {
101 SetAttributeValue(std::forward<AttributeValueT>(value));
102 return *this;
103 }
105
107
116 inline const Aws::String& GetNextToken() const { return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 template <typename NextTokenT = Aws::String>
119 void SetNextToken(NextTokenT&& value) {
120 m_nextTokenHasBeenSet = true;
121 m_nextToken = std::forward<NextTokenT>(value);
122 }
123 template <typename NextTokenT = Aws::String>
125 SetNextToken(std::forward<NextTokenT>(value));
126 return *this;
127 }
129
131
142 inline int GetMaxResults() const { return m_maxResults; }
143 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
144 inline void SetMaxResults(int value) {
145 m_maxResultsHasBeenSet = true;
146 m_maxResults = value;
147 }
149 SetMaxResults(value);
150 return *this;
151 }
153 private:
154 Aws::String m_cluster;
155
156 TargetType m_targetType{TargetType::NOT_SET};
157
158 Aws::String m_attributeName;
159
160 Aws::String m_attributeValue;
161
162 Aws::String m_nextToken;
163
164 int m_maxResults{0};
165 bool m_clusterHasBeenSet = false;
166 bool m_targetTypeHasBeenSet = false;
167 bool m_attributeNameHasBeenSet = false;
168 bool m_attributeValueHasBeenSet = false;
169 bool m_nextTokenHasBeenSet = false;
170 bool m_maxResultsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace ECS
175} // namespace Aws
ListAttributesRequest & WithAttributeName(AttributeNameT &&value)
void SetAttributeValue(AttributeValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API ListAttributesRequest()=default
void SetAttributeName(AttributeNameT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListAttributesRequest & WithCluster(ClusterT &&value)
const Aws::String & GetAttributeValue() const
ListAttributesRequest & WithNextToken(NextTokenT &&value)
ListAttributesRequest & WithTargetType(TargetType value)
ListAttributesRequest & WithMaxResults(int value)
AWS_ECS_API Aws::String SerializePayload() const override
ListAttributesRequest & WithAttributeValue(AttributeValueT &&value)
const Aws::String & GetAttributeName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String