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

A Boolean value that specifies whether key rotation is enabled.

*/ inline bool GetKeyRotationEnabled() const{ return m_keyRotationEnabled; } /** *

A Boolean value that specifies whether key rotation is enabled.

*/ inline void SetKeyRotationEnabled(bool value) { m_keyRotationEnabled = value; } /** *

A Boolean value that specifies whether key rotation is enabled.

*/ inline GetKeyRotationStatusResult& WithKeyRotationEnabled(bool value) { SetKeyRotationEnabled(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 GetKeyRotationStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetKeyRotationStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetKeyRotationStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_keyRotationEnabled; Aws::String m_requestId; }; } // namespace Model } // namespace KMS } // namespace Aws