AWS SDK for C++  1.8.154
AWS SDK for C++
S3AccessControlList.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace S3Control
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline const S3ObjectOwner& GetOwner() const{ return m_owner; }
46 
50  inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
51 
55  inline void SetOwner(const S3ObjectOwner& value) { m_ownerHasBeenSet = true; m_owner = value; }
56 
60  inline void SetOwner(S3ObjectOwner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
61 
65  inline S3AccessControlList& WithOwner(const S3ObjectOwner& value) { SetOwner(value); return *this;}
66 
70  inline S3AccessControlList& WithOwner(S3ObjectOwner&& value) { SetOwner(std::move(value)); return *this;}
71 
72 
76  inline const Aws::Vector<S3Grant>& GetGrants() const{ return m_grants; }
77 
81  inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
82 
86  inline void SetGrants(const Aws::Vector<S3Grant>& value) { m_grantsHasBeenSet = true; m_grants = value; }
87 
91  inline void SetGrants(Aws::Vector<S3Grant>&& value) { m_grantsHasBeenSet = true; m_grants = std::move(value); }
92 
96  inline S3AccessControlList& WithGrants(const Aws::Vector<S3Grant>& value) { SetGrants(value); return *this;}
97 
101  inline S3AccessControlList& WithGrants(Aws::Vector<S3Grant>&& value) { SetGrants(std::move(value)); return *this;}
102 
106  inline S3AccessControlList& AddGrants(const S3Grant& value) { m_grantsHasBeenSet = true; m_grants.push_back(value); return *this; }
107 
111  inline S3AccessControlList& AddGrants(S3Grant&& value) { m_grantsHasBeenSet = true; m_grants.push_back(std::move(value)); return *this; }
112 
113  private:
114 
115  S3ObjectOwner m_owner;
116  bool m_ownerHasBeenSet;
117 
118  Aws::Vector<S3Grant> m_grants;
119  bool m_grantsHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace S3Control
124 } // namespace Aws
Aws::S3Control::Model::S3Grant
Definition: S3Grant.h:32
Aws::S3Control::Model::S3AccessControlList::AddGrants
S3AccessControlList & AddGrants(S3Grant &&value)
Definition: S3AccessControlList.h:111
Aws::S3Control::Model::S3AccessControlList::S3AccessControlList
S3AccessControlList(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3AccessControlList::GetOwner
const S3ObjectOwner & GetOwner() const
Definition: S3AccessControlList.h:45
Aws::S3Control::Model::S3AccessControlList::WithGrants
S3AccessControlList & WithGrants(const Aws::Vector< S3Grant > &value)
Definition: S3AccessControlList.h:96
Aws::S3Control::Model::S3AccessControlList::S3AccessControlList
S3AccessControlList()
Aws::S3Control::Model::S3AccessControlList::AddGrants
S3AccessControlList & AddGrants(const S3Grant &value)
Definition: S3AccessControlList.h:106
Aws::S3Control::Model::S3AccessControlList::GetGrants
const Aws::Vector< S3Grant > & GetGrants() const
Definition: S3AccessControlList.h:76
Aws::S3Control::Model::S3AccessControlList
Definition: S3AccessControlList.h:33
Aws::S3Control::Model::S3AccessControlList::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::S3AccessControlList::SetGrants
void SetGrants(Aws::Vector< S3Grant > &&value)
Definition: S3AccessControlList.h:91
AWSVector.h
Aws::S3Control::Model::S3AccessControlList::SetOwner
void SetOwner(S3ObjectOwner &&value)
Definition: S3AccessControlList.h:60
S3Control_EXPORTS.h
Aws::S3Control::Model::S3ObjectOwner
Definition: S3ObjectOwner.h:31
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
S3ObjectOwner.h
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3AccessControlList::SetOwner
void SetOwner(const S3ObjectOwner &value)
Definition: S3AccessControlList.h:55
Aws::S3Control::Model::S3AccessControlList::WithOwner
S3AccessControlList & WithOwner(S3ObjectOwner &&value)
Definition: S3AccessControlList.h:70
Aws::S3Control::Model::S3AccessControlList::WithGrants
S3AccessControlList & WithGrants(Aws::Vector< S3Grant > &&value)
Definition: S3AccessControlList.h:101
Aws::S3Control::Model::S3AccessControlList::WithOwner
S3AccessControlList & WithOwner(const S3ObjectOwner &value)
Definition: S3AccessControlList.h:65
S3Grant.h
Aws::S3Control::Model::S3AccessControlList::GrantsHasBeenSet
bool GrantsHasBeenSet() const
Definition: S3AccessControlList.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3AccessControlList::operator=
S3AccessControlList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3AccessControlList::SetGrants
void SetGrants(const Aws::Vector< S3Grant > &value)
Definition: S3AccessControlList.h:86
Aws::S3Control::Model::S3AccessControlList::OwnerHasBeenSet
bool OwnerHasBeenSet() const
Definition: S3AccessControlList.h:50