AWS SDK for C++  1.8.154
AWS SDK for C++
S3SetObjectAclOperation.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
35  {
36  public:
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
47  inline const S3AccessControlPolicy& GetAccessControlPolicy() const{ return m_accessControlPolicy; }
48 
52  inline bool AccessControlPolicyHasBeenSet() const { return m_accessControlPolicyHasBeenSet; }
53 
57  inline void SetAccessControlPolicy(const S3AccessControlPolicy& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = value; }
58 
62  inline void SetAccessControlPolicy(S3AccessControlPolicy&& value) { m_accessControlPolicyHasBeenSet = true; m_accessControlPolicy = std::move(value); }
63 
67  inline S3SetObjectAclOperation& WithAccessControlPolicy(const S3AccessControlPolicy& value) { SetAccessControlPolicy(value); return *this;}
68 
72  inline S3SetObjectAclOperation& WithAccessControlPolicy(S3AccessControlPolicy&& value) { SetAccessControlPolicy(std::move(value)); return *this;}
73 
74  private:
75 
76  S3AccessControlPolicy m_accessControlPolicy;
77  bool m_accessControlPolicyHasBeenSet;
78  };
79 
80 } // namespace Model
81 } // namespace S3Control
82 } // namespace Aws
Aws::S3Control::Model::S3SetObjectAclOperation::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::S3SetObjectAclOperation::S3SetObjectAclOperation
S3SetObjectAclOperation()
S3Control_EXPORTS.h
Aws::S3Control::Model::S3SetObjectAclOperation::S3SetObjectAclOperation
S3SetObjectAclOperation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3SetObjectAclOperation::SetAccessControlPolicy
void SetAccessControlPolicy(S3AccessControlPolicy &&value)
Definition: S3SetObjectAclOperation.h:62
Aws::S3Control::Model::S3SetObjectAclOperation::AccessControlPolicyHasBeenSet
bool AccessControlPolicyHasBeenSet() const
Definition: S3SetObjectAclOperation.h:52
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3SetObjectAclOperation::WithAccessControlPolicy
S3SetObjectAclOperation & WithAccessControlPolicy(S3AccessControlPolicy &&value)
Definition: S3SetObjectAclOperation.h:72
Aws::S3Control::Model::S3AccessControlPolicy
Definition: S3AccessControlPolicy.h:32
Aws::S3Control::Model::S3SetObjectAclOperation::WithAccessControlPolicy
S3SetObjectAclOperation & WithAccessControlPolicy(const S3AccessControlPolicy &value)
Definition: S3SetObjectAclOperation.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3SetObjectAclOperation::SetAccessControlPolicy
void SetAccessControlPolicy(const S3AccessControlPolicy &value)
Definition: S3SetObjectAclOperation.h:57
Aws::S3Control::Model::S3SetObjectAclOperation::operator=
S3SetObjectAclOperation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3SetObjectAclOperation::GetAccessControlPolicy
const S3AccessControlPolicy & GetAccessControlPolicy() const
Definition: S3SetObjectAclOperation.h:47
Aws::S3Control::Model::S3SetObjectAclOperation
Definition: S3SetObjectAclOperation.h:35
S3AccessControlPolicy.h