AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
S3Grantee.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/S3GranteeTypeIdentifier.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
27class S3Grantee {
28 public:
29 AWS_S3CONTROL_API S3Grantee() = default;
30 AWS_S3CONTROL_API S3Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_S3CONTROL_API S3Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline S3GranteeTypeIdentifier GetTypeIdentifier() const { return m_typeIdentifier; }
40 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
42 m_typeIdentifierHasBeenSet = true;
43 m_typeIdentifier = value;
44 }
46 SetTypeIdentifier(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetIdentifier() const { return m_identifier; }
56 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
57 template <typename IdentifierT = Aws::String>
58 void SetIdentifier(IdentifierT&& value) {
59 m_identifierHasBeenSet = true;
60 m_identifier = std::forward<IdentifierT>(value);
61 }
62 template <typename IdentifierT = Aws::String>
63 S3Grantee& WithIdentifier(IdentifierT&& value) {
64 SetIdentifier(std::forward<IdentifierT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 template <typename DisplayNameT = Aws::String>
76 void SetDisplayName(DisplayNameT&& value) {
77 m_displayNameHasBeenSet = true;
78 m_displayName = std::forward<DisplayNameT>(value);
79 }
80 template <typename DisplayNameT = Aws::String>
81 S3Grantee& WithDisplayName(DisplayNameT&& value) {
82 SetDisplayName(std::forward<DisplayNameT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::String m_identifier;
90
91 Aws::String m_displayName;
92 bool m_typeIdentifierHasBeenSet = false;
93 bool m_identifierHasBeenSet = false;
94 bool m_displayNameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace S3Control
99} // namespace Aws
AWS_S3CONTROL_API S3Grantee()=default
void SetDisplayName(DisplayNameT &&value)
Definition S3Grantee.h:76
void SetTypeIdentifier(S3GranteeTypeIdentifier value)
Definition S3Grantee.h:41
const Aws::String & GetIdentifier() const
Definition S3Grantee.h:55
const Aws::String & GetDisplayName() const
Definition S3Grantee.h:73
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3GranteeTypeIdentifier GetTypeIdentifier() const
Definition S3Grantee.h:39
S3Grantee & WithIdentifier(IdentifierT &&value)
Definition S3Grantee.h:63
void SetIdentifier(IdentifierT &&value)
Definition S3Grantee.h:58
bool TypeIdentifierHasBeenSet() const
Definition S3Grantee.h:40
AWS_S3CONTROL_API S3Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API S3Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
S3Grantee & WithTypeIdentifier(S3GranteeTypeIdentifier value)
Definition S3Grantee.h:45
S3Grantee & WithDisplayName(DisplayNameT &&value)
Definition S3Grantee.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String