AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketPolicyResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_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 S3Crt
18{
19namespace Model
20{
22 {
23 public:
24 AWS_S3CRT_API GetBucketPolicyResult();
25 //We have to define these because Microsoft doesn't auto generate them
28 //we delete these because Microsoft doesn't handle move generation correctly
29 //and we therefore don't trust them to get it right here either.
32
33
36
37
38
40
43 inline Aws::IOStream& GetPolicy() const { return m_policy.GetUnderlyingStream(); }
44 inline void ReplaceBody(Aws::IOStream* body) { m_policy = Aws::Utils::Stream::ResponseStream(body); }
45
47
49
50 inline const Aws::String& GetRequestId() const{ return m_requestId; }
51 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
52 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
53 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
54 inline GetBucketPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
55 inline GetBucketPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
56 inline GetBucketPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
58 private:
59
61
62 Aws::String m_requestId;
63 };
64
65} // namespace Model
66} // namespace S3Crt
67} // namespace Aws
GetBucketPolicyResult(const GetBucketPolicyResult &)=delete
GetBucketPolicyResult & operator=(const GetBucketPolicyResult &)=delete
void SetRequestId(const Aws::String &value)
AWS_S3CRT_API GetBucketPolicyResult(GetBucketPolicyResult &&)
GetBucketPolicyResult & WithRequestId(const char *value)
GetBucketPolicyResult & WithRequestId(Aws::String &&value)
GetBucketPolicyResult & WithRequestId(const Aws::String &value)
AWS_S3CRT_API GetBucketPolicyResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_S3CRT_API GetBucketPolicyResult & operator=(GetBucketPolicyResult &&)
AWS_S3CRT_API GetBucketPolicyResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
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