/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class PutExternalModelRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API PutExternalModelRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutExternalModel"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The model endpoints name.

*/ inline const Aws::String& GetModelEndpoint() const{ return m_modelEndpoint; } /** *

The model endpoints name.

*/ inline bool ModelEndpointHasBeenSet() const { return m_modelEndpointHasBeenSet; } /** *

The model endpoints name.

*/ inline void SetModelEndpoint(const Aws::String& value) { m_modelEndpointHasBeenSet = true; m_modelEndpoint = value; } /** *

The model endpoints name.

*/ inline void SetModelEndpoint(Aws::String&& value) { m_modelEndpointHasBeenSet = true; m_modelEndpoint = std::move(value); } /** *

The model endpoints name.

*/ inline void SetModelEndpoint(const char* value) { m_modelEndpointHasBeenSet = true; m_modelEndpoint.assign(value); } /** *

The model endpoints name.

*/ inline PutExternalModelRequest& WithModelEndpoint(const Aws::String& value) { SetModelEndpoint(value); return *this;} /** *

The model endpoints name.

*/ inline PutExternalModelRequest& WithModelEndpoint(Aws::String&& value) { SetModelEndpoint(std::move(value)); return *this;} /** *

The model endpoints name.

*/ inline PutExternalModelRequest& WithModelEndpoint(const char* value) { SetModelEndpoint(value); return *this;} /** *

The source of the model.

*/ inline const ModelSource& GetModelSource() const{ return m_modelSource; } /** *

The source of the model.

*/ inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; } /** *

The source of the model.

*/ inline void SetModelSource(const ModelSource& value) { m_modelSourceHasBeenSet = true; m_modelSource = value; } /** *

The source of the model.

*/ inline void SetModelSource(ModelSource&& value) { m_modelSourceHasBeenSet = true; m_modelSource = std::move(value); } /** *

The source of the model.

*/ inline PutExternalModelRequest& WithModelSource(const ModelSource& value) { SetModelSource(value); return *this;} /** *

The source of the model.

*/ inline PutExternalModelRequest& WithModelSource(ModelSource&& value) { SetModelSource(std::move(value)); return *this;} /** *

The IAM role used to invoke the model endpoint.

*/ inline const Aws::String& GetInvokeModelEndpointRoleArn() const{ return m_invokeModelEndpointRoleArn; } /** *

The IAM role used to invoke the model endpoint.

*/ inline bool InvokeModelEndpointRoleArnHasBeenSet() const { return m_invokeModelEndpointRoleArnHasBeenSet; } /** *

The IAM role used to invoke the model endpoint.

*/ inline void SetInvokeModelEndpointRoleArn(const Aws::String& value) { m_invokeModelEndpointRoleArnHasBeenSet = true; m_invokeModelEndpointRoleArn = value; } /** *

The IAM role used to invoke the model endpoint.

*/ inline void SetInvokeModelEndpointRoleArn(Aws::String&& value) { m_invokeModelEndpointRoleArnHasBeenSet = true; m_invokeModelEndpointRoleArn = std::move(value); } /** *

The IAM role used to invoke the model endpoint.

*/ inline void SetInvokeModelEndpointRoleArn(const char* value) { m_invokeModelEndpointRoleArnHasBeenSet = true; m_invokeModelEndpointRoleArn.assign(value); } /** *

The IAM role used to invoke the model endpoint.

*/ inline PutExternalModelRequest& WithInvokeModelEndpointRoleArn(const Aws::String& value) { SetInvokeModelEndpointRoleArn(value); return *this;} /** *

The IAM role used to invoke the model endpoint.

*/ inline PutExternalModelRequest& WithInvokeModelEndpointRoleArn(Aws::String&& value) { SetInvokeModelEndpointRoleArn(std::move(value)); return *this;} /** *

The IAM role used to invoke the model endpoint.

*/ inline PutExternalModelRequest& WithInvokeModelEndpointRoleArn(const char* value) { SetInvokeModelEndpointRoleArn(value); return *this;} /** *

The model endpoint input configuration.

*/ inline const ModelInputConfiguration& GetInputConfiguration() const{ return m_inputConfiguration; } /** *

The model endpoint input configuration.

*/ inline bool InputConfigurationHasBeenSet() const { return m_inputConfigurationHasBeenSet; } /** *

The model endpoint input configuration.

*/ inline void SetInputConfiguration(const ModelInputConfiguration& value) { m_inputConfigurationHasBeenSet = true; m_inputConfiguration = value; } /** *

The model endpoint input configuration.

*/ inline void SetInputConfiguration(ModelInputConfiguration&& value) { m_inputConfigurationHasBeenSet = true; m_inputConfiguration = std::move(value); } /** *

The model endpoint input configuration.

*/ inline PutExternalModelRequest& WithInputConfiguration(const ModelInputConfiguration& value) { SetInputConfiguration(value); return *this;} /** *

The model endpoint input configuration.

*/ inline PutExternalModelRequest& WithInputConfiguration(ModelInputConfiguration&& value) { SetInputConfiguration(std::move(value)); return *this;} /** *

The model endpoint output configuration.

*/ inline const ModelOutputConfiguration& GetOutputConfiguration() const{ return m_outputConfiguration; } /** *

The model endpoint output configuration.

*/ inline bool OutputConfigurationHasBeenSet() const { return m_outputConfigurationHasBeenSet; } /** *

The model endpoint output configuration.

*/ inline void SetOutputConfiguration(const ModelOutputConfiguration& value) { m_outputConfigurationHasBeenSet = true; m_outputConfiguration = value; } /** *

The model endpoint output configuration.

*/ inline void SetOutputConfiguration(ModelOutputConfiguration&& value) { m_outputConfigurationHasBeenSet = true; m_outputConfiguration = std::move(value); } /** *

The model endpoint output configuration.

*/ inline PutExternalModelRequest& WithOutputConfiguration(const ModelOutputConfiguration& value) { SetOutputConfiguration(value); return *this;} /** *

The model endpoint output configuration.

*/ inline PutExternalModelRequest& WithOutputConfiguration(ModelOutputConfiguration&& value) { SetOutputConfiguration(std::move(value)); return *this;} /** *

The model endpoint’s status in Amazon Fraud Detector.

*/ inline const ModelEndpointStatus& GetModelEndpointStatus() const{ return m_modelEndpointStatus; } /** *

The model endpoint’s status in Amazon Fraud Detector.

*/ inline bool ModelEndpointStatusHasBeenSet() const { return m_modelEndpointStatusHasBeenSet; } /** *

The model endpoint’s status in Amazon Fraud Detector.

*/ inline void SetModelEndpointStatus(const ModelEndpointStatus& value) { m_modelEndpointStatusHasBeenSet = true; m_modelEndpointStatus = value; } /** *

The model endpoint’s status in Amazon Fraud Detector.

*/ inline void SetModelEndpointStatus(ModelEndpointStatus&& value) { m_modelEndpointStatusHasBeenSet = true; m_modelEndpointStatus = std::move(value); } /** *

The model endpoint’s status in Amazon Fraud Detector.

*/ inline PutExternalModelRequest& WithModelEndpointStatus(const ModelEndpointStatus& value) { SetModelEndpointStatus(value); return *this;} /** *

The model endpoint’s status in Amazon Fraud Detector.

*/ inline PutExternalModelRequest& WithModelEndpointStatus(ModelEndpointStatus&& value) { SetModelEndpointStatus(std::move(value)); return *this;} /** *

A collection of key and value pairs.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A collection of key and value pairs.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A collection of key and value pairs.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A collection of key and value pairs.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A collection of key and value pairs.

*/ inline PutExternalModelRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A collection of key and value pairs.

*/ inline PutExternalModelRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A collection of key and value pairs.

*/ inline PutExternalModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A collection of key and value pairs.

*/ inline PutExternalModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_modelEndpoint; bool m_modelEndpointHasBeenSet = false; ModelSource m_modelSource; bool m_modelSourceHasBeenSet = false; Aws::String m_invokeModelEndpointRoleArn; bool m_invokeModelEndpointRoleArnHasBeenSet = false; ModelInputConfiguration m_inputConfiguration; bool m_inputConfigurationHasBeenSet = false; ModelOutputConfiguration m_outputConfiguration; bool m_outputConfigurationHasBeenSet = false; ModelEndpointStatus m_modelEndpointStatus; bool m_modelEndpointStatusHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws