AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3AccessControlList.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/S3ObjectOwner.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/model/S3Grant.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_S3CONTROL_API S3AccessControlList();
36 AWS_S3CONTROL_API S3AccessControlList(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CONTROL_API S3AccessControlList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const S3ObjectOwner& GetOwner() const{ return m_owner; }
47 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
48 inline void SetOwner(const S3ObjectOwner& value) { m_ownerHasBeenSet = true; m_owner = value; }
49 inline void SetOwner(S3ObjectOwner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
50 inline S3AccessControlList& WithOwner(const S3ObjectOwner& value) { SetOwner(value); return *this;}
51 inline S3AccessControlList& WithOwner(S3ObjectOwner&& value) { SetOwner(std::move(value)); return *this;}
53
55
58 inline const Aws::Vector<S3Grant>& GetGrants() const{ return m_grants; }
59 inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
60 inline void SetGrants(const Aws::Vector<S3Grant>& value) { m_grantsHasBeenSet = true; m_grants = value; }
61 inline void SetGrants(Aws::Vector<S3Grant>&& value) { m_grantsHasBeenSet = true; m_grants = std::move(value); }
62 inline S3AccessControlList& WithGrants(const Aws::Vector<S3Grant>& value) { SetGrants(value); return *this;}
63 inline S3AccessControlList& WithGrants(Aws::Vector<S3Grant>&& value) { SetGrants(std::move(value)); return *this;}
64 inline S3AccessControlList& AddGrants(const S3Grant& value) { m_grantsHasBeenSet = true; m_grants.push_back(value); return *this; }
65 inline S3AccessControlList& AddGrants(S3Grant&& value) { m_grantsHasBeenSet = true; m_grants.push_back(std::move(value)); return *this; }
67 private:
68
69 S3ObjectOwner m_owner;
70 bool m_ownerHasBeenSet = false;
71
72 Aws::Vector<S3Grant> m_grants;
73 bool m_grantsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace S3Control
78} // namespace Aws
void SetGrants(Aws::Vector< S3Grant > &&value)
S3AccessControlList & WithGrants(Aws::Vector< S3Grant > &&value)
AWS_S3CONTROL_API S3AccessControlList(const Aws::Utils::Xml::XmlNode &xmlNode)
S3AccessControlList & AddGrants(const S3Grant &value)
S3AccessControlList & AddGrants(S3Grant &&value)
void SetGrants(const Aws::Vector< S3Grant > &value)
const Aws::Vector< S3Grant > & GetGrants() const
S3AccessControlList & WithOwner(S3ObjectOwner &&value)
S3AccessControlList & WithGrants(const Aws::Vector< S3Grant > &value)
AWS_S3CONTROL_API S3AccessControlList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
S3AccessControlList & WithOwner(const S3ObjectOwner &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetOwner(const S3ObjectOwner &value)
std::vector< T, Aws::Allocator< T > > Vector