AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Owner.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3 {
19namespace Model {
20
26class Owner {
27 public:
28 AWS_S3_API Owner() = default;
29 AWS_S3_API Owner(const Aws::Utils::Xml::XmlNode& xmlNode);
30 AWS_S3_API Owner& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
31
32 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
33
35
38 inline const Aws::String& GetDisplayName() const { return m_displayName; }
39 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
40 template <typename DisplayNameT = Aws::String>
41 void SetDisplayName(DisplayNameT&& value) {
42 m_displayNameHasBeenSet = true;
43 m_displayName = std::forward<DisplayNameT>(value);
44 }
45 template <typename DisplayNameT = Aws::String>
46 Owner& WithDisplayName(DisplayNameT&& value) {
47 SetDisplayName(std::forward<DisplayNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetID() const { return m_iD; }
57 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
58 template <typename IDT = Aws::String>
59 void SetID(IDT&& value) {
60 m_iDHasBeenSet = true;
61 m_iD = std::forward<IDT>(value);
62 }
63 template <typename IDT = Aws::String>
64 Owner& WithID(IDT&& value) {
65 SetID(std::forward<IDT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_displayName;
71
72 Aws::String m_iD;
73 bool m_displayNameHasBeenSet = false;
74 bool m_iDHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace S3
79} // namespace Aws
AWS_S3_API Owner()=default
bool IDHasBeenSet() const
Definition Owner.h:57
bool DisplayNameHasBeenSet() const
Definition Owner.h:39
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API Owner(const Aws::Utils::Xml::XmlNode &xmlNode)
Owner & WithDisplayName(DisplayNameT &&value)
Definition Owner.h:46
AWS_S3_API Owner & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDisplayName(DisplayNameT &&value)
Definition Owner.h:41
Owner & WithID(IDT &&value)
Definition Owner.h:64
const Aws::String & GetID() const
Definition Owner.h:56
const Aws::String & GetDisplayName() const
Definition Owner.h:38
void SetID(IDT &&value)
Definition Owner.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String