/** * 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 IoT { namespace Model { /** */ class PutVerificationStateOnViolationRequest : public IoTRequest { public: AWS_IOT_API PutVerificationStateOnViolationRequest(); // 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 "PutVerificationStateOnViolation"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The violation ID.

*/ inline const Aws::String& GetViolationId() const{ return m_violationId; } /** *

The violation ID.

*/ inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; } /** *

The violation ID.

*/ inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; } /** *

The violation ID.

*/ inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); } /** *

The violation ID.

*/ inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); } /** *

The violation ID.

*/ inline PutVerificationStateOnViolationRequest& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;} /** *

The violation ID.

*/ inline PutVerificationStateOnViolationRequest& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;} /** *

The violation ID.

*/ inline PutVerificationStateOnViolationRequest& WithViolationId(const char* value) { SetViolationId(value); return *this;} /** *

The verification state of the violation.

*/ inline const VerificationState& GetVerificationState() const{ return m_verificationState; } /** *

The verification state of the violation.

*/ inline bool VerificationStateHasBeenSet() const { return m_verificationStateHasBeenSet; } /** *

The verification state of the violation.

*/ inline void SetVerificationState(const VerificationState& value) { m_verificationStateHasBeenSet = true; m_verificationState = value; } /** *

The verification state of the violation.

*/ inline void SetVerificationState(VerificationState&& value) { m_verificationStateHasBeenSet = true; m_verificationState = std::move(value); } /** *

The verification state of the violation.

*/ inline PutVerificationStateOnViolationRequest& WithVerificationState(const VerificationState& value) { SetVerificationState(value); return *this;} /** *

The verification state of the violation.

*/ inline PutVerificationStateOnViolationRequest& WithVerificationState(VerificationState&& value) { SetVerificationState(std::move(value)); return *this;} /** *

The description of the verification state of the violation (detect * alarm).

*/ inline const Aws::String& GetVerificationStateDescription() const{ return m_verificationStateDescription; } /** *

The description of the verification state of the violation (detect * alarm).

*/ inline bool VerificationStateDescriptionHasBeenSet() const { return m_verificationStateDescriptionHasBeenSet; } /** *

The description of the verification state of the violation (detect * alarm).

*/ inline void SetVerificationStateDescription(const Aws::String& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = value; } /** *

The description of the verification state of the violation (detect * alarm).

*/ inline void SetVerificationStateDescription(Aws::String&& value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription = std::move(value); } /** *

The description of the verification state of the violation (detect * alarm).

*/ inline void SetVerificationStateDescription(const char* value) { m_verificationStateDescriptionHasBeenSet = true; m_verificationStateDescription.assign(value); } /** *

The description of the verification state of the violation (detect * alarm).

*/ inline PutVerificationStateOnViolationRequest& WithVerificationStateDescription(const Aws::String& value) { SetVerificationStateDescription(value); return *this;} /** *

The description of the verification state of the violation (detect * alarm).

*/ inline PutVerificationStateOnViolationRequest& WithVerificationStateDescription(Aws::String&& value) { SetVerificationStateDescription(std::move(value)); return *this;} /** *

The description of the verification state of the violation (detect * alarm).

*/ inline PutVerificationStateOnViolationRequest& WithVerificationStateDescription(const char* value) { SetVerificationStateDescription(value); return *this;} private: Aws::String m_violationId; bool m_violationIdHasBeenSet = false; VerificationState m_verificationState; bool m_verificationStateHasBeenSet = false; Aws::String m_verificationStateDescription; bool m_verificationStateDescriptionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws