7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3-crt/S3Crt_EXPORTS.h>
9#include <aws/s3-crt/model/Grant.h>
10#include <aws/s3-crt/model/Owner.h>
43 template <
typename GrantsT = Aws::Vector<Grant>>
45 m_grantsHasBeenSet =
true;
46 m_grants = std::forward<GrantsT>(value);
48 template <
typename GrantsT = Aws::Vector<Grant>>
53 template <
typename GrantsT = Grant>
55 m_grantsHasBeenSet =
true;
56 m_grants.emplace_back(std::forward<GrantsT>(value));
67 template <
typename OwnerT = Owner>
69 m_ownerHasBeenSet =
true;
70 m_owner = std::forward<OwnerT>(value);
72 template <
typename OwnerT = Owner>
74 SetOwner(std::forward<OwnerT>(value));
80 bool m_grantsHasBeenSet =
false;
83 bool m_ownerHasBeenSet =
false;
bool GrantsHasBeenSet() const
AWS_S3CRT_API AccessControlPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessControlPolicy & WithOwner(OwnerT &&value)
void SetOwner(OwnerT &&value)
AWS_S3CRT_API AccessControlPolicy()=default
const Aws::Vector< Grant > & GetGrants() const
AWS_S3CRT_API AccessControlPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
bool OwnerHasBeenSet() const
void SetGrants(GrantsT &&value)
AccessControlPolicy & AddGrants(GrantsT &&value)
AccessControlPolicy & WithGrants(GrantsT &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Owner & GetOwner() const
std::vector< T, Aws::Allocator< T > > Vector