7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/Grant.h>
10#include <aws/s3/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;
const Owner & GetOwner() const
AccessControlPolicy & WithGrants(GrantsT &&value)
AWS_S3_API AccessControlPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
AccessControlPolicy & AddGrants(GrantsT &&value)
AccessControlPolicy & WithOwner(OwnerT &&value)
bool GrantsHasBeenSet() const
void SetOwner(OwnerT &&value)
void SetGrants(GrantsT &&value)
AWS_S3_API AccessControlPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API AccessControlPolicy()=default
bool OwnerHasBeenSet() const
const Aws::Vector< Grant > & GetGrants() const
std::vector< T, Aws::Allocator< T > > Vector