AWS SDK for C++  1.9.71
AWS SDK for C++
CreateModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace FraudDetector
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetModelId() const{ return m_modelId; }
44 
48  inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
49 
53  inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
54 
58  inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
59 
63  inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
64 
68  inline CreateModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
69 
73  inline CreateModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
74 
78  inline CreateModelRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
79 
80 
84  inline const ModelTypeEnum& GetModelType() const{ return m_modelType; }
85 
89  inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
90 
94  inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
95 
99  inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); }
100 
104  inline CreateModelRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
105 
109  inline CreateModelRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
110 
111 
115  inline const Aws::String& GetDescription() const{ return m_description; }
116 
120  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 
125  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 
130  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
131 
135  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
136 
140  inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
141 
145  inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
146 
150  inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
151 
152 
156  inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; }
157 
161  inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
162 
166  inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; }
167 
171  inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); }
172 
176  inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); }
177 
181  inline CreateModelRequest& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;}
182 
186  inline CreateModelRequest& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;}
187 
191  inline CreateModelRequest& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;}
192 
193 
197  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
198 
202  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 
207  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
208 
212  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
213 
217  inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
218 
222  inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
223 
227  inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
228 
232  inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
233 
234  private:
235 
236  Aws::String m_modelId;
237  bool m_modelIdHasBeenSet;
238 
239  ModelTypeEnum m_modelType;
240  bool m_modelTypeHasBeenSet;
241 
242  Aws::String m_description;
243  bool m_descriptionHasBeenSet;
244 
245  Aws::String m_eventTypeName;
246  bool m_eventTypeNameHasBeenSet;
247 
248  Aws::Vector<Tag> m_tags;
249  bool m_tagsHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace FraudDetector
254 } // namespace Aws
Aws::FraudDetector::Model::CreateModelRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateModelRequest.h:212
Aws::FraudDetector::Model::CreateModelRequest::WithModelType
CreateModelRequest & WithModelType(ModelTypeEnum &&value)
Definition: CreateModelRequest.h:109
Aws::FraudDetector::Model::CreateModelRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateModelRequest.h:120
FraudDetectorRequest.h
Aws::FraudDetector::Model::CreateModelRequest::GetModelId
const Aws::String & GetModelId() const
Definition: CreateModelRequest.h:43
Aws::FraudDetector::Model::CreateModelRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateModelRequest.h:207
Aws::FraudDetector::Model::CreateModelRequest::GetEventTypeName
const Aws::String & GetEventTypeName() const
Definition: CreateModelRequest.h:156
Aws::FraudDetector::Model::CreateModelRequest::SetModelType
void SetModelType(ModelTypeEnum &&value)
Definition: CreateModelRequest.h:99
Aws::FraudDetector::Model::CreateModelRequest::AddTags
CreateModelRequest & AddTags(const Tag &value)
Definition: CreateModelRequest.h:227
Aws::FraudDetector::Model::CreateModelRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateModelRequest.h:115
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::ModelTypeEnum
ModelTypeEnum
Definition: ModelTypeEnum.h:17
Aws::FraudDetector::Model::CreateModelRequest::SetModelType
void SetModelType(const ModelTypeEnum &value)
Definition: CreateModelRequest.h:94
Aws::FraudDetector::Model::CreateModelRequest::SetModelId
void SetModelId(Aws::String &&value)
Definition: CreateModelRequest.h:58
Aws::FraudDetector::Model::CreateModelRequest::WithEventTypeName
CreateModelRequest & WithEventTypeName(Aws::String &&value)
Definition: CreateModelRequest.h:186
Aws::FraudDetector::Model::CreateModelRequest::WithTags
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateModelRequest.h:222
ModelTypeEnum.h
Aws::FraudDetector::Model::CreateModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateModelRequest.h:33
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::FraudDetector::Model::CreateModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::CreateModelRequest::WithEventTypeName
CreateModelRequest & WithEventTypeName(const Aws::String &value)
Definition: CreateModelRequest.h:181
Aws::FraudDetector::Model::CreateModelRequest::EventTypeNameHasBeenSet
bool EventTypeNameHasBeenSet() const
Definition: CreateModelRequest.h:161
Aws::FraudDetector::Model::CreateModelRequest::GetModelType
const ModelTypeEnum & GetModelType() const
Definition: CreateModelRequest.h:84
AWSVector.h
Aws::FraudDetector::Model::CreateModelRequest::WithModelId
CreateModelRequest & WithModelId(Aws::String &&value)
Definition: CreateModelRequest.h:73
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::CreateModelRequest::SetModelId
void SetModelId(const char *value)
Definition: CreateModelRequest.h:63
Aws::FraudDetector::Model::CreateModelRequest::WithModelId
CreateModelRequest & WithModelId(const Aws::String &value)
Definition: CreateModelRequest.h:68
Aws::FraudDetector::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(const char *value)
Definition: CreateModelRequest.h:150
Aws::FraudDetector::Model::CreateModelRequest::SetEventTypeName
void SetEventTypeName(const Aws::String &value)
Definition: CreateModelRequest.h:166
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::CreateModelRequest::WithTags
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateModelRequest.h:217
Aws::FraudDetector::Model::CreateModelRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateModelRequest.h:135
Aws::FraudDetector::Model::CreateModelRequest
Definition: CreateModelRequest.h:25
Aws::FraudDetector::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(Aws::String &&value)
Definition: CreateModelRequest.h:145
Aws::FraudDetector::Model::CreateModelRequest::ModelTypeHasBeenSet
bool ModelTypeHasBeenSet() const
Definition: CreateModelRequest.h:89
Aws::FraudDetector::Model::CreateModelRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateModelRequest.h:130
Aws::FraudDetector::Model::CreateModelRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateModelRequest.h:125
Aws::FraudDetector::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(const Aws::String &value)
Definition: CreateModelRequest.h:140
AWSString.h
Aws::FraudDetector::Model::CreateModelRequest::WithModelId
CreateModelRequest & WithModelId(const char *value)
Definition: CreateModelRequest.h:78
Aws::FraudDetector::Model::CreateModelRequest::CreateModelRequest
CreateModelRequest()
Aws::FraudDetector::Model::CreateModelRequest::AddTags
CreateModelRequest & AddTags(Tag &&value)
Definition: CreateModelRequest.h:232
Aws::FraudDetector::Model::CreateModelRequest::SetEventTypeName
void SetEventTypeName(const char *value)
Definition: CreateModelRequest.h:176
Aws::FraudDetector::Model::CreateModelRequest::WithEventTypeName
CreateModelRequest & WithEventTypeName(const char *value)
Definition: CreateModelRequest.h:191
Aws::FraudDetector::Model::CreateModelRequest::ModelIdHasBeenSet
bool ModelIdHasBeenSet() const
Definition: CreateModelRequest.h:48
Aws::FraudDetector::Model::CreateModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::CreateModelRequest::SetModelId
void SetModelId(const Aws::String &value)
Definition: CreateModelRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::CreateModelRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateModelRequest.h:202
Aws::FraudDetector::Model::CreateModelRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateModelRequest.h:197
Aws::FraudDetector::Model::CreateModelRequest::WithModelType
CreateModelRequest & WithModelType(const ModelTypeEnum &value)
Definition: CreateModelRequest.h:104
Aws::FraudDetector::Model::CreateModelRequest::SetEventTypeName
void SetEventTypeName(Aws::String &&value)
Definition: CreateModelRequest.h:171