AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetBucketAclResult.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Grant.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3
26{
27namespace Model
28{
30 {
31 public:
35
36
40 inline const Owner& GetOwner() const{ return m_owner; }
41
45 inline void SetOwner(const Owner& value) { m_owner = value; }
46
50 inline void SetOwner(Owner&& value) { m_owner = std::move(value); }
51
55 inline GetBucketAclResult& WithOwner(const Owner& value) { SetOwner(value); return *this;}
56
60 inline GetBucketAclResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
61
62
66 inline const Aws::Vector<Grant>& GetGrants() const{ return m_grants; }
67
71 inline void SetGrants(const Aws::Vector<Grant>& value) { m_grants = value; }
72
76 inline void SetGrants(Aws::Vector<Grant>&& value) { m_grants = std::move(value); }
77
81 inline GetBucketAclResult& WithGrants(const Aws::Vector<Grant>& value) { SetGrants(value); return *this;}
82
86 inline GetBucketAclResult& WithGrants(Aws::Vector<Grant>&& value) { SetGrants(std::move(value)); return *this;}
87
91 inline GetBucketAclResult& AddGrants(const Grant& value) { m_grants.push_back(value); return *this; }
92
96 inline GetBucketAclResult& AddGrants(Grant&& value) { m_grants.push_back(std::move(value)); return *this; }
97
98 private:
99
100 Owner m_owner;
101
102 Aws::Vector<Grant> m_grants;
103 };
104
105} // namespace Model
106} // namespace S3
107} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
GetBucketAclResult & AddGrants(Grant &&value)
GetBucketAclResult & AddGrants(const Grant &value)
AWS_S3_API GetBucketAclResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_S3_API GetBucketAclResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetBucketAclResult & WithOwner(Owner &&value)
void SetGrants(Aws::Vector< Grant > &&value)
void SetGrants(const Aws::Vector< Grant > &value)
void SetOwner(const Owner &value)
const Aws::Vector< Grant > & GetGrants() const
GetBucketAclResult & WithOwner(const Owner &value)
GetBucketAclResult & WithGrants(const Aws::Vector< Grant > &value)
GetBucketAclResult & WithGrants(Aws::Vector< Grant > &&value)
std::vector< T, Aws::Allocator< T > > Vector