AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectAclResult.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/Grant.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
31 {
32 public:
36
37
41 inline const Owner& GetOwner() const{ return m_owner; }
42
46 inline void SetOwner(const Owner& value) { m_owner = value; }
47
51 inline void SetOwner(Owner&& value) { m_owner = std::move(value); }
52
56 inline GetObjectAclResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
57
61 inline GetObjectAclResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
62
63
67 inline const Aws::Vector<Grant>& GetGrants() const{ return m_grants; }
68
72 inline void SetGrants(const Aws::Vector<Grant>& value) { m_grants = value; }
73
77 inline void SetGrants(Aws::Vector<Grant>&& value) { m_grants = std::move(value); }
78
82 inline GetObjectAclResult& WithGrants(const Aws::Vector<Grant>& value) { SetGrants(value); return *this;}
83
87 inline GetObjectAclResult& WithGrants(Aws::Vector<Grant>&& value) { SetGrants(std::move(value)); return *this;}
88
92 inline GetObjectAclResult& AddGrants(const Grant& value) { m_grants.push_back(value); return *this; }
93
97 inline GetObjectAclResult& AddGrants(Grant&& value) { m_grants.push_back(std::move(value)); return *this; }
98
99
100
101 inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
102
103
104 inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
105
106
107 inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); }
108
109
110 inline GetObjectAclResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
111
112
113 inline GetObjectAclResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;}
114
115 private:
116
117 Owner m_owner;
118
119 Aws::Vector<Grant> m_grants;
120
121 RequestCharged m_requestCharged;
122 };
123
124} // namespace Model
125} // namespace S3
126} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetGrants(const Aws::Vector< Grant > &value)
void SetGrants(Aws::Vector< Grant > &&value)
GetObjectAclResult & WithGrants(const Aws::Vector< Grant > &value)
GetObjectAclResult & AddGrants(Grant &&value)
GetObjectAclResult & WithRequestCharged(const RequestCharged &value)
GetObjectAclResult & WithGrants(Aws::Vector< Grant > &&value)
void SetRequestCharged(const RequestCharged &value)
const RequestCharged & GetRequestCharged() const
GetObjectAclResult & WithOwner(const Owner &value)
AWS_S3_API GetObjectAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestCharged(RequestCharged &&value)
AWS_S3_API GetObjectAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Grant > & GetGrants() const
GetObjectAclResult & AddGrants(const Grant &value)
GetObjectAclResult & WithRequestCharged(RequestCharged &&value)
void SetOwner(const Owner &value)
GetObjectAclResult & WithOwner(Owner &&value)
std::vector< T, Aws::Allocator< T > > Vector