AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ListResourcesRequest.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/resiliencehubv2/Resiliencehubv2Request.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace resiliencehubv2 {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUBV2_API ListResourcesRequest() = 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 "ListResources"; }
32
33 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
34
35 AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
40 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
41 template <typename ServiceArnT = Aws::String>
42 void SetServiceArn(ServiceArnT&& value) {
43 m_serviceArnHasBeenSet = true;
44 m_serviceArn = std::forward<ServiceArnT>(value);
45 }
46 template <typename ServiceArnT = Aws::String>
47 ListResourcesRequest& WithServiceArn(ServiceArnT&& value) {
48 SetServiceArn(std::forward<ServiceArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetServiceFunctionId() const { return m_serviceFunctionId; }
58 inline bool ServiceFunctionIdHasBeenSet() const { return m_serviceFunctionIdHasBeenSet; }
59 template <typename ServiceFunctionIdT = Aws::String>
60 void SetServiceFunctionId(ServiceFunctionIdT&& value) {
61 m_serviceFunctionIdHasBeenSet = true;
62 m_serviceFunctionId = std::forward<ServiceFunctionIdT>(value);
63 }
64 template <typename ServiceFunctionIdT = Aws::String>
65 ListResourcesRequest& WithServiceFunctionId(ServiceFunctionIdT&& value) {
66 SetServiceFunctionId(std::forward<ServiceFunctionIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
76 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
77 template <typename AwsRegionT = Aws::String>
78 void SetAwsRegion(AwsRegionT&& value) {
79 m_awsRegionHasBeenSet = true;
80 m_awsRegion = std::forward<AwsRegionT>(value);
81 }
82 template <typename AwsRegionT = Aws::String>
83 ListResourcesRequest& WithAwsRegion(AwsRegionT&& value) {
84 SetAwsRegion(std::forward<AwsRegionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
94 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
95 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
96 void SetResourceTypes(ResourceTypesT&& value) {
97 m_resourceTypesHasBeenSet = true;
98 m_resourceTypes = std::forward<ResourceTypesT>(value);
99 }
100 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
101 ListResourcesRequest& WithResourceTypes(ResourceTypesT&& value) {
102 SetResourceTypes(std::forward<ResourceTypesT>(value));
103 return *this;
104 }
105 template <typename ResourceTypesT = Aws::String>
106 ListResourcesRequest& AddResourceTypes(ResourceTypesT&& value) {
107 m_resourceTypesHasBeenSet = true;
108 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
109 return *this;
110 }
112
114
118 inline bool GetBillable() const { return m_billable; }
119 inline bool BillableHasBeenSet() const { return m_billableHasBeenSet; }
120 inline void SetBillable(bool value) {
121 m_billableHasBeenSet = true;
122 m_billable = value;
123 }
124 inline ListResourcesRequest& WithBillable(bool value) {
125 SetBillable(value);
126 return *this;
127 }
129
131
132 inline int GetMaxResults() const { return m_maxResults; }
133 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 inline void SetMaxResults(int value) {
135 m_maxResultsHasBeenSet = true;
136 m_maxResults = value;
137 }
139 SetMaxResults(value);
140 return *this;
141 }
143
145
146 inline const Aws::String& GetNextToken() const { return m_nextToken; }
147 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
148 template <typename NextTokenT = Aws::String>
149 void SetNextToken(NextTokenT&& value) {
150 m_nextTokenHasBeenSet = true;
151 m_nextToken = std::forward<NextTokenT>(value);
152 }
153 template <typename NextTokenT = Aws::String>
154 ListResourcesRequest& WithNextToken(NextTokenT&& value) {
155 SetNextToken(std::forward<NextTokenT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_serviceArn;
161
162 Aws::String m_serviceFunctionId;
163
164 Aws::String m_awsRegion;
165
166 Aws::Vector<Aws::String> m_resourceTypes;
167
168 bool m_billable{false};
169
170 int m_maxResults{0};
171
172 Aws::String m_nextToken;
173 bool m_serviceArnHasBeenSet = false;
174 bool m_serviceFunctionIdHasBeenSet = false;
175 bool m_awsRegionHasBeenSet = false;
176 bool m_resourceTypesHasBeenSet = false;
177 bool m_billableHasBeenSet = false;
178 bool m_maxResultsHasBeenSet = false;
179 bool m_nextTokenHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace resiliencehubv2
184} // namespace Aws
ListResourcesRequest & WithAwsRegion(AwsRegionT &&value)
AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_RESILIENCEHUBV2_API ListResourcesRequest()=default
ListResourcesRequest & WithServiceArn(ServiceArnT &&value)
ListResourcesRequest & WithResourceTypes(ResourceTypesT &&value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
ListResourcesRequest & AddResourceTypes(ResourceTypesT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
ListResourcesRequest & WithNextToken(NextTokenT &&value)
void SetServiceFunctionId(ServiceFunctionIdT &&value)
ListResourcesRequest & WithServiceFunctionId(ServiceFunctionIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector