AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListResourcesRequest.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
8#include <aws/cloudcontrol/CloudControlApiRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CloudControlApi
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDCONTROLAPI_API ListResourcesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListResources"; }
31
32 AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetTypeName() const { return m_typeName; }
42 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
43 template<typename TypeNameT = Aws::String>
44 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
45 template<typename TypeNameT = Aws::String>
46 ListResourcesRequest& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
48
50
55 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
56 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
57 template<typename TypeVersionIdT = Aws::String>
58 void SetTypeVersionId(TypeVersionIdT&& value) { m_typeVersionIdHasBeenSet = true; m_typeVersionId = std::forward<TypeVersionIdT>(value); }
59 template<typename TypeVersionIdT = Aws::String>
60 ListResourcesRequest& WithTypeVersionId(TypeVersionIdT&& value) { SetTypeVersionId(std::forward<TypeVersionIdT>(value)); return *this;}
62
64
79 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
80 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
81 template<typename RoleArnT = Aws::String>
82 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
83 template<typename RoleArnT = Aws::String>
84 ListResourcesRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
86
88
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template<typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
100 template<typename NextTokenT = Aws::String>
101 ListResourcesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
103
105
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
111 inline ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
113
115
118 inline const Aws::String& GetResourceModel() const { return m_resourceModel; }
119 inline bool ResourceModelHasBeenSet() const { return m_resourceModelHasBeenSet; }
120 template<typename ResourceModelT = Aws::String>
121 void SetResourceModel(ResourceModelT&& value) { m_resourceModelHasBeenSet = true; m_resourceModel = std::forward<ResourceModelT>(value); }
122 template<typename ResourceModelT = Aws::String>
123 ListResourcesRequest& WithResourceModel(ResourceModelT&& value) { SetResourceModel(std::forward<ResourceModelT>(value)); return *this;}
125 private:
126
127 Aws::String m_typeName;
128 bool m_typeNameHasBeenSet = false;
129
130 Aws::String m_typeVersionId;
131 bool m_typeVersionIdHasBeenSet = false;
132
133 Aws::String m_roleArn;
134 bool m_roleArnHasBeenSet = false;
135
136 Aws::String m_nextToken;
137 bool m_nextTokenHasBeenSet = false;
138
139 int m_maxResults{0};
140 bool m_maxResultsHasBeenSet = false;
141
142 Aws::String m_resourceModel;
143 bool m_resourceModelHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace CloudControlApi
148} // 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