AWS SDK for C++  1.8.71
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 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
UpdateModelVersionRequest & WithModelId(const Aws::String &value)
UpdateModelVersionRequest & WithModelId(const char *value)
UpdateModelVersionRequest & WithExternalEventsDetail(const ExternalEventsDetail &value)
UpdateModelVersionRequest & WithModelType(const ModelTypeEnum &value)
UpdateModelVersionRequest & AddTags(const Tag &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetExternalEventsDetail(const ExternalEventsDetail &value)
UpdateModelVersionRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
UpdateModelVersionRequest & WithTags(Aws::Vector< Tag > &&value)
UpdateModelVersionRequest & WithModelType(ModelTypeEnum &&value)
#define AWS_FRAUDDETECTOR_API
UpdateModelVersionRequest & WithMajorVersionNumber(const char *value)
UpdateModelVersionRequest & WithExternalEventsDetail(ExternalEventsDetail &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ExternalEventsDetail & GetExternalEventsDetail() const
UpdateModelVersionRequest & WithModelId(Aws::String &&value)
UpdateModelVersionRequest & WithMajorVersionNumber(Aws::String &&value)
UpdateModelVersionRequest & WithMajorVersionNumber(const Aws::String &value)