/**
* 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 PaymentCryptographyData
{
namespace Model
{
/**
* This request failed verification.
See Also:
AWS
* API Reference
*/
class VerificationFailedException
{
public:
AWS_PAYMENTCRYPTOGRAPHYDATA_API VerificationFailedException();
AWS_PAYMENTCRYPTOGRAPHYDATA_API VerificationFailedException(Aws::Utils::Json::JsonView jsonValue);
AWS_PAYMENTCRYPTOGRAPHYDATA_API VerificationFailedException& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline VerificationFailedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline VerificationFailedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline VerificationFailedException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* The reason for the exception.
*/
inline const VerificationFailedReason& GetReason() const{ return m_reason; }
/**
* The reason for the exception.
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* The reason for the exception.
*/
inline void SetReason(const VerificationFailedReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* The reason for the exception.
*/
inline void SetReason(VerificationFailedReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* The reason for the exception.
*/
inline VerificationFailedException& WithReason(const VerificationFailedReason& value) { SetReason(value); return *this;}
/**
* The reason for the exception.
*/
inline VerificationFailedException& WithReason(VerificationFailedReason&& value) { SetReason(std::move(value)); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet = false;
VerificationFailedReason m_reason;
bool m_reasonHasBeenSet = false;
};
} // namespace Model
} // namespace PaymentCryptographyData
} // namespace Aws