AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeProjectsRequest.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/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/CustomizationFeature.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API DescribeProjectsRequest() = 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 "DescribeProjects"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::String& GetNextToken() const { return m_nextToken; }
42 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
43 template <typename NextTokenT = Aws::String>
44 void SetNextToken(NextTokenT&& value) {
45 m_nextTokenHasBeenSet = true;
46 m_nextToken = std::forward<NextTokenT>(value);
47 }
48 template <typename NextTokenT = Aws::String>
50 SetNextToken(std::forward<NextTokenT>(value));
51 return *this;
52 }
54
56
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) {
64 m_maxResultsHasBeenSet = true;
65 m_maxResults = value;
66 }
68 SetMaxResults(value);
69 return *this;
70 }
72
74
79 inline const Aws::Vector<Aws::String>& GetProjectNames() const { return m_projectNames; }
80 inline bool ProjectNamesHasBeenSet() const { return m_projectNamesHasBeenSet; }
81 template <typename ProjectNamesT = Aws::Vector<Aws::String>>
82 void SetProjectNames(ProjectNamesT&& value) {
83 m_projectNamesHasBeenSet = true;
84 m_projectNames = std::forward<ProjectNamesT>(value);
85 }
86 template <typename ProjectNamesT = Aws::Vector<Aws::String>>
87 DescribeProjectsRequest& WithProjectNames(ProjectNamesT&& value) {
88 SetProjectNames(std::forward<ProjectNamesT>(value));
89 return *this;
90 }
91 template <typename ProjectNamesT = Aws::String>
92 DescribeProjectsRequest& AddProjectNames(ProjectNamesT&& value) {
93 m_projectNamesHasBeenSet = true;
94 m_projectNames.emplace_back(std::forward<ProjectNamesT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Vector<CustomizationFeature>& GetFeatures() const { return m_features; }
105 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
106 template <typename FeaturesT = Aws::Vector<CustomizationFeature>>
107 void SetFeatures(FeaturesT&& value) {
108 m_featuresHasBeenSet = true;
109 m_features = std::forward<FeaturesT>(value);
110 }
111 template <typename FeaturesT = Aws::Vector<CustomizationFeature>>
113 SetFeatures(std::forward<FeaturesT>(value));
114 return *this;
115 }
117 m_featuresHasBeenSet = true;
118 m_features.push_back(value);
119 return *this;
120 }
122 private:
123 Aws::String m_nextToken;
124
125 int m_maxResults{0};
126
127 Aws::Vector<Aws::String> m_projectNames;
128
130 bool m_nextTokenHasBeenSet = false;
131 bool m_maxResultsHasBeenSet = false;
132 bool m_projectNamesHasBeenSet = false;
133 bool m_featuresHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace Rekognition
138} // namespace Aws
DescribeProjectsRequest & AddProjectNames(ProjectNamesT &&value)
DescribeProjectsRequest & WithFeatures(FeaturesT &&value)
const Aws::Vector< CustomizationFeature > & GetFeatures() const
AWS_REKOGNITION_API DescribeProjectsRequest()=default
const Aws::Vector< Aws::String > & GetProjectNames() const
virtual const char * GetServiceRequestName() const override
DescribeProjectsRequest & WithMaxResults(int value)
DescribeProjectsRequest & AddFeatures(CustomizationFeature value)
DescribeProjectsRequest & WithProjectNames(ProjectNamesT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DescribeProjectsRequest & WithNextToken(NextTokenT &&value)
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