AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
GetBucketAclResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/Grant.h>
12#include <aws/s3-crt/model/Owner.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3Crt {
26namespace Model {
28 public:
29 AWS_S3CRT_API GetBucketAclResult() = default;
32
34
37 inline const Owner& GetOwner() const { return m_owner; }
38 template <typename OwnerT = Owner>
39 void SetOwner(OwnerT&& value) {
40 m_ownerHasBeenSet = true;
41 m_owner = std::forward<OwnerT>(value);
42 }
43 template <typename OwnerT = Owner>
44 GetBucketAclResult& WithOwner(OwnerT&& value) {
45 SetOwner(std::forward<OwnerT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Grant>& GetGrants() const { return m_grants; }
55 template <typename GrantsT = Aws::Vector<Grant>>
56 void SetGrants(GrantsT&& value) {
57 m_grantsHasBeenSet = true;
58 m_grants = std::forward<GrantsT>(value);
59 }
60 template <typename GrantsT = Aws::Vector<Grant>>
61 GetBucketAclResult& WithGrants(GrantsT&& value) {
62 SetGrants(std::forward<GrantsT>(value));
63 return *this;
64 }
65 template <typename GrantsT = Grant>
66 GetBucketAclResult& AddGrants(GrantsT&& value) {
67 m_grantsHasBeenSet = true;
68 m_grants.emplace_back(std::forward<GrantsT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template <typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) {
78 m_requestIdHasBeenSet = true;
79 m_requestId = std::forward<RequestIdT>(value);
80 }
81 template <typename RequestIdT = Aws::String>
82 GetBucketAclResult& WithRequestId(RequestIdT&& value) {
83 SetRequestId(std::forward<RequestIdT>(value));
84 return *this;
85 }
87 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
88
89 private:
90 Owner m_owner;
91
92 Aws::Vector<Grant> m_grants;
93
94 Aws::String m_requestId;
95 Aws::Http::HttpResponseCode m_HttpResponseCode;
96 bool m_ownerHasBeenSet = false;
97 bool m_grantsHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace S3Crt
103} // namespace Aws
AWS_S3CRT_API GetBucketAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetBucketAclResult & AddGrants(GrantsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetBucketAclResult & WithGrants(GrantsT &&value)
const Aws::Vector< Grant > & GetGrants() const
const Aws::String & GetRequestId() const
GetBucketAclResult & WithOwner(OwnerT &&value)
GetBucketAclResult & WithRequestId(RequestIdT &&value)
AWS_S3CRT_API GetBucketAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3CRT_API GetBucketAclResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument