AWS SDK for C++  1.9.72
AWS SDK for C++
UpdateModelRequest.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 "UpdateModel"; }
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 UpdateModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
67 
71  inline UpdateModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
72 
76  inline UpdateModelRequest& 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 UpdateModelRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
103 
107  inline UpdateModelRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
108 
109 
113  inline const Aws::String& GetDescription() const{ return m_description; }
114 
118  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 
123  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
124 
128  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
129 
133  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
134 
138  inline UpdateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
139 
143  inline UpdateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
144 
148  inline UpdateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
149 
150  private:
151 
152  Aws::String m_modelId;
153  bool m_modelIdHasBeenSet;
154 
155  ModelTypeEnum m_modelType;
156  bool m_modelTypeHasBeenSet;
157 
158  Aws::String m_description;
159  bool m_descriptionHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace FraudDetector
164 } // namespace Aws
Aws::FraudDetector::Model::UpdateModelRequest::GetModelId
const Aws::String & GetModelId() const
Definition: UpdateModelRequest.h:41
FraudDetectorRequest.h
Aws::FraudDetector::Model::UpdateModelRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateModelRequest.h:123
Aws::FraudDetector::Model::UpdateModelRequest::SetModelId
void SetModelId(Aws::String &&value)
Definition: UpdateModelRequest.h:56
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::UpdateModelRequest
Definition: UpdateModelRequest.h:23
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::ModelTypeEnum
ModelTypeEnum
Definition: ModelTypeEnum.h:17
ModelTypeEnum.h
Aws::FraudDetector::Model::UpdateModelRequest::WithModelId
UpdateModelRequest & WithModelId(const Aws::String &value)
Definition: UpdateModelRequest.h:66
Aws::FraudDetector::Model::UpdateModelRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateModelRequest.h:128
Aws::FraudDetector::Model::UpdateModelRequest::WithModelId
UpdateModelRequest & WithModelId(const char *value)
Definition: UpdateModelRequest.h:76
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::UpdateModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateModelRequest.h:31
Aws::FraudDetector::Model::UpdateModelRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateModelRequest.h:133
Aws::FraudDetector::Model::UpdateModelRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateModelRequest.h:113
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::UpdateModelRequest::WithDescription
UpdateModelRequest & WithDescription(const Aws::String &value)
Definition: UpdateModelRequest.h:138
Aws::FraudDetector::Model::UpdateModelRequest::WithModelType
UpdateModelRequest & WithModelType(ModelTypeEnum &&value)
Definition: UpdateModelRequest.h:107
Aws::FraudDetector::Model::UpdateModelRequest::WithModelId
UpdateModelRequest & WithModelId(Aws::String &&value)
Definition: UpdateModelRequest.h:71
Aws::FraudDetector::Model::UpdateModelRequest::ModelTypeHasBeenSet
bool ModelTypeHasBeenSet() const
Definition: UpdateModelRequest.h:87
Aws::FraudDetector::Model::UpdateModelRequest::ModelIdHasBeenSet
bool ModelIdHasBeenSet() const
Definition: UpdateModelRequest.h:46
AWSString.h
Aws::FraudDetector::Model::UpdateModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::FraudDetector::Model::UpdateModelRequest::SetModelType
void SetModelType(ModelTypeEnum &&value)
Definition: UpdateModelRequest.h:97
Aws::FraudDetector::Model::UpdateModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::UpdateModelRequest::WithDescription
UpdateModelRequest & WithDescription(Aws::String &&value)
Definition: UpdateModelRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::UpdateModelRequest::GetModelType
const ModelTypeEnum & GetModelType() const
Definition: UpdateModelRequest.h:82
Aws::FraudDetector::Model::UpdateModelRequest::UpdateModelRequest
UpdateModelRequest()
Aws::FraudDetector::Model::UpdateModelRequest::SetModelId
void SetModelId(const char *value)
Definition: UpdateModelRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::UpdateModelRequest::WithDescription
UpdateModelRequest & WithDescription(const char *value)
Definition: UpdateModelRequest.h:148
Aws::FraudDetector::Model::UpdateModelRequest::SetModelType
void SetModelType(const ModelTypeEnum &value)
Definition: UpdateModelRequest.h:92
Aws::FraudDetector::Model::UpdateModelRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateModelRequest.h:118
Aws::FraudDetector::Model::UpdateModelRequest::SetModelId
void SetModelId(const Aws::String &value)
Definition: UpdateModelRequest.h:51
Aws::FraudDetector::Model::UpdateModelRequest::WithModelType
UpdateModelRequest & WithModelType(const ModelTypeEnum &value)
Definition: UpdateModelRequest.h:102