AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ListThingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
26 public:
27 AWS_IOT_API ListThingsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListThings"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
45 inline const Aws::String& GetNextToken() const { return m_nextToken; }
46 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
47 template <typename NextTokenT = Aws::String>
48 void SetNextToken(NextTokenT&& value) {
49 m_nextTokenHasBeenSet = true;
50 m_nextToken = std::forward<NextTokenT>(value);
51 }
52 template <typename NextTokenT = Aws::String>
53 ListThingsRequest& WithNextToken(NextTokenT&& value) {
54 SetNextToken(std::forward<NextTokenT>(value));
55 return *this;
56 }
58
60
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
69 inline ListThingsRequest& WithMaxResults(int value) {
70 SetMaxResults(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
80 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
81 template <typename AttributeNameT = Aws::String>
82 void SetAttributeName(AttributeNameT&& value) {
83 m_attributeNameHasBeenSet = true;
84 m_attributeName = std::forward<AttributeNameT>(value);
85 }
86 template <typename AttributeNameT = Aws::String>
87 ListThingsRequest& WithAttributeName(AttributeNameT&& value) {
88 SetAttributeName(std::forward<AttributeNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
98 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
99 template <typename AttributeValueT = Aws::String>
100 void SetAttributeValue(AttributeValueT&& value) {
101 m_attributeValueHasBeenSet = true;
102 m_attributeValue = std::forward<AttributeValueT>(value);
103 }
104 template <typename AttributeValueT = Aws::String>
105 ListThingsRequest& WithAttributeValue(AttributeValueT&& value) {
106 SetAttributeValue(std::forward<AttributeValueT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetThingTypeName() const { return m_thingTypeName; }
116 inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
117 template <typename ThingTypeNameT = Aws::String>
118 void SetThingTypeName(ThingTypeNameT&& value) {
119 m_thingTypeNameHasBeenSet = true;
120 m_thingTypeName = std::forward<ThingTypeNameT>(value);
121 }
122 template <typename ThingTypeNameT = Aws::String>
123 ListThingsRequest& WithThingTypeName(ThingTypeNameT&& value) {
124 SetThingTypeName(std::forward<ThingTypeNameT>(value));
125 return *this;
126 }
128
130
137 inline bool GetUsePrefixAttributeValue() const { return m_usePrefixAttributeValue; }
138 inline bool UsePrefixAttributeValueHasBeenSet() const { return m_usePrefixAttributeValueHasBeenSet; }
139 inline void SetUsePrefixAttributeValue(bool value) {
140 m_usePrefixAttributeValueHasBeenSet = true;
141 m_usePrefixAttributeValue = value;
142 }
145 return *this;
146 }
148 private:
149 Aws::String m_nextToken;
150
151 int m_maxResults{0};
152
153 Aws::String m_attributeName;
154
155 Aws::String m_attributeValue;
156
157 Aws::String m_thingTypeName;
158
159 bool m_usePrefixAttributeValue{false};
160 bool m_nextTokenHasBeenSet = false;
161 bool m_maxResultsHasBeenSet = false;
162 bool m_attributeNameHasBeenSet = false;
163 bool m_attributeValueHasBeenSet = false;
164 bool m_thingTypeNameHasBeenSet = false;
165 bool m_usePrefixAttributeValueHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace IoT
170} // namespace Aws
void SetNextToken(NextTokenT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
ListThingsRequest & WithUsePrefixAttributeValue(bool value)
const Aws::String & GetAttributeValue() const
AWS_IOT_API ListThingsRequest()=default
void SetAttributeName(AttributeNameT &&value)
const Aws::String & GetThingTypeName() const
ListThingsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
ListThingsRequest & WithAttributeValue(AttributeValueT &&value)
void SetThingTypeName(ThingTypeNameT &&value)
ListThingsRequest & WithAttributeName(AttributeNameT &&value)
ListThingsRequest & WithNextToken(NextTokenT &&value)
ListThingsRequest & WithThingTypeName(ThingTypeNameT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetAttributeName() const
void SetAttributeValue(AttributeValueT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String