/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/frauddetector/FraudDetector_EXPORTS.h> #include <aws/frauddetector/FraudDetectorRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/frauddetector/model/ModelTypeEnum.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/frauddetector/model/Tag.h> #include <utility> namespace Aws { namespace FraudDetector { namespace Model { /** */ class CreateModelRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API CreateModelRequest(); // 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 "CreateModel"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * <p>The model ID.</p> */ inline const Aws::String& GetModelId() const{ return m_modelId; } /** * <p>The model ID.</p> */ inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } /** * <p>The model ID.</p> */ inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } /** * <p>The model ID.</p> */ inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } /** * <p>The model ID.</p> */ inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } /** * <p>The model ID.</p> */ inline CreateModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} /** * <p>The model ID.</p> */ inline CreateModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} /** * <p>The model ID.</p> */ inline CreateModelRequest& WithModelId(const char* value) { SetModelId(value); return *this;} /** * <p>The model type. </p> */ inline const ModelTypeEnum& GetModelType() const{ return m_modelType; } /** * <p>The model type. </p> */ inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; } /** * <p>The model type. </p> */ inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; } /** * <p>The model type. </p> */ inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); } /** * <p>The model type. </p> */ inline CreateModelRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;} /** * <p>The model type. </p> */ inline CreateModelRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;} /** * <p>The model description. </p> */ inline const Aws::String& GetDescription() const{ return m_description; } /** * <p>The model description. </p> */ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** * <p>The model description. </p> */ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** * <p>The model description. </p> */ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** * <p>The model description. </p> */ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** * <p>The model description. </p> */ inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** * <p>The model description. </p> */ inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** * <p>The model description. </p> */ inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** * <p>The name of the event type.</p> */ inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; } /** * <p>The name of the event type.</p> */ inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; } /** * <p>The name of the event type.</p> */ inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; } /** * <p>The name of the event type.</p> */ inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); } /** * <p>The name of the event type.</p> */ inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); } /** * <p>The name of the event type.</p> */ inline CreateModelRequest& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;} /** * <p>The name of the event type.</p> */ inline CreateModelRequest& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;} /** * <p>The name of the event type.</p> */ inline CreateModelRequest& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;} /** * <p>A collection of key and value pairs.</p> */ inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; } /** * <p>A collection of key and value pairs.</p> */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** * <p>A collection of key and value pairs.</p> */ inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; } /** * <p>A collection of key and value pairs.</p> */ inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** * <p>A collection of key and value pairs.</p> */ inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;} /** * <p>A collection of key and value pairs.</p> */ inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;} /** * <p>A collection of key and value pairs.</p> */ inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** * <p>A collection of key and value pairs.</p> */ inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_modelId; bool m_modelIdHasBeenSet = false; ModelTypeEnum m_modelType; bool m_modelTypeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_eventTypeName; bool m_eventTypeNameHasBeenSet = false; Aws::Vector<Tag> m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws