AWS SDK for C++  1.9.14
AWS SDK for C++
GetModelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace FraudDetector
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "GetModels"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetModelId() const{ return m_modelId; }
42 
46  inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
47 
51  inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
52 
56  inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
57 
61  inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
62 
66  inline GetModelsRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
67 
71  inline GetModelsRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
72 
76  inline GetModelsRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
77 
78 
82  inline const ModelTypeEnum& GetModelType() const{ return m_modelType; }
83 
87  inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
88 
92  inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
93 
97  inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); }
98 
102  inline GetModelsRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
103 
107  inline GetModelsRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
108 
109 
113  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
114 
118  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 
123  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
124 
128  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
129 
133  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
134 
138  inline GetModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
139 
143  inline GetModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
144 
148  inline GetModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
149 
150 
154  inline int GetMaxResults() const{ return m_maxResults; }
155 
159  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
160 
164  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
165 
169  inline GetModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
170 
171  private:
172 
173  Aws::String m_modelId;
174  bool m_modelIdHasBeenSet;
175 
176  ModelTypeEnum m_modelType;
177  bool m_modelTypeHasBeenSet;
178 
179  Aws::String m_nextToken;
180  bool m_nextTokenHasBeenSet;
181 
182  int m_maxResults;
183  bool m_maxResultsHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace FraudDetector
188 } // namespace Aws
Aws::FraudDetector::Model::GetModelsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetModelsRequest.h:154
FraudDetectorRequest.h
Aws::FraudDetector::Model::GetModelsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetModelsRequest.h:133
Aws::FraudDetector::Model::GetModelsRequest::WithModelId
GetModelsRequest & WithModelId(Aws::String &&value)
Definition: GetModelsRequest.h:71
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::GetModelsRequest::WithModelId
GetModelsRequest & WithModelId(const Aws::String &value)
Definition: GetModelsRequest.h:66
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::ModelTypeEnum
ModelTypeEnum
Definition: ModelTypeEnum.h:17
Aws::FraudDetector::Model::GetModelsRequest::GetModelsRequest
GetModelsRequest()
Aws::FraudDetector::Model::GetModelsRequest::ModelTypeHasBeenSet
bool ModelTypeHasBeenSet() const
Definition: GetModelsRequest.h:87
Aws::FraudDetector::Model::GetModelsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ModelTypeEnum.h
Aws::FraudDetector::Model::GetModelsRequest::ModelIdHasBeenSet
bool ModelIdHasBeenSet() const
Definition: GetModelsRequest.h:46
Aws::FraudDetector::Model::GetModelsRequest::GetModelType
const ModelTypeEnum & GetModelType() const
Definition: GetModelsRequest.h:82
Aws::FraudDetector::Model::GetModelsRequest::WithNextToken
GetModelsRequest & WithNextToken(const Aws::String &value)
Definition: GetModelsRequest.h:138
Aws::FraudDetector::Model::GetModelsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetModelsRequest.h:123
Aws::FraudDetector::Model::GetModelsRequest::SetModelType
void SetModelType(const ModelTypeEnum &value)
Definition: GetModelsRequest.h:92
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::GetModelsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetModelsRequest.h:128
Aws::FraudDetector::Model::GetModelsRequest::WithModelType
GetModelsRequest & WithModelType(ModelTypeEnum &&value)
Definition: GetModelsRequest.h:107
AWSString.h
Aws::FraudDetector::Model::GetModelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetModelsRequest.h:31
Aws::FraudDetector::Model::GetModelsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetModelsRequest.h:159
Aws::FraudDetector::Model::GetModelsRequest::WithNextToken
GetModelsRequest & WithNextToken(Aws::String &&value)
Definition: GetModelsRequest.h:143
Aws::FraudDetector::Model::GetModelsRequest::SetModelType
void SetModelType(ModelTypeEnum &&value)
Definition: GetModelsRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::GetModelsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::FraudDetector::Model::GetModelsRequest::WithModelType
GetModelsRequest & WithModelType(const ModelTypeEnum &value)
Definition: GetModelsRequest.h:102
Aws::FraudDetector::Model::GetModelsRequest::GetModelId
const Aws::String & GetModelId() const
Definition: GetModelsRequest.h:41
Aws::FraudDetector::Model::GetModelsRequest::SetModelId
void SetModelId(const Aws::String &value)
Definition: GetModelsRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::GetModelsRequest::SetModelId
void SetModelId(const char *value)
Definition: GetModelsRequest.h:61
Aws::FraudDetector::Model::GetModelsRequest
Definition: GetModelsRequest.h:23
Aws::FraudDetector::Model::GetModelsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetModelsRequest.h:113
Aws::FraudDetector::Model::GetModelsRequest::WithNextToken
GetModelsRequest & WithNextToken(const char *value)
Definition: GetModelsRequest.h:148
Aws::FraudDetector::Model::GetModelsRequest::WithModelId
GetModelsRequest & WithModelId(const char *value)
Definition: GetModelsRequest.h:76
Aws::FraudDetector::Model::GetModelsRequest::WithMaxResults
GetModelsRequest & WithMaxResults(int value)
Definition: GetModelsRequest.h:169
Aws::FraudDetector::Model::GetModelsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetModelsRequest.h:118
Aws::FraudDetector::Model::GetModelsRequest::SetModelId
void SetModelId(Aws::String &&value)
Definition: GetModelsRequest.h:56
Aws::FraudDetector::Model::GetModelsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetModelsRequest.h:164