AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ListCampaignsRequest.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 ListCampaignsRequest() = 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 "ListCampaigns"; }
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 ListCampaignsRequest& 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 }
68 SetMaxResults(value);
69 return *this;
70 }
72
74
80 inline const Aws::String& GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 template <typename StatusT = Aws::String>
83 void SetStatus(StatusT&& value) {
84 m_statusHasBeenSet = true;
85 m_status = std::forward<StatusT>(value);
86 }
87 template <typename StatusT = Aws::String>
88 ListCampaignsRequest& WithStatus(StatusT&& value) {
89 SetStatus(std::forward<StatusT>(value));
90 return *this;
91 }
93
95
100 inline ListResponseScope GetListResponseScope() const { return m_listResponseScope; }
101 inline bool ListResponseScopeHasBeenSet() const { return m_listResponseScopeHasBeenSet; }
103 m_listResponseScopeHasBeenSet = true;
104 m_listResponseScope = value;
105 }
108 return *this;
109 }
111 private:
112 Aws::String m_nextToken;
113
114 int m_maxResults{0};
115
116 Aws::String m_status;
117
119 bool m_nextTokenHasBeenSet = false;
120 bool m_maxResultsHasBeenSet = false;
121 bool m_statusHasBeenSet = false;
122 bool m_listResponseScopeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace IoTFleetWise
127} // namespace Aws
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
ListCampaignsRequest & WithListResponseScope(ListResponseScope value)
AWS_IOTFLEETWISE_API ListCampaignsRequest()=default
ListCampaignsRequest & WithNextToken(NextTokenT &&value)
ListCampaignsRequest & WithStatus(StatusT &&value)
ListCampaignsRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String