AWS SDK for C++  1.8.154
AWS SDK for C++
S3Grantee.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3Control
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const S3GranteeTypeIdentifier& GetTypeIdentifier() const{ return m_typeIdentifier; }
45 
49  inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
50 
54  inline void SetTypeIdentifier(const S3GranteeTypeIdentifier& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = value; }
55 
59  inline void SetTypeIdentifier(S3GranteeTypeIdentifier&& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = std::move(value); }
60 
64  inline S3Grantee& WithTypeIdentifier(const S3GranteeTypeIdentifier& value) { SetTypeIdentifier(value); return *this;}
65 
69  inline S3Grantee& WithTypeIdentifier(S3GranteeTypeIdentifier&& value) { SetTypeIdentifier(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetIdentifier() const{ return m_identifier; }
76 
80  inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
81 
85  inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
86 
90  inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
91 
95  inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
96 
100  inline S3Grantee& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
101 
105  inline S3Grantee& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
106 
110  inline S3Grantee& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
111 
112 
116  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
117 
121  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
122 
126  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
127 
131  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
132 
136  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
137 
141  inline S3Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
142 
146  inline S3Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
147 
151  inline S3Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
152 
153  private:
154 
155  S3GranteeTypeIdentifier m_typeIdentifier;
156  bool m_typeIdentifierHasBeenSet;
157 
158  Aws::String m_identifier;
159  bool m_identifierHasBeenSet;
160 
161  Aws::String m_displayName;
162  bool m_displayNameHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace S3Control
167 } // namespace Aws
Aws::S3Control::Model::S3Grantee::S3Grantee
S3Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3Grantee::WithDisplayName
S3Grantee & WithDisplayName(const Aws::String &value)
Definition: S3Grantee.h:141
Aws::S3Control::Model::S3Grantee::WithTypeIdentifier
S3Grantee & WithTypeIdentifier(S3GranteeTypeIdentifier &&value)
Definition: S3Grantee.h:69
Aws::S3Control::Model::S3Grantee::SetTypeIdentifier
void SetTypeIdentifier(S3GranteeTypeIdentifier &&value)
Definition: S3Grantee.h:59
Aws::S3Control::Model::S3Grantee::operator=
S3Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3Grantee::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::S3Grantee::GetTypeIdentifier
const S3GranteeTypeIdentifier & GetTypeIdentifier() const
Definition: S3Grantee.h:44
Aws::S3Control::Model::S3Grantee::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: S3Grantee.h:116
Aws::S3Control::Model::S3GranteeTypeIdentifier
S3GranteeTypeIdentifier
Definition: S3GranteeTypeIdentifier.h:17
Aws::S3Control::Model::S3Grantee::WithIdentifier
S3Grantee & WithIdentifier(const Aws::String &value)
Definition: S3Grantee.h:100
S3Control_EXPORTS.h
Aws::S3Control::Model::S3Grantee::SetTypeIdentifier
void SetTypeIdentifier(const S3GranteeTypeIdentifier &value)
Definition: S3Grantee.h:54
Aws::S3Control::Model::S3Grantee::SetDisplayName
void SetDisplayName(const char *value)
Definition: S3Grantee.h:136
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3Grantee::SetIdentifier
void SetIdentifier(const char *value)
Definition: S3Grantee.h:95
Aws::S3Control::Model::S3Grantee::TypeIdentifierHasBeenSet
bool TypeIdentifierHasBeenSet() const
Definition: S3Grantee.h:49
Aws::S3Control::Model::S3Grantee::SetIdentifier
void SetIdentifier(Aws::String &&value)
Definition: S3Grantee.h:90
Aws::S3Control::Model::S3Grantee::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: S3Grantee.h:131
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3Grantee::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: S3Grantee.h:121
AWSString.h
Aws::S3Control::Model::S3Grantee::WithDisplayName
S3Grantee & WithDisplayName(Aws::String &&value)
Definition: S3Grantee.h:146
Aws::S3Control::Model::S3Grantee::WithIdentifier
S3Grantee & WithIdentifier(const char *value)
Definition: S3Grantee.h:110
Aws::S3Control::Model::S3Grantee
Definition: S3Grantee.h:32
Aws::S3Control::Model::S3Grantee::WithTypeIdentifier
S3Grantee & WithTypeIdentifier(const S3GranteeTypeIdentifier &value)
Definition: S3Grantee.h:64
Aws::S3Control::Model::S3Grantee::GetIdentifier
const Aws::String & GetIdentifier() const
Definition: S3Grantee.h:75
Aws
Definition: AccessManagementClient.h:15
S3GranteeTypeIdentifier.h
Aws::S3Control::Model::S3Grantee::WithIdentifier
S3Grantee & WithIdentifier(Aws::String &&value)
Definition: S3Grantee.h:105
Aws::S3Control::Model::S3Grantee::S3Grantee
S3Grantee()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::S3Grantee::SetIdentifier
void SetIdentifier(const Aws::String &value)
Definition: S3Grantee.h:85
Aws::S3Control::Model::S3Grantee::IdentifierHasBeenSet
bool IdentifierHasBeenSet() const
Definition: S3Grantee.h:80
Aws::S3Control::Model::S3Grantee::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: S3Grantee.h:126
Aws::S3Control::Model::S3Grantee::WithDisplayName
S3Grantee & WithDisplayName(const char *value)
Definition: S3Grantee.h:151