AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateModelRequest.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/frauddetector/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace FraudDetector
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_FRAUDDETECTOR_API CreateModelRequest();
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_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
36
37 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetModelId() const{ return m_modelId; }
45 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
46 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
47 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
48 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
49 inline CreateModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
50 inline CreateModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
51 inline CreateModelRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
53
55
58 inline const ModelTypeEnum& GetModelType() const{ return m_modelType; }
59 inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
60 inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
61 inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); }
62 inline CreateModelRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
63 inline CreateModelRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; }
85 inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
86 inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; }
87 inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); }
88 inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); }
89 inline CreateModelRequest& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;}
90 inline CreateModelRequest& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;}
91 inline CreateModelRequest& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;}
93
95
98 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
103 inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
104 inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
105 inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
107 private:
108
109 Aws::String m_modelId;
110 bool m_modelIdHasBeenSet = false;
111
112 ModelTypeEnum m_modelType;
113 bool m_modelTypeHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_eventTypeName;
119 bool m_eventTypeNameHasBeenSet = false;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_tagsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace FraudDetector
127} // namespace Aws
CreateModelRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateModelRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateModelRequest & AddTags(const Tag &value)
CreateModelRequest & WithModelId(const Aws::String &value)
CreateModelRequest & WithEventTypeName(const Aws::String &value)
CreateModelRequest & WithEventTypeName(const char *value)
CreateModelRequest & WithModelId(Aws::String &&value)
void SetEventTypeName(const Aws::String &value)
CreateModelRequest & WithModelId(const char *value)
CreateModelRequest & WithEventTypeName(Aws::String &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateModelRequest & AddTags(Tag &&value)
const Aws::Vector< Tag > & GetTags() const
CreateModelRequest & WithModelType(ModelTypeEnum &&value)
void SetModelType(const ModelTypeEnum &value)
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateModelRequest & WithDescription(const char *value)
CreateModelRequest & WithModelType(const ModelTypeEnum &value)
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector