AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
45 inline int GetMaxResults() const { return m_maxResults; }
46 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
47 inline void SetMaxResults(int value) {
48 m_maxResultsHasBeenSet = true;
49 m_maxResults = value;
50 }
52 SetMaxResults(value);
53 return *this;
54 }
56
58
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 ListDomainsRequest& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
84 inline DomainStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(DomainStatus value) {
87 m_statusHasBeenSet = true;
88 m_status = value;
89 }
91 SetStatus(value);
92 return *this;
93 }
95 private:
96 int m_maxResults{0};
97 bool m_maxResultsHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101
103 bool m_statusHasBeenSet = 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