AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
ListResourcesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace resiliencehubv2 {
18namespace Model {
19
23 public:
24 AWS_RESILIENCEHUBV2_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_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
33
34 AWS_RESILIENCEHUBV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
38 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
39 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
40 template <typename ServiceArnT = Aws::String>
41 void SetServiceArn(ServiceArnT&& value) {
42 m_serviceArnHasBeenSet = true;
43 m_serviceArn = std::forward<ServiceArnT>(value);
44 }
45 template <typename ServiceArnT = Aws::String>
46 ListResourcesRequest& WithServiceArn(ServiceArnT&& value) {
47 SetServiceArn(std::forward<ServiceArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetServiceFunctionId() const { return m_serviceFunctionId; }
57 inline bool ServiceFunctionIdHasBeenSet() const { return m_serviceFunctionIdHasBeenSet; }
58 template <typename ServiceFunctionIdT = Aws::String>
59 void SetServiceFunctionId(ServiceFunctionIdT&& value) {
60 m_serviceFunctionIdHasBeenSet = true;
61 m_serviceFunctionId = std::forward<ServiceFunctionIdT>(value);
62 }
63 template <typename ServiceFunctionIdT = Aws::String>
64 ListResourcesRequest& WithServiceFunctionId(ServiceFunctionIdT&& value) {
65 SetServiceFunctionId(std::forward<ServiceFunctionIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
75 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
76 template <typename AwsRegionT = Aws::String>
77 void SetAwsRegion(AwsRegionT&& value) {
78 m_awsRegionHasBeenSet = true;
79 m_awsRegion = std::forward<AwsRegionT>(value);
80 }
81 template <typename AwsRegionT = Aws::String>
82 ListResourcesRequest& WithAwsRegion(AwsRegionT&& value) {
83 SetAwsRegion(std::forward<AwsRegionT>(value));
84 return *this;
85 }
87
89
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
97 SetMaxResults(value);
98 return *this;
99 }
101
103
104 inline const Aws::String& GetNextToken() const { return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 template <typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) {
108 m_nextTokenHasBeenSet = true;
109 m_nextToken = std::forward<NextTokenT>(value);
110 }
111 template <typename NextTokenT = Aws::String>
112 ListResourcesRequest& WithNextToken(NextTokenT&& value) {
113 SetNextToken(std::forward<NextTokenT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_serviceArn;
119
120 Aws::String m_serviceFunctionId;
121
122 Aws::String m_awsRegion;
123
124 int m_maxResults{0};
125
126 Aws::String m_nextToken;
127 bool m_serviceArnHasBeenSet = false;
128 bool m_serviceFunctionIdHasBeenSet = false;
129 bool m_awsRegionHasBeenSet = false;
130 bool m_maxResultsHasBeenSet = false;
131 bool m_nextTokenHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace resiliencehubv2
136} // 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)
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