AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListResourcesRequest.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApiRequest.h>
8#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudControlApi {
15namespace Model {
16
20 public:
21 AWS_CLOUDCONTROLAPI_API ListResourcesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListResources"; }
28
29 AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetTypeName() const { return m_typeName; }
38 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
39 template <typename TypeNameT = Aws::String>
40 void SetTypeName(TypeNameT&& value) {
41 m_typeNameHasBeenSet = true;
42 m_typeName = std::forward<TypeNameT>(value);
43 }
44 template <typename TypeNameT = Aws::String>
45 ListResourcesRequest& WithTypeName(TypeNameT&& value) {
46 SetTypeName(std::forward<TypeNameT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
58 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
59 template <typename TypeVersionIdT = Aws::String>
60 void SetTypeVersionId(TypeVersionIdT&& value) {
61 m_typeVersionIdHasBeenSet = true;
62 m_typeVersionId = std::forward<TypeVersionIdT>(value);
63 }
64 template <typename TypeVersionIdT = Aws::String>
65 ListResourcesRequest& WithTypeVersionId(TypeVersionIdT&& value) {
66 SetTypeVersionId(std::forward<TypeVersionIdT>(value));
67 return *this;
68 }
70
72
87 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 template <typename RoleArnT = Aws::String>
90 void SetRoleArn(RoleArnT&& value) {
91 m_roleArnHasBeenSet = true;
92 m_roleArn = std::forward<RoleArnT>(value);
93 }
94 template <typename RoleArnT = Aws::String>
95 ListResourcesRequest& WithRoleArn(RoleArnT&& value) {
96 SetRoleArn(std::forward<RoleArnT>(value));
97 return *this;
98 }
100
102
110 inline const Aws::String& GetNextToken() const { return m_nextToken; }
111 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 template <typename NextTokenT = Aws::String>
113 void SetNextToken(NextTokenT&& value) {
114 m_nextTokenHasBeenSet = true;
115 m_nextToken = std::forward<NextTokenT>(value);
116 }
117 template <typename NextTokenT = Aws::String>
118 ListResourcesRequest& WithNextToken(NextTokenT&& value) {
119 SetNextToken(std::forward<NextTokenT>(value));
120 return *this;
121 }
123
125
128 inline int GetMaxResults() const { return m_maxResults; }
129 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
130 inline void SetMaxResults(int value) {
131 m_maxResultsHasBeenSet = true;
132 m_maxResults = value;
133 }
135 SetMaxResults(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetResourceModel() const { return m_resourceModel; }
145 inline bool ResourceModelHasBeenSet() const { return m_resourceModelHasBeenSet; }
146 template <typename ResourceModelT = Aws::String>
147 void SetResourceModel(ResourceModelT&& value) {
148 m_resourceModelHasBeenSet = true;
149 m_resourceModel = std::forward<ResourceModelT>(value);
150 }
151 template <typename ResourceModelT = Aws::String>
152 ListResourcesRequest& WithResourceModel(ResourceModelT&& value) {
153 SetResourceModel(std::forward<ResourceModelT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_typeName;
159
160 Aws::String m_typeVersionId;
161
162 Aws::String m_roleArn;
163
164 Aws::String m_nextToken;
165
166 int m_maxResults{0};
167
168 Aws::String m_resourceModel;
169 bool m_typeNameHasBeenSet = false;
170 bool m_typeVersionIdHasBeenSet = false;
171 bool m_roleArnHasBeenSet = false;
172 bool m_nextTokenHasBeenSet = false;
173 bool m_maxResultsHasBeenSet = false;
174 bool m_resourceModelHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace CloudControlApi
179} // namespace Aws
AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override
AWS_CLOUDCONTROLAPI_API ListResourcesRequest()=default
virtual const char * GetServiceRequestName() const override
ListResourcesRequest & WithNextToken(NextTokenT &&value)
ListResourcesRequest & WithRoleArn(RoleArnT &&value)
ListResourcesRequest & WithResourceModel(ResourceModelT &&value)
ListResourcesRequest & WithTypeVersionId(TypeVersionIdT &&value)
AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListResourcesRequest & WithTypeName(TypeNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String