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

Verify OTP Message Response.

See Also:

AWS * API Reference

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

Specifies whether the OTP is valid or not.

*/ inline bool GetValid() const{ return m_valid; } /** *

Specifies whether the OTP is valid or not.

*/ inline bool ValidHasBeenSet() const { return m_validHasBeenSet; } /** *

Specifies whether the OTP is valid or not.

*/ inline void SetValid(bool value) { m_validHasBeenSet = true; m_valid = value; } /** *

Specifies whether the OTP is valid or not.

*/ inline VerificationResponse& WithValid(bool value) { SetValid(value); return *this;} private: bool m_valid; bool m_validHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws