AWS SDK for C++  1.8.95
AWS SDK for C++
CORSConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3
22 {
23 namespace Model
24 {
25 
36  {
37  public:
40  CORSConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
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;
97  };
98 
99 } // namespace Model
100 } // namespace S3
101 } // namespace Aws
const Aws::Vector< CORSRule > & GetCORSRules() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetCORSRules(const Aws::Vector< CORSRule > &value)
CORSConfiguration & WithCORSRules(Aws::Vector< CORSRule > &&value)
CORSConfiguration & AddCORSRules(const CORSRule &value)
CORSConfiguration & WithCORSRules(const Aws::Vector< CORSRule > &value)
CORSConfiguration & AddCORSRules(CORSRule &&value)
void SetCORSRules(Aws::Vector< CORSRule > &&value)