AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListSubscriptionGrantsRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/SortKey.h>
11#include <aws/datazone/model/SortOrder.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace DataZone
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DATAZONE_API ListSubscriptionGrantsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListSubscriptionGrants"; }
37
38 AWS_DATAZONE_API Aws::String SerializePayload() const override;
39
40 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
48 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
49 template<typename DomainIdentifierT = Aws::String>
50 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
51 template<typename DomainIdentifierT = Aws::String>
52 ListSubscriptionGrantsRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
54
56
59 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
60 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
61 template<typename EnvironmentIdT = Aws::String>
62 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
63 template<typename EnvironmentIdT = Aws::String>
64 ListSubscriptionGrantsRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
66
68
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline ListSubscriptionGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template<typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
96 template<typename NextTokenT = Aws::String>
97 ListSubscriptionGrantsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
99
101
104 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
105 inline bool OwningProjectIdHasBeenSet() const { return m_owningProjectIdHasBeenSet; }
106 template<typename OwningProjectIdT = Aws::String>
107 void SetOwningProjectId(OwningProjectIdT&& value) { m_owningProjectIdHasBeenSet = true; m_owningProjectId = std::forward<OwningProjectIdT>(value); }
108 template<typename OwningProjectIdT = Aws::String>
109 ListSubscriptionGrantsRequest& WithOwningProjectId(OwningProjectIdT&& value) { SetOwningProjectId(std::forward<OwningProjectIdT>(value)); return *this;}
111
113
116 inline SortKey GetSortBy() const { return m_sortBy; }
117 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
118 inline void SetSortBy(SortKey value) { m_sortByHasBeenSet = true; m_sortBy = value; }
119 inline ListSubscriptionGrantsRequest& WithSortBy(SortKey value) { SetSortBy(value); return *this;}
121
123
126 inline SortOrder GetSortOrder() const { return m_sortOrder; }
127 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
128 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
131
133
136 inline const Aws::String& GetSubscribedListingId() const { return m_subscribedListingId; }
137 inline bool SubscribedListingIdHasBeenSet() const { return m_subscribedListingIdHasBeenSet; }
138 template<typename SubscribedListingIdT = Aws::String>
139 void SetSubscribedListingId(SubscribedListingIdT&& value) { m_subscribedListingIdHasBeenSet = true; m_subscribedListingId = std::forward<SubscribedListingIdT>(value); }
140 template<typename SubscribedListingIdT = Aws::String>
141 ListSubscriptionGrantsRequest& WithSubscribedListingId(SubscribedListingIdT&& value) { SetSubscribedListingId(std::forward<SubscribedListingIdT>(value)); return *this;}
143
145
148 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
149 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
150 template<typename SubscriptionIdT = Aws::String>
151 void SetSubscriptionId(SubscriptionIdT&& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = std::forward<SubscriptionIdT>(value); }
152 template<typename SubscriptionIdT = Aws::String>
153 ListSubscriptionGrantsRequest& WithSubscriptionId(SubscriptionIdT&& value) { SetSubscriptionId(std::forward<SubscriptionIdT>(value)); return *this;}
155
157
160 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
161 inline bool SubscriptionTargetIdHasBeenSet() const { return m_subscriptionTargetIdHasBeenSet; }
162 template<typename SubscriptionTargetIdT = Aws::String>
163 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value); }
164 template<typename SubscriptionTargetIdT = Aws::String>
165 ListSubscriptionGrantsRequest& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) { SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value)); return *this;}
167 private:
168
169 Aws::String m_domainIdentifier;
170 bool m_domainIdentifierHasBeenSet = false;
171
172 Aws::String m_environmentId;
173 bool m_environmentIdHasBeenSet = false;
174
175 int m_maxResults{0};
176 bool m_maxResultsHasBeenSet = false;
177
178 Aws::String m_nextToken;
179 bool m_nextTokenHasBeenSet = false;
180
181 Aws::String m_owningProjectId;
182 bool m_owningProjectIdHasBeenSet = false;
183
184 SortKey m_sortBy{SortKey::NOT_SET};
185 bool m_sortByHasBeenSet = false;
186
187 SortOrder m_sortOrder{SortOrder::NOT_SET};
188 bool m_sortOrderHasBeenSet = false;
189
190 Aws::String m_subscribedListingId;
191 bool m_subscribedListingIdHasBeenSet = false;
192
193 Aws::String m_subscriptionId;
194 bool m_subscriptionIdHasBeenSet = false;
195
196 Aws::String m_subscriptionTargetId;
197 bool m_subscriptionTargetIdHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace DataZone
202} // namespace Aws
ListSubscriptionGrantsRequest & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
ListSubscriptionGrantsRequest & WithSubscriptionId(SubscriptionIdT &&value)
ListSubscriptionGrantsRequest & WithSortOrder(SortOrder value)
AWS_DATAZONE_API ListSubscriptionGrantsRequest()=default
ListSubscriptionGrantsRequest & WithEnvironmentId(EnvironmentIdT &&value)
ListSubscriptionGrantsRequest & WithMaxResults(int value)
ListSubscriptionGrantsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
ListSubscriptionGrantsRequest & WithNextToken(NextTokenT &&value)
ListSubscriptionGrantsRequest & WithSubscribedListingId(SubscribedListingIdT &&value)
ListSubscriptionGrantsRequest & WithOwningProjectId(OwningProjectIdT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListSubscriptionGrantsRequest & WithSortBy(SortKey value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String