AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TargetGrant.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/Grantee.h>
9#include <aws/s3-crt/model/BucketLogsPermission.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_S3CRT_API TargetGrant() = default;
40 AWS_S3CRT_API TargetGrant(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_S3CRT_API TargetGrant& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Grantee& GetGrantee() const { return m_grantee; }
51 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
52 template<typename GranteeT = Grantee>
53 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
54 template<typename GranteeT = Grantee>
55 TargetGrant& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
57
59
62 inline BucketLogsPermission GetPermission() const { return m_permission; }
63 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
64 inline void SetPermission(BucketLogsPermission value) { m_permissionHasBeenSet = true; m_permission = value; }
65 inline TargetGrant& WithPermission(BucketLogsPermission value) { SetPermission(value); return *this;}
67 private:
68
69 Grantee m_grantee;
70 bool m_granteeHasBeenSet = false;
71
73 bool m_permissionHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace S3Crt
78} // namespace Aws
const Grantee & GetGrantee() const
Definition TargetGrant.h:50
AWS_S3CRT_API TargetGrant()=default
TargetGrant & WithGrantee(GranteeT &&value)
Definition TargetGrant.h:55
AWS_S3CRT_API TargetGrant(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGrantee(GranteeT &&value)
Definition TargetGrant.h:53
BucketLogsPermission GetPermission() const
Definition TargetGrant.h:62
void SetPermission(BucketLogsPermission value)
Definition TargetGrant.h:64
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TargetGrant & WithPermission(BucketLogsPermission value)
Definition TargetGrant.h:65
AWS_S3CRT_API TargetGrant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)