AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const S3GranteeTypeIdentifier& GetTypeIdentifier() const{ return m_typeIdentifier; }
46 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
47 inline void SetTypeIdentifier(const S3GranteeTypeIdentifier& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = value; }
48 inline void SetTypeIdentifier(S3GranteeTypeIdentifier&& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = std::move(value); }
49 inline S3Grantee& WithTypeIdentifier(const S3GranteeTypeIdentifier& value) { SetTypeIdentifier(value); return *this;}
50 inline S3Grantee& WithTypeIdentifier(S3GranteeTypeIdentifier&& value) { SetTypeIdentifier(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
58 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
59 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
60 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
61 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
62 inline S3Grantee& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
63 inline S3Grantee& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
64 inline S3Grantee& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
66
68
71 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
72 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
73 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
74 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
75 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
76 inline S3Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
77 inline S3Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
78 inline S3Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
80 private:
81
82 S3GranteeTypeIdentifier m_typeIdentifier;
83 bool m_typeIdentifierHasBeenSet = false;
84
85 Aws::String m_identifier;
86 bool m_identifierHasBeenSet = false;
87
88 Aws::String m_displayName;
89 bool m_displayNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace S3Control
94} // namespace Aws
S3Grantee & WithDisplayName(const char *value)
Definition S3Grantee.h:78
const Aws::String & GetIdentifier() const
Definition S3Grantee.h:57
S3Grantee & WithDisplayName(Aws::String &&value)
Definition S3Grantee.h:77
const Aws::String & GetDisplayName() const
Definition S3Grantee.h:71
void SetTypeIdentifier(const S3GranteeTypeIdentifier &value)
Definition S3Grantee.h:47
S3Grantee & WithTypeIdentifier(S3GranteeTypeIdentifier &&value)
Definition S3Grantee.h:50
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetTypeIdentifier(S3GranteeTypeIdentifier &&value)
Definition S3Grantee.h:48
void SetDisplayName(const char *value)
Definition S3Grantee.h:75
bool TypeIdentifierHasBeenSet() const
Definition S3Grantee.h:46
S3Grantee & WithDisplayName(const Aws::String &value)
Definition S3Grantee.h:76
void SetIdentifier(const Aws::String &value)
Definition S3Grantee.h:59
S3Grantee & WithTypeIdentifier(const S3GranteeTypeIdentifier &value)
Definition S3Grantee.h:49
S3Grantee & WithIdentifier(const Aws::String &value)
Definition S3Grantee.h:62
void SetIdentifier(const char *value)
Definition S3Grantee.h:61
AWS_S3CONTROL_API S3Grantee()
S3Grantee & WithIdentifier(const char *value)
Definition S3Grantee.h:64
AWS_S3CONTROL_API S3Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API S3Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDisplayName(Aws::String &&value)
Definition S3Grantee.h:74
void SetIdentifier(Aws::String &&value)
Definition S3Grantee.h:60
void SetDisplayName(const Aws::String &value)
Definition S3Grantee.h:73
S3Grantee & WithIdentifier(Aws::String &&value)
Definition S3Grantee.h:63
const S3GranteeTypeIdentifier & GetTypeIdentifier() const
Definition S3Grantee.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String