AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
OwnershipControlsRule.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
32 {
33 public:
37
39
40
41
42 inline const ObjectOwnership& GetObjectOwnership() const{ return m_objectOwnership; }
43
44
45 inline bool ObjectOwnershipHasBeenSet() const { return m_objectOwnershipHasBeenSet; }
46
47
48 inline void SetObjectOwnership(const ObjectOwnership& value) { m_objectOwnershipHasBeenSet = true; m_objectOwnership = value; }
49
50
51 inline void SetObjectOwnership(ObjectOwnership&& value) { m_objectOwnershipHasBeenSet = true; m_objectOwnership = std::move(value); }
52
53
54 inline OwnershipControlsRule& WithObjectOwnership(const ObjectOwnership& value) { SetObjectOwnership(value); return *this;}
55
56
57 inline OwnershipControlsRule& WithObjectOwnership(ObjectOwnership&& value) { SetObjectOwnership(std::move(value)); return *this;}
58
59 private:
60
61 ObjectOwnership m_objectOwnership;
62 bool m_objectOwnershipHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace S3
67} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
OwnershipControlsRule & WithObjectOwnership(const ObjectOwnership &value)
void SetObjectOwnership(const ObjectOwnership &value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API OwnershipControlsRule(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API OwnershipControlsRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ObjectOwnership & GetObjectOwnership() const
void SetObjectOwnership(ObjectOwnership &&value)
OwnershipControlsRule & WithObjectOwnership(ObjectOwnership &&value)