AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Grantee.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/GranteeType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
35 class Grantee
36 {
37 public:
38 AWS_S3CONTROL_API Grantee() = default;
39 AWS_S3CONTROL_API Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_S3CONTROL_API Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
58 inline GranteeType GetGranteeType() const { return m_granteeType; }
59 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
60 inline void SetGranteeType(GranteeType value) { m_granteeTypeHasBeenSet = true; m_granteeType = value; }
61 inline Grantee& WithGranteeType(GranteeType value) { SetGranteeType(value); return *this;}
63
65
73 inline const Aws::String& GetGranteeIdentifier() const { return m_granteeIdentifier; }
74 inline bool GranteeIdentifierHasBeenSet() const { return m_granteeIdentifierHasBeenSet; }
75 template<typename GranteeIdentifierT = Aws::String>
76 void SetGranteeIdentifier(GranteeIdentifierT&& value) { m_granteeIdentifierHasBeenSet = true; m_granteeIdentifier = std::forward<GranteeIdentifierT>(value); }
77 template<typename GranteeIdentifierT = Aws::String>
78 Grantee& WithGranteeIdentifier(GranteeIdentifierT&& value) { SetGranteeIdentifier(std::forward<GranteeIdentifierT>(value)); return *this;}
80 private:
81
82 GranteeType m_granteeType{GranteeType::NOT_SET};
83 bool m_granteeTypeHasBeenSet = false;
84
85 Aws::String m_granteeIdentifier;
86 bool m_granteeIdentifierHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace S3Control
91} // namespace Aws
void SetGranteeType(GranteeType value)
Definition Grantee.h:60
Grantee & WithGranteeIdentifier(GranteeIdentifierT &&value)
Definition Grantee.h:78
Grantee & WithGranteeType(GranteeType value)
Definition Grantee.h:61
const Aws::String & GetGranteeIdentifier() const
Definition Grantee.h:73
AWS_S3CONTROL_API Grantee()=default
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GranteeType GetGranteeType() const
Definition Grantee.h:58
AWS_S3CONTROL_API Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
bool GranteeIdentifierHasBeenSet() const
Definition Grantee.h:74
void SetGranteeIdentifier(GranteeIdentifierT &&value)
Definition Grantee.h:76
bool GranteeTypeHasBeenSet() const
Definition Grantee.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String