/** * 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 S3 { namespace Model { class AWS_S3_API GetBucketPolicyResult { public: GetBucketPolicyResult(); //We have to define these because Microsoft doesn't auto generate them GetBucketPolicyResult(GetBucketPolicyResult&&); GetBucketPolicyResult& operator=(GetBucketPolicyResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetBucketPolicyResult(const GetBucketPolicyResult&) = delete; GetBucketPolicyResult& operator=(const GetBucketPolicyResult&) = delete; GetBucketPolicyResult(Aws::AmazonWebServiceResult&& result); GetBucketPolicyResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The bucket policy as a JSON document.

*/ inline Aws::IOStream& GetPolicy() { return m_policy.GetUnderlyingStream(); } /** *

The bucket policy as a JSON document.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_policy = Aws::Utils::Stream::ResponseStream(body); } private: Aws::Utils::Stream::ResponseStream m_policy; }; } // namespace Model } // namespace S3 } // namespace Aws