AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
ListLicensesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LicenseManager {
17namespace Model {
18
22 public:
23 AWS_LICENSEMANAGER_API ListLicensesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListLicenses"; }
30
31 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::Vector<Aws::String>& GetLicenseArns() const { return m_licenseArns; }
40 inline bool LicenseArnsHasBeenSet() const { return m_licenseArnsHasBeenSet; }
41 template <typename LicenseArnsT = Aws::Vector<Aws::String>>
42 void SetLicenseArns(LicenseArnsT&& value) {
43 m_licenseArnsHasBeenSet = true;
44 m_licenseArns = std::forward<LicenseArnsT>(value);
45 }
46 template <typename LicenseArnsT = Aws::Vector<Aws::String>>
47 ListLicensesRequest& WithLicenseArns(LicenseArnsT&& value) {
48 SetLicenseArns(std::forward<LicenseArnsT>(value));
49 return *this;
50 }
51 template <typename LicenseArnsT = Aws::String>
52 ListLicensesRequest& AddLicenseArns(LicenseArnsT&& value) {
53 m_licenseArnsHasBeenSet = true;
54 m_licenseArns.emplace_back(std::forward<LicenseArnsT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
67 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
68 template <typename FiltersT = Aws::Vector<Filter>>
69 void SetFilters(FiltersT&& value) {
70 m_filtersHasBeenSet = true;
71 m_filters = std::forward<FiltersT>(value);
72 }
73 template <typename FiltersT = Aws::Vector<Filter>>
74 ListLicensesRequest& WithFilters(FiltersT&& value) {
75 SetFilters(std::forward<FiltersT>(value));
76 return *this;
77 }
78 template <typename FiltersT = Filter>
79 ListLicensesRequest& AddFilters(FiltersT&& value) {
80 m_filtersHasBeenSet = true;
81 m_filters.emplace_back(std::forward<FiltersT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template <typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) {
94 m_nextTokenHasBeenSet = true;
95 m_nextToken = std::forward<NextTokenT>(value);
96 }
97 template <typename NextTokenT = Aws::String>
98 ListLicensesRequest& WithNextToken(NextTokenT&& value) {
99 SetNextToken(std::forward<NextTokenT>(value));
100 return *this;
101 }
103
105
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
115 SetMaxResults(value);
116 return *this;
117 }
119 private:
120 Aws::Vector<Aws::String> m_licenseArns;
121 bool m_licenseArnsHasBeenSet = false;
122
123 Aws::Vector<Filter> m_filters;
124 bool m_filtersHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
129 int m_maxResults{0};
130 bool m_maxResultsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace LicenseManager
135} // namespace Aws
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListLicensesRequest & WithFilters(FiltersT &&value)
ListLicensesRequest & WithNextToken(NextTokenT &&value)
ListLicensesRequest & WithLicenseArns(LicenseArnsT &&value)
virtual const char * GetServiceRequestName() const override
ListLicensesRequest & AddLicenseArns(LicenseArnsT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetLicenseArns() const
ListLicensesRequest & AddFilters(FiltersT &&value)
AWS_LICENSEMANAGER_API ListLicensesRequest()=default
const Aws::Vector< Filter > & GetFilters() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector