/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { /** *

The model.

See Also:

AWS * API Reference

*/ class Model { public: AWS_FRAUDDETECTOR_API Model(); AWS_FRAUDDETECTOR_API Model(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Model& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The model ID.

*/ inline const Aws::String& GetModelId() const{ return m_modelId; } /** *

The model ID.

*/ inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } /** *

The model ID.

*/ inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } /** *

The model ID.

*/ inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } /** *

The model ID.

*/ inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } /** *

The model ID.

*/ inline Model& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} /** *

The model ID.

*/ inline Model& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} /** *

The model ID.

*/ inline Model& WithModelId(const char* value) { SetModelId(value); return *this;} /** *

The model type.

*/ inline const ModelTypeEnum& GetModelType() const{ return m_modelType; } /** *

The model type.

*/ inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; } /** *

The model type.

*/ inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; } /** *

The model type.

*/ inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); } /** *

The model type.

*/ inline Model& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;} /** *

The model type.

*/ inline Model& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;} /** *

The model description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The model description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The model description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The model description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The model description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The model description.

*/ inline Model& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The model description.

*/ inline Model& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The model description.

*/ inline Model& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the event type.

*/ inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; } /** *

The name of the event type.

*/ inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; } /** *

The name of the event type.

*/ inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; } /** *

The name of the event type.

*/ inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); } /** *

The name of the event type.

*/ inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); } /** *

The name of the event type.

*/ inline Model& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;} /** *

The name of the event type.

*/ inline Model& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;} /** *

The name of the event type.

*/ inline Model& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;} /** *

Timestamp of when the model was created.

*/ inline const Aws::String& GetCreatedTime() const{ return m_createdTime; } /** *

Timestamp of when the model was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

Timestamp of when the model was created.

*/ inline void SetCreatedTime(const Aws::String& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

Timestamp of when the model was created.

*/ inline void SetCreatedTime(Aws::String&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

Timestamp of when the model was created.

*/ inline void SetCreatedTime(const char* value) { m_createdTimeHasBeenSet = true; m_createdTime.assign(value); } /** *

Timestamp of when the model was created.

*/ inline Model& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;} /** *

Timestamp of when the model was created.

*/ inline Model& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

Timestamp of when the model was created.

*/ inline Model& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;} /** *

Timestamp of last time the model was updated.

*/ inline const Aws::String& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

Timestamp of last time the model was updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

Timestamp of last time the model was updated.

*/ inline void SetLastUpdatedTime(const Aws::String& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

Timestamp of last time the model was updated.

*/ inline void SetLastUpdatedTime(Aws::String&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

Timestamp of last time the model was updated.

*/ inline void SetLastUpdatedTime(const char* value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime.assign(value); } /** *

Timestamp of last time the model was updated.

*/ inline Model& WithLastUpdatedTime(const Aws::String& value) { SetLastUpdatedTime(value); return *this;} /** *

Timestamp of last time the model was updated.

*/ inline Model& WithLastUpdatedTime(Aws::String&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

Timestamp of last time the model was updated.

*/ inline Model& WithLastUpdatedTime(const char* value) { SetLastUpdatedTime(value); return *this;} /** *

The ARN of the model.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the model.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the model.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the model.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the model.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the model.

*/ inline Model& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the model.

*/ inline Model& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the model.

*/ inline Model& WithArn(const char* value) { SetArn(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::String m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws