/** * 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 CloudWatchLogs { namespace Model { class PutAccountPolicyResult { public: AWS_CLOUDWATCHLOGS_API PutAccountPolicyResult(); AWS_CLOUDWATCHLOGS_API PutAccountPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHLOGS_API PutAccountPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The account policy that you created.

*/ inline const AccountPolicy& GetAccountPolicy() const{ return m_accountPolicy; } /** *

The account policy that you created.

*/ inline void SetAccountPolicy(const AccountPolicy& value) { m_accountPolicy = value; } /** *

The account policy that you created.

*/ inline void SetAccountPolicy(AccountPolicy&& value) { m_accountPolicy = std::move(value); } /** *

The account policy that you created.

*/ inline PutAccountPolicyResult& WithAccountPolicy(const AccountPolicy& value) { SetAccountPolicy(value); return *this;} /** *

The account policy that you created.

*/ inline PutAccountPolicyResult& WithAccountPolicy(AccountPolicy&& value) { SetAccountPolicy(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 PutAccountPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutAccountPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutAccountPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: AccountPolicy m_accountPolicy; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws