AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ListDomainsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/DomainStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API ListDomainsRequest() = 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 "ListDomains"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
35 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline DomainStatus GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
43 inline void SetStatus(DomainStatus value) {
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
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
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 template <typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) {
86 m_nextTokenHasBeenSet = true;
87 m_nextToken = std::forward<NextTokenT>(value);
88 }
89 template <typename NextTokenT = Aws::String>
90 ListDomainsRequest& WithNextToken(NextTokenT&& value) {
91 SetNextToken(std::forward<NextTokenT>(value));
92 return *this;
93 }
95 private:
97
98 int m_maxResults{0};
99
100 Aws::String m_nextToken;
101 bool m_statusHasBeenSet = false;
102 bool m_maxResultsHasBeenSet = false;
103 bool m_nextTokenHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace DataZone
108} // namespace Aws
ListDomainsRequest & WithNextToken(NextTokenT &&value)
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListDomainsRequest & WithStatus(DomainStatus value)
ListDomainsRequest & WithMaxResults(int value)
AWS_DATAZONE_API ListDomainsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String