AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
S3Grantee.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/S3GranteeTypeIdentifier.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
32 {
33 public:
34 AWS_S3CONTROL_API S3Grantee() = default;
35 AWS_S3CONTROL_API S3Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API S3Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline S3GranteeTypeIdentifier GetTypeIdentifier() const { return m_typeIdentifier; }
46 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
47 inline void SetTypeIdentifier(S3GranteeTypeIdentifier value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = value; }
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) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
59 template<typename IdentifierT = Aws::String>
60 S3Grantee& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDisplayName() const { return m_displayName; }
68 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
69 template<typename DisplayNameT = Aws::String>
70 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
71 template<typename DisplayNameT = Aws::String>
72 S3Grantee& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
74 private:
75
77 bool m_typeIdentifierHasBeenSet = false;
78
79 Aws::String m_identifier;
80 bool m_identifierHasBeenSet = false;
81
82 Aws::String m_displayName;
83 bool m_displayNameHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace S3Control
88} // namespace Aws
AWS_S3CONTROL_API S3Grantee()=default
void SetDisplayName(DisplayNameT &&value)
Definition S3Grantee.h:70
void SetTypeIdentifier(S3GranteeTypeIdentifier value)
Definition S3Grantee.h:47
const Aws::String & GetIdentifier() const
Definition S3Grantee.h:55
const Aws::String & GetDisplayName() const
Definition S3Grantee.h:67
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
S3GranteeTypeIdentifier GetTypeIdentifier() const
Definition S3Grantee.h:45
S3Grantee & WithIdentifier(IdentifierT &&value)
Definition S3Grantee.h:60
void SetIdentifier(IdentifierT &&value)
Definition S3Grantee.h:58
bool TypeIdentifierHasBeenSet() const
Definition S3Grantee.h:46
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:48
S3Grantee & WithDisplayName(DisplayNameT &&value)
Definition S3Grantee.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String