AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Grantee.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/GranteeType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3Control {
20namespace Model {
21
31class Grantee {
32 public:
33 AWS_S3CONTROL_API Grantee() = default;
34 AWS_S3CONTROL_API Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_S3CONTROL_API Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
40
52 inline GranteeType GetGranteeType() const { return m_granteeType; }
53 inline bool GranteeTypeHasBeenSet() const { return m_granteeTypeHasBeenSet; }
54 inline void SetGranteeType(GranteeType value) {
55 m_granteeTypeHasBeenSet = true;
56 m_granteeType = value;
57 }
59 SetGranteeType(value);
60 return *this;
61 }
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) {
77 m_granteeIdentifierHasBeenSet = true;
78 m_granteeIdentifier = std::forward<GranteeIdentifierT>(value);
79 }
80 template <typename GranteeIdentifierT = Aws::String>
81 Grantee& WithGranteeIdentifier(GranteeIdentifierT&& value) {
82 SetGranteeIdentifier(std::forward<GranteeIdentifierT>(value));
83 return *this;
84 }
86 private:
87 GranteeType m_granteeType{GranteeType::NOT_SET};
88
89 Aws::String m_granteeIdentifier;
90 bool m_granteeTypeHasBeenSet = false;
91 bool m_granteeIdentifierHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace S3Control
96} // namespace Aws
void SetGranteeType(GranteeType value)
Definition Grantee.h:54
Grantee & WithGranteeIdentifier(GranteeIdentifierT &&value)
Definition Grantee.h:81
Grantee & WithGranteeType(GranteeType value)
Definition Grantee.h:58
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:52
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:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String