AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
ListEntitlementsRequest.h
1
6#pragma once
7#include <aws/account-access/AccountAccessRequest.h>
8#include <aws/account-access/AccountAccess_EXPORTS.h>
9#include <aws/account-access/model/EntitlementFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AccountAccess {
16namespace Model {
17
21 public:
22 AWS_ACCOUNTACCESS_API ListEntitlementsRequest() = 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 "ListEntitlements"; }
29
30 AWS_ACCOUNTACCESS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
37 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
38 template <typename ApplicationArnT = Aws::String>
39 void SetApplicationArn(ApplicationArnT&& value) {
40 m_applicationArnHasBeenSet = true;
41 m_applicationArn = std::forward<ApplicationArnT>(value);
42 }
43 template <typename ApplicationArnT = Aws::String>
44 ListEntitlementsRequest& WithApplicationArn(ApplicationArnT&& value) {
45 SetApplicationArn(std::forward<ApplicationArnT>(value));
46 return *this;
47 }
49
51
55 inline const EntitlementFilter& GetFilter() const { return m_filter; }
56 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
57 template <typename FilterT = EntitlementFilter>
58 void SetFilter(FilterT&& value) {
59 m_filterHasBeenSet = true;
60 m_filter = std::forward<FilterT>(value);
61 }
62 template <typename FilterT = EntitlementFilter>
64 SetFilter(std::forward<FilterT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) {
95 m_maxResultsHasBeenSet = true;
96 m_maxResults = value;
97 }
99 SetMaxResults(value);
100 return *this;
101 }
103 private:
104 Aws::String m_applicationArn;
105
106 EntitlementFilter m_filter;
107
108 Aws::String m_nextToken;
109
110 int m_maxResults{0};
111 bool m_applicationArnHasBeenSet = false;
112 bool m_filterHasBeenSet = false;
113 bool m_nextTokenHasBeenSet = false;
114 bool m_maxResultsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace AccountAccess
119} // namespace Aws
AWS_ACCOUNTACCESS_API Aws::String SerializePayload() const override
ListEntitlementsRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
ListEntitlementsRequest & WithApplicationArn(ApplicationArnT &&value)
AWS_ACCOUNTACCESS_API ListEntitlementsRequest()=default
ListEntitlementsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String