/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace KMS { namespace Model { class VerifyResult { public: AWS_KMS_API VerifyResult(); AWS_KMS_API VerifyResult(const Aws::AmazonWebServiceResult& result); AWS_KMS_API VerifyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline const Aws::String& GetKeyId() const{ return m_keyId; } /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline void SetKeyId(const Aws::String& value) { m_keyId = value; } /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); } /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline void SetKeyId(const char* value) { m_keyId.assign(value); } /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline VerifyResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline VerifyResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} /** *

The Amazon Resource Name (key * ARN) of the asymmetric KMS key that was used to verify the signature.

*/ inline VerifyResult& WithKeyId(const char* value) { SetKeyId(value); return *this;} /** *

A Boolean value that indicates whether the signature was verified. A value of * True indicates that the Signature was produced by * signing the Message with the specified KeyID and * SigningAlgorithm. If the signature is not verified, the * Verify operation fails with a * KMSInvalidSignatureException exception.

*/ inline bool GetSignatureValid() const{ return m_signatureValid; } /** *

A Boolean value that indicates whether the signature was verified. A value of * True indicates that the Signature was produced by * signing the Message with the specified KeyID and * SigningAlgorithm. If the signature is not verified, the * Verify operation fails with a * KMSInvalidSignatureException exception.

*/ inline void SetSignatureValid(bool value) { m_signatureValid = value; } /** *

A Boolean value that indicates whether the signature was verified. A value of * True indicates that the Signature was produced by * signing the Message with the specified KeyID and * SigningAlgorithm. If the signature is not verified, the * Verify operation fails with a * KMSInvalidSignatureException exception.

*/ inline VerifyResult& WithSignatureValid(bool value) { SetSignatureValid(value); return *this;} /** *

The signing algorithm that was used to verify the signature.

*/ inline const SigningAlgorithmSpec& GetSigningAlgorithm() const{ return m_signingAlgorithm; } /** *

The signing algorithm that was used to verify the signature.

*/ inline void SetSigningAlgorithm(const SigningAlgorithmSpec& value) { m_signingAlgorithm = value; } /** *

The signing algorithm that was used to verify the signature.

*/ inline void SetSigningAlgorithm(SigningAlgorithmSpec&& value) { m_signingAlgorithm = std::move(value); } /** *

The signing algorithm that was used to verify the signature.

*/ inline VerifyResult& WithSigningAlgorithm(const SigningAlgorithmSpec& value) { SetSigningAlgorithm(value); return *this;} /** *

The signing algorithm that was used to verify the signature.

*/ inline VerifyResult& WithSigningAlgorithm(SigningAlgorithmSpec&& value) { SetSigningAlgorithm(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline VerifyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline VerifyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline VerifyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_keyId; bool m_signatureValid; SigningAlgorithmSpec m_signingAlgorithm; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws