AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutExternalModelRequest.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/ModelSource.h>
11#include <aws/frauddetector/model/ModelInputConfiguration.h>
12#include <aws/frauddetector/model/ModelOutputConfiguration.h>
13#include <aws/frauddetector/model/ModelEndpointStatus.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/frauddetector/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace FraudDetector
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_FRAUDDETECTOR_API PutExternalModelRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutExternalModel"; }
37
38 AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
39
40 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetModelEndpoint() const { return m_modelEndpoint; }
48 inline bool ModelEndpointHasBeenSet() const { return m_modelEndpointHasBeenSet; }
49 template<typename ModelEndpointT = Aws::String>
50 void SetModelEndpoint(ModelEndpointT&& value) { m_modelEndpointHasBeenSet = true; m_modelEndpoint = std::forward<ModelEndpointT>(value); }
51 template<typename ModelEndpointT = Aws::String>
52 PutExternalModelRequest& WithModelEndpoint(ModelEndpointT&& value) { SetModelEndpoint(std::forward<ModelEndpointT>(value)); return *this;}
54
56
59 inline ModelSource GetModelSource() const { return m_modelSource; }
60 inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; }
61 inline void SetModelSource(ModelSource value) { m_modelSourceHasBeenSet = true; m_modelSource = value; }
62 inline PutExternalModelRequest& WithModelSource(ModelSource value) { SetModelSource(value); return *this;}
64
66
69 inline const Aws::String& GetInvokeModelEndpointRoleArn() const { return m_invokeModelEndpointRoleArn; }
70 inline bool InvokeModelEndpointRoleArnHasBeenSet() const { return m_invokeModelEndpointRoleArnHasBeenSet; }
71 template<typename InvokeModelEndpointRoleArnT = Aws::String>
72 void SetInvokeModelEndpointRoleArn(InvokeModelEndpointRoleArnT&& value) { m_invokeModelEndpointRoleArnHasBeenSet = true; m_invokeModelEndpointRoleArn = std::forward<InvokeModelEndpointRoleArnT>(value); }
73 template<typename InvokeModelEndpointRoleArnT = Aws::String>
74 PutExternalModelRequest& WithInvokeModelEndpointRoleArn(InvokeModelEndpointRoleArnT&& value) { SetInvokeModelEndpointRoleArn(std::forward<InvokeModelEndpointRoleArnT>(value)); return *this;}
76
78
81 inline const ModelInputConfiguration& GetInputConfiguration() const { return m_inputConfiguration; }
82 inline bool InputConfigurationHasBeenSet() const { return m_inputConfigurationHasBeenSet; }
83 template<typename InputConfigurationT = ModelInputConfiguration>
84 void SetInputConfiguration(InputConfigurationT&& value) { m_inputConfigurationHasBeenSet = true; m_inputConfiguration = std::forward<InputConfigurationT>(value); }
85 template<typename InputConfigurationT = ModelInputConfiguration>
86 PutExternalModelRequest& WithInputConfiguration(InputConfigurationT&& value) { SetInputConfiguration(std::forward<InputConfigurationT>(value)); return *this;}
88
90
93 inline const ModelOutputConfiguration& GetOutputConfiguration() const { return m_outputConfiguration; }
94 inline bool OutputConfigurationHasBeenSet() const { return m_outputConfigurationHasBeenSet; }
95 template<typename OutputConfigurationT = ModelOutputConfiguration>
96 void SetOutputConfiguration(OutputConfigurationT&& value) { m_outputConfigurationHasBeenSet = true; m_outputConfiguration = std::forward<OutputConfigurationT>(value); }
97 template<typename OutputConfigurationT = ModelOutputConfiguration>
98 PutExternalModelRequest& WithOutputConfiguration(OutputConfigurationT&& value) { SetOutputConfiguration(std::forward<OutputConfigurationT>(value)); return *this;}
100
102
105 inline ModelEndpointStatus GetModelEndpointStatus() const { return m_modelEndpointStatus; }
106 inline bool ModelEndpointStatusHasBeenSet() const { return m_modelEndpointStatusHasBeenSet; }
107 inline void SetModelEndpointStatus(ModelEndpointStatus value) { m_modelEndpointStatusHasBeenSet = true; m_modelEndpointStatus = value; }
110
112
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Vector<Tag>>
120 PutExternalModelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsT = Tag>
122 PutExternalModelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
124 private:
125
126 Aws::String m_modelEndpoint;
127 bool m_modelEndpointHasBeenSet = false;
128
129 ModelSource m_modelSource{ModelSource::NOT_SET};
130 bool m_modelSourceHasBeenSet = false;
131
132 Aws::String m_invokeModelEndpointRoleArn;
133 bool m_invokeModelEndpointRoleArnHasBeenSet = false;
134
135 ModelInputConfiguration m_inputConfiguration;
136 bool m_inputConfigurationHasBeenSet = false;
137
138 ModelOutputConfiguration m_outputConfiguration;
139 bool m_outputConfigurationHasBeenSet = false;
140
142 bool m_modelEndpointStatusHasBeenSet = false;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_tagsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace FraudDetector
150} // namespace Aws
const ModelInputConfiguration & GetInputConfiguration() const
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutExternalModelRequest & WithInputConfiguration(InputConfigurationT &&value)
void SetInvokeModelEndpointRoleArn(InvokeModelEndpointRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
PutExternalModelRequest & WithInvokeModelEndpointRoleArn(InvokeModelEndpointRoleArnT &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
PutExternalModelRequest & AddTags(TagsT &&value)
PutExternalModelRequest & WithModelEndpoint(ModelEndpointT &&value)
PutExternalModelRequest & WithTags(TagsT &&value)
PutExternalModelRequest & WithModelSource(ModelSource value)
void SetOutputConfiguration(OutputConfigurationT &&value)
const ModelOutputConfiguration & GetOutputConfiguration() const
PutExternalModelRequest & WithOutputConfiguration(OutputConfigurationT &&value)
PutExternalModelRequest & WithModelEndpointStatus(ModelEndpointStatus value)
AWS_FRAUDDETECTOR_API PutExternalModelRequest()=default
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