AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CORSConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
36 {
37 public:
41
43
44
49 inline const Aws::Vector<CORSRule>& GetCORSRules() const{ return m_cORSRules; }
50
55 inline bool CORSRulesHasBeenSet() const { return m_cORSRulesHasBeenSet; }
56
61 inline void SetCORSRules(const Aws::Vector<CORSRule>& value) { m_cORSRulesHasBeenSet = true; m_cORSRules = value; }
62
67 inline void SetCORSRules(Aws::Vector<CORSRule>&& value) { m_cORSRulesHasBeenSet = true; m_cORSRules = std::move(value); }
68
73 inline CORSConfiguration& WithCORSRules(const Aws::Vector<CORSRule>& value) { SetCORSRules(value); return *this;}
74
79 inline CORSConfiguration& WithCORSRules(Aws::Vector<CORSRule>&& value) { SetCORSRules(std::move(value)); return *this;}
80
85 inline CORSConfiguration& AddCORSRules(const CORSRule& value) { m_cORSRulesHasBeenSet = true; m_cORSRules.push_back(value); return *this; }
86
91 inline CORSConfiguration& AddCORSRules(CORSRule&& value) { m_cORSRulesHasBeenSet = true; m_cORSRules.push_back(std::move(value)); return *this; }
92
93 private:
94
95 Aws::Vector<CORSRule> m_cORSRules;
96 bool m_cORSRulesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace S3
101} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
CORSConfiguration & AddCORSRules(CORSRule &&value)
AWS_S3_API CORSConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CORSConfiguration & WithCORSRules(Aws::Vector< CORSRule > &&value)
CORSConfiguration & WithCORSRules(const Aws::Vector< CORSRule > &value)
const Aws::Vector< CORSRule > & GetCORSRules() const
AWS_S3_API CORSConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCORSRules(Aws::Vector< CORSRule > &&value)
void SetCORSRules(const Aws::Vector< CORSRule > &value)
CORSConfiguration & AddCORSRules(const CORSRule &value)
std::vector< T, Aws::Allocator< T > > Vector