AWS SDK for C++  1.8.154
AWS SDK for C++
Exclude.h
Go to the documentation of this file.
1 
6 #pragma once
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 S3Control
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetBuckets() const{ return m_buckets; }
46 
50  inline bool BucketsHasBeenSet() const { return m_bucketsHasBeenSet; }
51 
55  inline void SetBuckets(const Aws::Vector<Aws::String>& value) { m_bucketsHasBeenSet = true; m_buckets = value; }
56 
60  inline void SetBuckets(Aws::Vector<Aws::String>&& value) { m_bucketsHasBeenSet = true; m_buckets = std::move(value); }
61 
65  inline Exclude& WithBuckets(const Aws::Vector<Aws::String>& value) { SetBuckets(value); return *this;}
66 
70  inline Exclude& WithBuckets(Aws::Vector<Aws::String>&& value) { SetBuckets(std::move(value)); return *this;}
71 
75  inline Exclude& AddBuckets(const Aws::String& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; }
76 
80  inline Exclude& AddBuckets(Aws::String&& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(std::move(value)); return *this; }
81 
85  inline Exclude& AddBuckets(const char* value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; }
86 
87 
91  inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
92 
96  inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
97 
101  inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
102 
106  inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
107 
111  inline Exclude& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
112 
116  inline Exclude& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
117 
121  inline Exclude& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
122 
126  inline Exclude& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
127 
131  inline Exclude& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
132 
133  private:
134 
135  Aws::Vector<Aws::String> m_buckets;
136  bool m_bucketsHasBeenSet;
137 
138  Aws::Vector<Aws::String> m_regions;
139  bool m_regionsHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace S3Control
144 } // namespace Aws
Aws::S3Control::Model::Exclude::SetBuckets
void SetBuckets(const Aws::Vector< Aws::String > &value)
Definition: Exclude.h:55
Aws::S3Control::Model::Exclude::AddBuckets
Exclude & AddBuckets(const Aws::String &value)
Definition: Exclude.h:75
Aws::S3Control::Model::Exclude::operator=
Exclude & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Exclude::SetRegions
void SetRegions(Aws::Vector< Aws::String > &&value)
Definition: Exclude.h:106
Aws::S3Control::Model::Exclude::Exclude
Exclude()
Aws::S3Control::Model::Exclude
Definition: Exclude.h:33
Aws::S3Control::Model::Exclude::WithBuckets
Exclude & WithBuckets(Aws::Vector< Aws::String > &&value)
Definition: Exclude.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::Exclude::GetBuckets
const Aws::Vector< Aws::String > & GetBuckets() const
Definition: Exclude.h:45
Aws::S3Control::Model::Exclude::AddBuckets
Exclude & AddBuckets(Aws::String &&value)
Definition: Exclude.h:80
AWSVector.h
Aws::S3Control::Model::Exclude::AddRegions
Exclude & AddRegions(Aws::String &&value)
Definition: Exclude.h:126
Aws::S3Control::Model::Exclude::WithRegions
Exclude & WithRegions(const Aws::Vector< Aws::String > &value)
Definition: Exclude.h:111
S3Control_EXPORTS.h
Aws::S3Control::Model::Exclude::WithRegions
Exclude & WithRegions(Aws::Vector< Aws::String > &&value)
Definition: Exclude.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::Exclude::SetRegions
void SetRegions(const Aws::Vector< Aws::String > &value)
Definition: Exclude.h:101
Aws::S3Control::Model::Exclude::GetRegions
const Aws::Vector< Aws::String > & GetRegions() const
Definition: Exclude.h:91
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::Exclude::RegionsHasBeenSet
bool RegionsHasBeenSet() const
Definition: Exclude.h:96
Aws::S3Control::Model::Exclude::WithBuckets
Exclude & WithBuckets(const Aws::Vector< Aws::String > &value)
Definition: Exclude.h:65
Aws::S3Control::Model::Exclude::BucketsHasBeenSet
bool BucketsHasBeenSet() const
Definition: Exclude.h:50
Aws::S3Control::Model::Exclude::AddBuckets
Exclude & AddBuckets(const char *value)
Definition: Exclude.h:85
Aws::S3Control::Model::Exclude::AddRegions
Exclude & AddRegions(const char *value)
Definition: Exclude.h:131
AWSString.h
Aws::S3Control::Model::Exclude::AddRegions
Exclude & AddRegions(const Aws::String &value)
Definition: Exclude.h:121
Aws::S3Control::Model::Exclude::Exclude
Exclude(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Exclude::SetBuckets
void SetBuckets(Aws::Vector< Aws::String > &&value)
Definition: Exclude.h:60
Aws::S3Control::Model::Exclude::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97