AWS SDK for C++  1.8.153
AWS SDK for C++
S3ObjectOwner.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
31  {
32  public:
36 
37  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38 
39 
43  inline const Aws::String& GetID() const{ return m_iD; }
44 
48  inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
49 
53  inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
54 
58  inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
59 
63  inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
64 
68  inline S3ObjectOwner& WithID(const Aws::String& value) { SetID(value); return *this;}
69 
73  inline S3ObjectOwner& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
74 
78  inline S3ObjectOwner& WithID(const char* value) { SetID(value); return *this;}
79 
80 
84  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
85 
89  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
90 
94  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
95 
99  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
100 
104  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
105 
109  inline S3ObjectOwner& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
110 
114  inline S3ObjectOwner& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
115 
119  inline S3ObjectOwner& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
120 
121  private:
122 
123  Aws::String m_iD;
124  bool m_iDHasBeenSet;
125 
126  Aws::String m_displayName;
127  bool m_displayNameHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace S3Control
132 } // namespace Aws
Aws::S3Control::Model::S3ObjectOwner::WithID
S3ObjectOwner & WithID(const char *value)
Definition: S3ObjectOwner.h:78
Aws::S3Control::Model::S3ObjectOwner::S3ObjectOwner
S3ObjectOwner()
Aws::S3Control::Model::S3ObjectOwner::WithDisplayName
S3ObjectOwner & WithDisplayName(Aws::String &&value)
Definition: S3ObjectOwner.h:114
Aws::S3Control::Model::S3ObjectOwner::WithDisplayName
S3ObjectOwner & WithDisplayName(const Aws::String &value)
Definition: S3ObjectOwner.h:109
Aws::S3Control::Model::S3ObjectOwner::SetID
void SetID(const Aws::String &value)
Definition: S3ObjectOwner.h:53
Aws::S3Control::Model::S3ObjectOwner::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: S3ObjectOwner.h:94
Aws::S3Control::Model::S3ObjectOwner::IDHasBeenSet
bool IDHasBeenSet() const
Definition: S3ObjectOwner.h:48
Aws::S3Control::Model::S3ObjectOwner::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: S3ObjectOwner.h:84
Aws::S3Control::Model::S3ObjectOwner::GetID
const Aws::String & GetID() const
Definition: S3ObjectOwner.h:43
Aws::S3Control::Model::S3ObjectOwner::SetID
void SetID(const char *value)
Definition: S3ObjectOwner.h:63
S3Control_EXPORTS.h
Aws::S3Control::Model::S3ObjectOwner
Definition: S3ObjectOwner.h:31
Aws::S3Control::Model::S3ObjectOwner::WithID
S3ObjectOwner & WithID(const Aws::String &value)
Definition: S3ObjectOwner.h:68
Aws::S3Control::Model::S3ObjectOwner::SetDisplayName
void SetDisplayName(const char *value)
Definition: S3ObjectOwner.h:104
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::S3ObjectOwner::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::S3ObjectOwner::WithID
S3ObjectOwner & WithID(Aws::String &&value)
Definition: S3ObjectOwner.h:73
AWSString.h
Aws::S3Control::Model::S3ObjectOwner::S3ObjectOwner
S3ObjectOwner(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::S3ObjectOwner::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: S3ObjectOwner.h:89
Aws::S3Control::Model::S3ObjectOwner::WithDisplayName
S3ObjectOwner & WithDisplayName(const char *value)
Definition: S3ObjectOwner.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::S3ObjectOwner::operator=
S3ObjectOwner & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::S3ObjectOwner::SetID
void SetID(Aws::String &&value)
Definition: S3ObjectOwner.h:58
Aws::S3Control::Model::S3ObjectOwner::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: S3ObjectOwner.h:99