/** * 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 VerifyMacResult { public: AWS_KMS_API VerifyMacResult(); AWS_KMS_API VerifyMacResult(const Aws::AmazonWebServiceResult& result); AWS_KMS_API VerifyMacResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The HMAC KMS key used in the verification.

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

The HMAC KMS key used in the verification.

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

The HMAC KMS key used in the verification.

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

The HMAC KMS key used in the verification.

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

The HMAC KMS key used in the verification.

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

The HMAC KMS key used in the verification.

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

The HMAC KMS key used in the verification.

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

A Boolean value that indicates whether the HMAC was verified. A value of * True indicates that the HMAC (Mac) was generated with * the specified Message, HMAC KMS key (KeyID) and * MacAlgorithm..

If the HMAC is not verified, the * VerifyMac operation fails with a * KMSInvalidMacException exception. This exception indicates that one * or more of the inputs changed since the HMAC was computed.

*/ inline bool GetMacValid() const{ return m_macValid; } /** *

A Boolean value that indicates whether the HMAC was verified. A value of * True indicates that the HMAC (Mac) was generated with * the specified Message, HMAC KMS key (KeyID) and * MacAlgorithm..

If the HMAC is not verified, the * VerifyMac operation fails with a * KMSInvalidMacException exception. This exception indicates that one * or more of the inputs changed since the HMAC was computed.

*/ inline void SetMacValid(bool value) { m_macValid = value; } /** *

A Boolean value that indicates whether the HMAC was verified. A value of * True indicates that the HMAC (Mac) was generated with * the specified Message, HMAC KMS key (KeyID) and * MacAlgorithm..

If the HMAC is not verified, the * VerifyMac operation fails with a * KMSInvalidMacException exception. This exception indicates that one * or more of the inputs changed since the HMAC was computed.

*/ inline VerifyMacResult& WithMacValid(bool value) { SetMacValid(value); return *this;} /** *

The MAC algorithm used in the verification.

*/ inline const MacAlgorithmSpec& GetMacAlgorithm() const{ return m_macAlgorithm; } /** *

The MAC algorithm used in the verification.

*/ inline void SetMacAlgorithm(const MacAlgorithmSpec& value) { m_macAlgorithm = value; } /** *

The MAC algorithm used in the verification.

*/ inline void SetMacAlgorithm(MacAlgorithmSpec&& value) { m_macAlgorithm = std::move(value); } /** *

The MAC algorithm used in the verification.

*/ inline VerifyMacResult& WithMacAlgorithm(const MacAlgorithmSpec& value) { SetMacAlgorithm(value); return *this;} /** *

The MAC algorithm used in the verification.

*/ inline VerifyMacResult& WithMacAlgorithm(MacAlgorithmSpec&& value) { SetMacAlgorithm(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 VerifyMacResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline VerifyMacResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline VerifyMacResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_keyId; bool m_macValid; MacAlgorithmSpec m_macAlgorithm; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws