AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetBucketPolicyResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace S3
18{
19namespace Model
20{
22 {
23 public:
24 AWS_S3_API GetBucketPolicyResult() = default;
27 //we delete these because Microsoft doesn't handle move generation correctly
28 //and we therefore don't trust them to get it right here either.
31
32
35
36
37
39
42 inline Aws::IOStream& GetPolicy() const { return m_policy.GetUnderlyingStream(); }
43 inline void ReplaceBody(Aws::IOStream* body) { m_policy = Aws::Utils::Stream::ResponseStream(body); }
44
46
48
49 inline const Aws::String& GetRequestId() const { return m_requestId; }
50 template<typename RequestIdT = Aws::String>
51 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
52 template<typename RequestIdT = Aws::String>
53 GetBucketPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
55 private:
56
58 bool m_policyHasBeenSet = false;
59
60 Aws::String m_requestId;
61 bool m_requestIdHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace S3
66} // namespace Aws
GetBucketPolicyResult & WithRequestId(RequestIdT &&value)
AWS_S3_API GetBucketPolicyResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3_API GetBucketPolicyResult & operator=(GetBucketPolicyResult &&)=default
AWS_S3_API GetBucketPolicyResult()=default
GetBucketPolicyResult(const GetBucketPolicyResult &)=delete
GetBucketPolicyResult & operator=(const GetBucketPolicyResult &)=delete
AWS_S3_API GetBucketPolicyResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3_API GetBucketPolicyResult(GetBucketPolicyResult &&)=default
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String