AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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