AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OwnershipControls.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3-crt/model/OwnershipControlsRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3CRT_API OwnershipControls();
36 AWS_S3CRT_API OwnershipControls(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::Vector<OwnershipControlsRule>& GetRules() const{ return m_rules; }
47 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
48 inline void SetRules(const Aws::Vector<OwnershipControlsRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
49 inline void SetRules(Aws::Vector<OwnershipControlsRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
50 inline OwnershipControls& WithRules(const Aws::Vector<OwnershipControlsRule>& value) { SetRules(value); return *this;}
51 inline OwnershipControls& WithRules(Aws::Vector<OwnershipControlsRule>&& value) { SetRules(std::move(value)); return *this;}
52 inline OwnershipControls& AddRules(const OwnershipControlsRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
53 inline OwnershipControls& AddRules(OwnershipControlsRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_rulesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace S3Crt
63} // namespace Aws
void SetRules(const Aws::Vector< OwnershipControlsRule > &value)
OwnershipControls & WithRules(Aws::Vector< OwnershipControlsRule > &&value)
const Aws::Vector< OwnershipControlsRule > & GetRules() const
void SetRules(Aws::Vector< OwnershipControlsRule > &&value)
AWS_S3CRT_API OwnershipControls(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OwnershipControls & AddRules(const OwnershipControlsRule &value)
OwnershipControls & AddRules(OwnershipControlsRule &&value)
OwnershipControls & WithRules(const Aws::Vector< OwnershipControlsRule > &value)
AWS_S3CRT_API OwnershipControls & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector