/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class UpdateDetectorVersionStatusRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API UpdateDetectorVersionStatusRequest(); // 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 "UpdateDetectorVersionStatus"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The detector ID.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The detector ID.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The detector ID.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The detector ID.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The detector ID.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The detector ID.

*/ inline UpdateDetectorVersionStatusRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The detector ID.

*/ inline UpdateDetectorVersionStatusRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The detector ID.

*/ inline UpdateDetectorVersionStatusRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

The detector version ID.

*/ inline const Aws::String& GetDetectorVersionId() const{ return m_detectorVersionId; } /** *

The detector version ID.

*/ inline bool DetectorVersionIdHasBeenSet() const { return m_detectorVersionIdHasBeenSet; } /** *

The detector version ID.

*/ inline void SetDetectorVersionId(const Aws::String& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = value; } /** *

The detector version ID.

*/ inline void SetDetectorVersionId(Aws::String&& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = std::move(value); } /** *

The detector version ID.

*/ inline void SetDetectorVersionId(const char* value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId.assign(value); } /** *

The detector version ID.

*/ inline UpdateDetectorVersionStatusRequest& WithDetectorVersionId(const Aws::String& value) { SetDetectorVersionId(value); return *this;} /** *

The detector version ID.

*/ inline UpdateDetectorVersionStatusRequest& WithDetectorVersionId(Aws::String&& value) { SetDetectorVersionId(std::move(value)); return *this;} /** *

The detector version ID.

*/ inline UpdateDetectorVersionStatusRequest& WithDetectorVersionId(const char* value) { SetDetectorVersionId(value); return *this;} /** *

The new status.

The only supported values are ACTIVE and * INACTIVE

*/ inline const DetectorVersionStatus& GetStatus() const{ return m_status; } /** *

The new status.

The only supported values are ACTIVE and * INACTIVE

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The new status.

The only supported values are ACTIVE and * INACTIVE

*/ inline void SetStatus(const DetectorVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The new status.

The only supported values are ACTIVE and * INACTIVE

*/ inline void SetStatus(DetectorVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The new status.

The only supported values are ACTIVE and * INACTIVE

*/ inline UpdateDetectorVersionStatusRequest& WithStatus(const DetectorVersionStatus& value) { SetStatus(value); return *this;} /** *

The new status.

The only supported values are ACTIVE and * INACTIVE

*/ inline UpdateDetectorVersionStatusRequest& WithStatus(DetectorVersionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::String m_detectorVersionId; bool m_detectorVersionIdHasBeenSet = false; DetectorVersionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws