AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
53 inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
54 inline TargetGrant& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
55 inline TargetGrant& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
57
59
62 inline const BucketLogsPermission& GetPermission() const{ return m_permission; }
63 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
64 inline void SetPermission(const BucketLogsPermission& value) { m_permissionHasBeenSet = true; m_permission = value; }
65 inline void SetPermission(BucketLogsPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
66 inline TargetGrant& WithPermission(const BucketLogsPermission& value) { SetPermission(value); return *this;}
67 inline TargetGrant& WithPermission(BucketLogsPermission&& value) { SetPermission(std::move(value)); return *this;}
69 private:
70
71 Grantee m_grantee;
72 bool m_granteeHasBeenSet = false;
73
74 BucketLogsPermission m_permission;
75 bool m_permissionHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace S3Crt
80} // namespace Aws
const Grantee & GetGrantee() const
Definition TargetGrant.h:50
const BucketLogsPermission & GetPermission() const
Definition TargetGrant.h:62
TargetGrant & WithGrantee(const Grantee &value)
Definition TargetGrant.h:54
AWS_S3CRT_API TargetGrant(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGrantee(const Grantee &value)
Definition TargetGrant.h:52
TargetGrant & WithPermission(const BucketLogsPermission &value)
Definition TargetGrant.h:66
TargetGrant & WithPermission(BucketLogsPermission &&value)
Definition TargetGrant.h:67
TargetGrant & WithGrantee(Grantee &&value)
Definition TargetGrant.h:55
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetPermission(const BucketLogsPermission &value)
Definition TargetGrant.h:64
void SetGrantee(Grantee &&value)
Definition TargetGrant.h:53
AWS_S3CRT_API TargetGrant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPermission(BucketLogsPermission &&value)
Definition TargetGrant.h:65