AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateModelVersionStatusRequest.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/frauddetector/FraudDetectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/frauddetector/model/ModelTypeEnum.h>
11#include <aws/frauddetector/model/ModelVersionStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace FraudDetector
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_FRAUDDETECTOR_API UpdateModelVersionStatusRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateModelVersionStatus"; }
33
34 AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
35
36 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetModelId() const{ return m_modelId; }
44 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
45 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
46 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
47 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
48 inline UpdateModelVersionStatusRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
49 inline UpdateModelVersionStatusRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
50 inline UpdateModelVersionStatusRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
52
54
57 inline const ModelTypeEnum& GetModelType() const{ return m_modelType; }
58 inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
59 inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
60 inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); }
61 inline UpdateModelVersionStatusRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
62 inline UpdateModelVersionStatusRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetModelVersionNumber() const{ return m_modelVersionNumber; }
70 inline bool ModelVersionNumberHasBeenSet() const { return m_modelVersionNumberHasBeenSet; }
71 inline void SetModelVersionNumber(const Aws::String& value) { m_modelVersionNumberHasBeenSet = true; m_modelVersionNumber = value; }
72 inline void SetModelVersionNumber(Aws::String&& value) { m_modelVersionNumberHasBeenSet = true; m_modelVersionNumber = std::move(value); }
73 inline void SetModelVersionNumber(const char* value) { m_modelVersionNumberHasBeenSet = true; m_modelVersionNumber.assign(value); }
76 inline UpdateModelVersionStatusRequest& WithModelVersionNumber(const char* value) { SetModelVersionNumber(value); return *this;}
78
80
83 inline const ModelVersionStatus& GetStatus() const{ return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(const ModelVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
86 inline void SetStatus(ModelVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
87 inline UpdateModelVersionStatusRequest& WithStatus(const ModelVersionStatus& value) { SetStatus(value); return *this;}
88 inline UpdateModelVersionStatusRequest& WithStatus(ModelVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_modelId;
93 bool m_modelIdHasBeenSet = false;
94
95 ModelTypeEnum m_modelType;
96 bool m_modelTypeHasBeenSet = false;
97
98 Aws::String m_modelVersionNumber;
99 bool m_modelVersionNumberHasBeenSet = false;
100
101 ModelVersionStatus m_status;
102 bool m_statusHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace FraudDetector
107} // namespace Aws
UpdateModelVersionStatusRequest & WithModelId(Aws::String &&value)
UpdateModelVersionStatusRequest & WithModelVersionNumber(const char *value)
UpdateModelVersionStatusRequest & WithModelType(const ModelTypeEnum &value)
UpdateModelVersionStatusRequest & WithModelId(const Aws::String &value)
UpdateModelVersionStatusRequest & WithModelVersionNumber(Aws::String &&value)
UpdateModelVersionStatusRequest & WithStatus(ModelVersionStatus &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
UpdateModelVersionStatusRequest & WithModelType(ModelTypeEnum &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateModelVersionStatusRequest & WithModelVersionNumber(const Aws::String &value)
UpdateModelVersionStatusRequest & WithModelId(const char *value)
UpdateModelVersionStatusRequest & WithStatus(const ModelVersionStatus &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String