AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OwnershipControlsRule.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ObjectOwnership.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Crt
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CRT_API OwnershipControlsRule();
35 AWS_S3CRT_API OwnershipControlsRule(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
43 inline const ObjectOwnership& GetObjectOwnership() const{ return m_objectOwnership; }
44 inline bool ObjectOwnershipHasBeenSet() const { return m_objectOwnershipHasBeenSet; }
45 inline void SetObjectOwnership(const ObjectOwnership& value) { m_objectOwnershipHasBeenSet = true; m_objectOwnership = value; }
46 inline void SetObjectOwnership(ObjectOwnership&& value) { m_objectOwnershipHasBeenSet = true; m_objectOwnership = std::move(value); }
47 inline OwnershipControlsRule& WithObjectOwnership(const ObjectOwnership& value) { SetObjectOwnership(value); return *this;}
48 inline OwnershipControlsRule& WithObjectOwnership(ObjectOwnership&& value) { SetObjectOwnership(std::move(value)); return *this;}
50 private:
51
52 ObjectOwnership m_objectOwnership;
53 bool m_objectOwnershipHasBeenSet = false;
54 };
55
56} // namespace Model
57} // namespace S3Crt
58} // namespace Aws
OwnershipControlsRule & WithObjectOwnership(ObjectOwnership &&value)
AWS_S3CRT_API OwnershipControlsRule(const Aws::Utils::Xml::XmlNode &xmlNode)
const ObjectOwnership & GetObjectOwnership() const
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetObjectOwnership(ObjectOwnership &&value)
void SetObjectOwnership(const ObjectOwnership &value)
AWS_S3CRT_API OwnershipControlsRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OwnershipControlsRule & WithObjectOwnership(const ObjectOwnership &value)