AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetObjectAclResult.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/S3_EXPORTS.h>
11#include <aws/s3/model/Grant.h>
12#include <aws/s3/model/Owner.h>
13#include <aws/s3/model/RequestCharged.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3 {
27namespace Model {
29 public:
30 AWS_S3_API GetObjectAclResult() = default;
33
35
38 inline const Owner& GetOwner() const { return m_owner; }
39 template <typename OwnerT = Owner>
40 void SetOwner(OwnerT&& value) {
41 m_ownerHasBeenSet = true;
42 m_owner = std::forward<OwnerT>(value);
43 }
44 template <typename OwnerT = Owner>
45 GetObjectAclResult& WithOwner(OwnerT&& value) {
46 SetOwner(std::forward<OwnerT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Grant>& GetGrants() const { return m_grants; }
56 template <typename GrantsT = Aws::Vector<Grant>>
57 void SetGrants(GrantsT&& value) {
58 m_grantsHasBeenSet = true;
59 m_grants = std::forward<GrantsT>(value);
60 }
61 template <typename GrantsT = Aws::Vector<Grant>>
62 GetObjectAclResult& WithGrants(GrantsT&& value) {
63 SetGrants(std::forward<GrantsT>(value));
64 return *this;
65 }
66 template <typename GrantsT = Grant>
67 GetObjectAclResult& AddGrants(GrantsT&& value) {
68 m_grantsHasBeenSet = true;
69 m_grants.emplace_back(std::forward<GrantsT>(value));
70 return *this;
71 }
73
75
76 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
77 inline void SetRequestCharged(RequestCharged value) {
78 m_requestChargedHasBeenSet = true;
79 m_requestCharged = value;
80 }
82 SetRequestCharged(value);
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
96 GetObjectAclResult& WithRequestId(RequestIdT&& value) {
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
102
103 private:
104 Owner m_owner;
105
106 Aws::Vector<Grant> m_grants;
107
108 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
109
110 Aws::String m_requestId;
111 Aws::Http::HttpResponseCode m_HttpResponseCode;
112 bool m_ownerHasBeenSet = false;
113 bool m_grantsHasBeenSet = false;
114 bool m_requestChargedHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace S3
120} // namespace Aws
GetObjectAclResult & WithGrants(GrantsT &&value)
void SetRequestCharged(RequestCharged value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_S3_API GetObjectAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API GetObjectAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetObjectAclResult & WithRequestId(RequestIdT &&value)
GetObjectAclResult & WithOwner(OwnerT &&value)
GetObjectAclResult & AddGrants(GrantsT &&value)
const Aws::Vector< Grant > & GetGrants() const
void SetRequestId(RequestIdT &&value)
GetObjectAclResult & WithRequestCharged(RequestCharged value)
const Aws::String & GetRequestId() const
AWS_S3_API GetObjectAclResult()=default
RequestCharged GetRequestCharged() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument