AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CORSConfiguration.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/CORSRule.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
36 {
37 public:
38 AWS_S3CRT_API CORSConfiguration();
39 AWS_S3CRT_API CORSConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
50 inline const Aws::Vector<CORSRule>& GetCORSRules() const{ return m_cORSRules; }
51 inline bool CORSRulesHasBeenSet() const { return m_cORSRulesHasBeenSet; }
52 inline void SetCORSRules(const Aws::Vector<CORSRule>& value) { m_cORSRulesHasBeenSet = true; m_cORSRules = value; }
53 inline void SetCORSRules(Aws::Vector<CORSRule>&& value) { m_cORSRulesHasBeenSet = true; m_cORSRules = std::move(value); }
54 inline CORSConfiguration& WithCORSRules(const Aws::Vector<CORSRule>& value) { SetCORSRules(value); return *this;}
55 inline CORSConfiguration& WithCORSRules(Aws::Vector<CORSRule>&& value) { SetCORSRules(std::move(value)); return *this;}
56 inline CORSConfiguration& AddCORSRules(const CORSRule& value) { m_cORSRulesHasBeenSet = true; m_cORSRules.push_back(value); return *this; }
57 inline CORSConfiguration& AddCORSRules(CORSRule&& value) { m_cORSRulesHasBeenSet = true; m_cORSRules.push_back(std::move(value)); return *this; }
59 private:
60
61 Aws::Vector<CORSRule> m_cORSRules;
62 bool m_cORSRulesHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace S3Crt
67} // namespace Aws
const Aws::Vector< CORSRule > & GetCORSRules() const
void SetCORSRules(const Aws::Vector< CORSRule > &value)
AWS_S3CRT_API CORSConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
CORSConfiguration & AddCORSRules(const CORSRule &value)
CORSConfiguration & WithCORSRules(const Aws::Vector< CORSRule > &value)
void SetCORSRules(Aws::Vector< CORSRule > &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CORSConfiguration & WithCORSRules(Aws::Vector< CORSRule > &&value)
CORSConfiguration & AddCORSRules(CORSRule &&value)
AWS_S3CRT_API CORSConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector