AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAttributesRequest.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/TargetType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECS_API ListAttributesRequest() = 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 "ListAttributes"; }
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 ListAttributesRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
50
52
55 inline TargetType GetTargetType() const { return m_targetType; }
56 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
57 inline void SetTargetType(TargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
58 inline ListAttributesRequest& WithTargetType(TargetType value) { SetTargetType(value); return *this;}
60
62
65 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
66 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
67 template<typename AttributeNameT = Aws::String>
68 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
69 template<typename AttributeNameT = Aws::String>
70 ListAttributesRequest& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
72
74
78 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
79 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
80 template<typename AttributeValueT = Aws::String>
81 void SetAttributeValue(AttributeValueT&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::forward<AttributeValueT>(value); }
82 template<typename AttributeValueT = Aws::String>
83 ListAttributesRequest& WithAttributeValue(AttributeValueT&& value) { SetAttributeValue(std::forward<AttributeValueT>(value)); return *this;}
85
87
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template<typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
100 template<typename NextTokenT = Aws::String>
101 ListAttributesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
103
105
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
119 inline ListAttributesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
121 private:
122
123 Aws::String m_cluster;
124 bool m_clusterHasBeenSet = false;
125
126 TargetType m_targetType{TargetType::NOT_SET};
127 bool m_targetTypeHasBeenSet = false;
128
129 Aws::String m_attributeName;
130 bool m_attributeNameHasBeenSet = false;
131
132 Aws::String m_attributeValue;
133 bool m_attributeValueHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137
138 int m_maxResults{0};
139 bool m_maxResultsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace ECS
144} // 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