/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { class GetMultiRegionAccessPointPolicyResult { public: AWS_S3CONTROL_API GetMultiRegionAccessPointPolicyResult(); AWS_S3CONTROL_API GetMultiRegionAccessPointPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_S3CONTROL_API GetMultiRegionAccessPointPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The policy associated with the specified Multi-Region Access Point.

*/ inline const MultiRegionAccessPointPolicyDocument& GetPolicy() const{ return m_policy; } /** *

The policy associated with the specified Multi-Region Access Point.

*/ inline void SetPolicy(const MultiRegionAccessPointPolicyDocument& value) { m_policy = value; } /** *

The policy associated with the specified Multi-Region Access Point.

*/ inline void SetPolicy(MultiRegionAccessPointPolicyDocument&& value) { m_policy = std::move(value); } /** *

The policy associated with the specified Multi-Region Access Point.

*/ inline GetMultiRegionAccessPointPolicyResult& WithPolicy(const MultiRegionAccessPointPolicyDocument& value) { SetPolicy(value); return *this;} /** *

The policy associated with the specified Multi-Region Access Point.

*/ inline GetMultiRegionAccessPointPolicyResult& WithPolicy(MultiRegionAccessPointPolicyDocument&& value) { SetPolicy(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 GetMultiRegionAccessPointPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMultiRegionAccessPointPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMultiRegionAccessPointPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: MultiRegionAccessPointPolicyDocument m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace S3Control } // namespace Aws