AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3AccessControlPolicy.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/S3AccessControlList.h>
9#include <aws/s3control/model/S3CannedAccessControlList.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_S3CONTROL_API S3AccessControlPolicy();
35 AWS_S3CONTROL_API S3AccessControlPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API S3AccessControlPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const S3AccessControlList& GetAccessControlList() const{ return m_accessControlList; }
46 inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
47 inline void SetAccessControlList(const S3AccessControlList& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
48 inline void SetAccessControlList(S3AccessControlList&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
50 inline S3AccessControlPolicy& WithAccessControlList(S3AccessControlList&& value) { SetAccessControlList(std::move(value)); return *this;}
52
54
57 inline const S3CannedAccessControlList& GetCannedAccessControlList() const{ return m_cannedAccessControlList; }
58 inline bool CannedAccessControlListHasBeenSet() const { return m_cannedAccessControlListHasBeenSet; }
59 inline void SetCannedAccessControlList(const S3CannedAccessControlList& value) { m_cannedAccessControlListHasBeenSet = true; m_cannedAccessControlList = value; }
60 inline void SetCannedAccessControlList(S3CannedAccessControlList&& value) { m_cannedAccessControlListHasBeenSet = true; m_cannedAccessControlList = std::move(value); }
64 private:
65
66 S3AccessControlList m_accessControlList;
67 bool m_accessControlListHasBeenSet = false;
68
69 S3CannedAccessControlList m_cannedAccessControlList;
70 bool m_cannedAccessControlListHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace S3Control
75} // namespace Aws
S3AccessControlPolicy & WithAccessControlList(const S3AccessControlList &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3AccessControlPolicy & WithAccessControlList(S3AccessControlList &&value)
const S3AccessControlList & GetAccessControlList() const
AWS_S3CONTROL_API S3AccessControlPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API S3AccessControlPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCannedAccessControlList(S3CannedAccessControlList &&value)
void SetAccessControlList(S3AccessControlList &&value)
void SetCannedAccessControlList(const S3CannedAccessControlList &value)
S3AccessControlPolicy & WithCannedAccessControlList(const S3CannedAccessControlList &value)
S3AccessControlPolicy & WithCannedAccessControlList(S3CannedAccessControlList &&value)
const S3CannedAccessControlList & GetCannedAccessControlList() const
void SetAccessControlList(const S3AccessControlList &value)