AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateModelVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace FraudDetector
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateModelVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetModelId() const{ return m_modelId; }
45 
49  inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
50 
54  inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
55 
59  inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
60 
64  inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
65 
69  inline UpdateModelVersionRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
70 
74  inline UpdateModelVersionRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
75 
79  inline UpdateModelVersionRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
80 
81 
85  inline const ModelTypeEnum& GetModelType() const{ return m_modelType; }
86 
90  inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
91 
95  inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
96 
100  inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); }
101 
105  inline UpdateModelVersionRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
106 
110  inline UpdateModelVersionRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
111 
112 
116  inline const Aws::String& GetMajorVersionNumber() const{ return m_majorVersionNumber; }
117 
121  inline bool MajorVersionNumberHasBeenSet() const { return m_majorVersionNumberHasBeenSet; }
122 
126  inline void SetMajorVersionNumber(const Aws::String& value) { m_majorVersionNumberHasBeenSet = true; m_majorVersionNumber = value; }
127 
131  inline void SetMajorVersionNumber(Aws::String&& value) { m_majorVersionNumberHasBeenSet = true; m_majorVersionNumber = std::move(value); }
132 
136  inline void SetMajorVersionNumber(const char* value) { m_majorVersionNumberHasBeenSet = true; m_majorVersionNumber.assign(value); }
137 
141  inline UpdateModelVersionRequest& WithMajorVersionNumber(const Aws::String& value) { SetMajorVersionNumber(value); return *this;}
142 
146  inline UpdateModelVersionRequest& WithMajorVersionNumber(Aws::String&& value) { SetMajorVersionNumber(std::move(value)); return *this;}
147 
151  inline UpdateModelVersionRequest& WithMajorVersionNumber(const char* value) { SetMajorVersionNumber(value); return *this;}
152 
153 
157  inline const ExternalEventsDetail& GetExternalEventsDetail() const{ return m_externalEventsDetail; }
158 
162  inline bool ExternalEventsDetailHasBeenSet() const { return m_externalEventsDetailHasBeenSet; }
163 
167  inline void SetExternalEventsDetail(const ExternalEventsDetail& value) { m_externalEventsDetailHasBeenSet = true; m_externalEventsDetail = value; }
168 
172  inline void SetExternalEventsDetail(ExternalEventsDetail&& value) { m_externalEventsDetailHasBeenSet = true; m_externalEventsDetail = std::move(value); }
173 
177  inline UpdateModelVersionRequest& WithExternalEventsDetail(const ExternalEventsDetail& value) { SetExternalEventsDetail(value); return *this;}
178 
182  inline UpdateModelVersionRequest& WithExternalEventsDetail(ExternalEventsDetail&& value) { SetExternalEventsDetail(std::move(value)); return *this;}
183 
184 
188  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
189 
193  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 
198  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
199 
203  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
204 
208  inline UpdateModelVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
209 
213  inline UpdateModelVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
214 
218  inline UpdateModelVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
219 
223  inline UpdateModelVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
224 
225  private:
226 
227  Aws::String m_modelId;
228  bool m_modelIdHasBeenSet;
229 
230  ModelTypeEnum m_modelType;
231  bool m_modelTypeHasBeenSet;
232 
233  Aws::String m_majorVersionNumber;
234  bool m_majorVersionNumberHasBeenSet;
235 
236  ExternalEventsDetail m_externalEventsDetail;
237  bool m_externalEventsDetailHasBeenSet;
238 
239  Aws::Vector<Tag> m_tags;
240  bool m_tagsHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace FraudDetector
245 } // namespace Aws
FraudDetectorRequest.h
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithModelType
UpdateModelVersionRequest & WithModelType(const ModelTypeEnum &value)
Definition: UpdateModelVersionRequest.h:105
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithExternalEventsDetail
UpdateModelVersionRequest & WithExternalEventsDetail(ExternalEventsDetail &&value)
Definition: UpdateModelVersionRequest.h:182
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithModelId
UpdateModelVersionRequest & WithModelId(const Aws::String &value)
Definition: UpdateModelVersionRequest.h:69
Aws::FraudDetector::Model::UpdateModelVersionRequest
Definition: UpdateModelVersionRequest.h:26
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: UpdateModelVersionRequest.h:188
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::ModelTypeEnum
ModelTypeEnum
Definition: ModelTypeEnum.h:17
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetModelId
void SetModelId(const Aws::String &value)
Definition: UpdateModelVersionRequest.h:54
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetModelType
void SetModelType(ModelTypeEnum &&value)
Definition: UpdateModelVersionRequest.h:100
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetMajorVersionNumber
void SetMajorVersionNumber(const Aws::String &value)
Definition: UpdateModelVersionRequest.h:126
Aws::FraudDetector::Model::UpdateModelVersionRequest::ModelIdHasBeenSet
bool ModelIdHasBeenSet() const
Definition: UpdateModelVersionRequest.h:49
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetModelId
void SetModelId(Aws::String &&value)
Definition: UpdateModelVersionRequest.h:59
ModelTypeEnum.h
Aws::FraudDetector::Model::UpdateModelVersionRequest::SerializePayload
Aws::String SerializePayload() const override
ExternalEventsDetail.h
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithMajorVersionNumber
UpdateModelVersionRequest & WithMajorVersionNumber(Aws::String &&value)
Definition: UpdateModelVersionRequest.h:146
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetExternalEventsDetail
void SetExternalEventsDetail(const ExternalEventsDetail &value)
Definition: UpdateModelVersionRequest.h:167
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetModelType
const ModelTypeEnum & GetModelType() const
Definition: UpdateModelVersionRequest.h:85
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithMajorVersionNumber
UpdateModelVersionRequest & WithMajorVersionNumber(const char *value)
Definition: UpdateModelVersionRequest.h:151
AWSVector.h
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithModelId
UpdateModelVersionRequest & WithModelId(Aws::String &&value)
Definition: UpdateModelVersionRequest.h:74
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetExternalEventsDetail
void SetExternalEventsDetail(ExternalEventsDetail &&value)
Definition: UpdateModelVersionRequest.h:172
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithTags
UpdateModelVersionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: UpdateModelVersionRequest.h:208
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithModelType
UpdateModelVersionRequest & WithModelType(ModelTypeEnum &&value)
Definition: UpdateModelVersionRequest.h:110
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: UpdateModelVersionRequest.h:198
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithModelId
UpdateModelVersionRequest & WithModelId(const char *value)
Definition: UpdateModelVersionRequest.h:79
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetModelId
void SetModelId(const char *value)
Definition: UpdateModelVersionRequest.h:64
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetModelType
void SetModelType(const ModelTypeEnum &value)
Definition: UpdateModelVersionRequest.h:95
Aws::FraudDetector::Model::UpdateModelVersionRequest::ExternalEventsDetailHasBeenSet
bool ExternalEventsDetailHasBeenSet() const
Definition: UpdateModelVersionRequest.h:162
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: UpdateModelVersionRequest.h:203
Aws::FraudDetector::Model::UpdateModelVersionRequest::UpdateModelVersionRequest
UpdateModelVersionRequest()
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateModelVersionRequest.h:34
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetMajorVersionNumber
void SetMajorVersionNumber(Aws::String &&value)
Definition: UpdateModelVersionRequest.h:131
AWSString.h
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetModelId
const Aws::String & GetModelId() const
Definition: UpdateModelVersionRequest.h:44
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithMajorVersionNumber
UpdateModelVersionRequest & WithMajorVersionNumber(const Aws::String &value)
Definition: UpdateModelVersionRequest.h:141
Aws::FraudDetector::Model::UpdateModelVersionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: UpdateModelVersionRequest.h:193
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::UpdateModelVersionRequest::AddTags
UpdateModelVersionRequest & AddTags(const Tag &value)
Definition: UpdateModelVersionRequest.h:218
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithExternalEventsDetail
UpdateModelVersionRequest & WithExternalEventsDetail(const ExternalEventsDetail &value)
Definition: UpdateModelVersionRequest.h:177
Aws::FraudDetector::Model::UpdateModelVersionRequest::WithTags
UpdateModelVersionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: UpdateModelVersionRequest.h:213
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetMajorVersionNumber
const Aws::String & GetMajorVersionNumber() const
Definition: UpdateModelVersionRequest.h:116
Aws::FraudDetector::Model::UpdateModelVersionRequest::GetExternalEventsDetail
const ExternalEventsDetail & GetExternalEventsDetail() const
Definition: UpdateModelVersionRequest.h:157
Aws::FraudDetector::Model::UpdateModelVersionRequest::SetMajorVersionNumber
void SetMajorVersionNumber(const char *value)
Definition: UpdateModelVersionRequest.h:136
Aws::FraudDetector::Model::UpdateModelVersionRequest::AddTags
UpdateModelVersionRequest & AddTags(Tag &&value)
Definition: UpdateModelVersionRequest.h:223
Aws::FraudDetector::Model::ExternalEventsDetail
Definition: ExternalEventsDetail.h:33
Aws::FraudDetector::Model::UpdateModelVersionRequest::MajorVersionNumberHasBeenSet
bool MajorVersionNumberHasBeenSet() const
Definition: UpdateModelVersionRequest.h:121
Aws::FraudDetector::Model::UpdateModelVersionRequest::ModelTypeHasBeenSet
bool ModelTypeHasBeenSet() const
Definition: UpdateModelVersionRequest.h:90