AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ListFleetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
9#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
10#include <aws/iotfleetwise/model/ListResponseScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoTFleetWise {
16namespace Model {
17
21 public:
22 AWS_IOTFLEETWISE_API ListFleetsRequest() = 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 "ListFleets"; }
29
30 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
31
32 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
45 template <typename NextTokenT = Aws::String>
46 void SetNextToken(NextTokenT&& value) {
47 m_nextTokenHasBeenSet = true;
48 m_nextToken = std::forward<NextTokenT>(value);
49 }
50 template <typename NextTokenT = Aws::String>
51 ListFleetsRequest& WithNextToken(NextTokenT&& value) {
52 SetNextToken(std::forward<NextTokenT>(value));
53 return *this;
54 }
56
58
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) {
64 m_maxResultsHasBeenSet = true;
65 m_maxResults = value;
66 }
67 inline ListFleetsRequest& WithMaxResults(int value) {
68 SetMaxResults(value);
69 return *this;
70 }
72
74
79 inline ListResponseScope GetListResponseScope() const { return m_listResponseScope; }
80 inline bool ListResponseScopeHasBeenSet() const { return m_listResponseScopeHasBeenSet; }
82 m_listResponseScopeHasBeenSet = true;
83 m_listResponseScope = value;
84 }
87 return *this;
88 }
90 private:
91 Aws::String m_nextToken;
92
93 int m_maxResults{0};
94
96 bool m_nextTokenHasBeenSet = false;
97 bool m_maxResultsHasBeenSet = false;
98 bool m_listResponseScopeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace IoTFleetWise
103} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetListResponseScope(ListResponseScope value)
ListFleetsRequest & WithMaxResults(int value)
AWS_IOTFLEETWISE_API ListFleetsRequest()=default
ListFleetsRequest & WithListResponseScope(ListResponseScope value)
ListFleetsRequest & WithNextToken(NextTokenT &&value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String