AWS SDK for C++  1.8.154
AWS SDK for C++
S3AccessControlPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3Control
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const S3AccessControlList& GetAccessControlList() const{ return m_accessControlList; }
45 
49  inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
50 
54  inline void SetAccessControlList(const S3AccessControlList& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
55 
59  inline void SetAccessControlList(S3AccessControlList&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
60 
64  inline S3AccessControlPolicy& WithAccessControlList(const S3AccessControlList& value) { SetAccessControlList(value); return *this;}
65 
69  inline S3AccessControlPolicy& WithAccessControlList(S3AccessControlList&& value) { SetAccessControlList(std::move(value)); return *this;}
70 
71 
75  inline const S3CannedAccessControlList& GetCannedAccessControlList() const{ return m_cannedAccessControlList; }
76 
80  inline bool CannedAccessControlListHasBeenSet() const { return m_cannedAccessControlListHasBeenSet; }
81 
85  inline void SetCannedAccessControlList(const S3CannedAccessControlList& value) { m_cannedAccessControlListHasBeenSet = true; m_cannedAccessControlList = value; }
86 
90  inline void SetCannedAccessControlList(S3CannedAccessControlList&& value) { m_cannedAccessControlListHasBeenSet = true; m_cannedAccessControlList = std::move(value); }
91 
95  inline S3AccessControlPolicy& WithCannedAccessControlList(const S3CannedAccessControlList& value) { SetCannedAccessControlList(value); return *this;}
96 
100  inline S3AccessControlPolicy& WithCannedAccessControlList(S3CannedAccessControlList&& value) { SetCannedAccessControlList(std::move(value)); return *this;}
101 
102  private:
103 
104  S3AccessControlList m_accessControlList;
105  bool m_accessControlListHasBeenSet;
106 
107  S3CannedAccessControlList m_cannedAccessControlList;
108  bool m_cannedAccessControlListHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace S3Control
113 } // namespace Aws
Aws::S3Control::Model::S3AccessControlPolicy::SetAccessControlList
void SetAccessControlList(const S3AccessControlList &value)
Definition: S3AccessControlPolicy.h:54
Aws::S3Control::Model::S3AccessControlPolicy::GetAccessControlList
const S3AccessControlList & GetAccessControlList() const
Definition: S3AccessControlPolicy.h:44
Aws::S3Control::Model::S3AccessControlPolicy::S3AccessControlPolicy
S3AccessControlPolicy()
Aws::S3Control::Model::S3AccessControlList
Definition: S3AccessControlList.h:33
Aws::S3Control::Model::S3AccessControlPolicy::WithCannedAccessControlList
S3AccessControlPolicy & WithCannedAccessControlList(S3CannedAccessControlList &&value)
Definition: S3AccessControlPolicy.h:100
Aws::S3Control::Model::S3AccessControlPolicy::CannedAccessControlListHasBeenSet
bool CannedAccessControlListHasBeenSet() const
Definition: S3AccessControlPolicy.h:80
Aws::S3Control::Model::S3CannedAccessControlList
S3CannedAccessControlList
Definition: S3CannedAccessControlList.h:17
S3Control_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3AccessControlPolicy::S3AccessControlPolicy
S3AccessControlPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3AccessControlPolicy::SetCannedAccessControlList
void SetCannedAccessControlList(const S3CannedAccessControlList &value)
Definition: S3AccessControlPolicy.h:85
Aws::S3Control::Model::S3AccessControlPolicy::SetCannedAccessControlList
void SetCannedAccessControlList(S3CannedAccessControlList &&value)
Definition: S3AccessControlPolicy.h:90
Aws::S3Control::Model::S3AccessControlPolicy
Definition: S3AccessControlPolicy.h:32
Aws::S3Control::Model::S3AccessControlPolicy::WithAccessControlList
S3AccessControlPolicy & WithAccessControlList(S3AccessControlList &&value)
Definition: S3AccessControlPolicy.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3AccessControlPolicy::WithCannedAccessControlList
S3AccessControlPolicy & WithCannedAccessControlList(const S3CannedAccessControlList &value)
Definition: S3AccessControlPolicy.h:95
Aws::S3Control::Model::S3AccessControlPolicy::AccessControlListHasBeenSet
bool AccessControlListHasBeenSet() const
Definition: S3AccessControlPolicy.h:49
Aws::S3Control::Model::S3AccessControlPolicy::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3CannedAccessControlList.h
S3AccessControlList.h
Aws::S3Control::Model::S3AccessControlPolicy::WithAccessControlList
S3AccessControlPolicy & WithAccessControlList(const S3AccessControlList &value)
Definition: S3AccessControlPolicy.h:64
Aws::S3Control::Model::S3AccessControlPolicy::SetAccessControlList
void SetAccessControlList(S3AccessControlList &&value)
Definition: S3AccessControlPolicy.h:59
Aws::S3Control::Model::S3AccessControlPolicy::operator=
S3AccessControlPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3AccessControlPolicy::GetCannedAccessControlList
const S3CannedAccessControlList & GetCannedAccessControlList() const
Definition: S3AccessControlPolicy.h:75