AWS SDK for C++  1.8.154
AWS SDK for C++
Include.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 Include& WithBuckets(const Aws::Vector<Aws::String>& value) { SetBuckets(value); return *this;}
66 
70  inline Include& WithBuckets(Aws::Vector<Aws::String>&& value) { SetBuckets(std::move(value)); return *this;}
71 
75  inline Include& AddBuckets(const Aws::String& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; }
76 
80  inline Include& AddBuckets(Aws::String&& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(std::move(value)); return *this; }
81 
85  inline Include& 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 Include& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
112 
116  inline Include& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
117 
121  inline Include& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
122 
126  inline Include& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
127 
131  inline Include& 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::Include::AddRegions
Include & AddRegions(const Aws::String &value)
Definition: Include.h:121
Aws::S3Control::Model::Include::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::Include::AddBuckets
Include & AddBuckets(const char *value)
Definition: Include.h:85
Aws::S3Control::Model::Include::SetRegions
void SetRegions(const Aws::Vector< Aws::String > &value)
Definition: Include.h:101
Aws::S3Control::Model::Include::BucketsHasBeenSet
bool BucketsHasBeenSet() const
Definition: Include.h:50
Aws::S3Control::Model::Include::Include
Include(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Include::WithRegions
Include & WithRegions(Aws::Vector< Aws::String > &&value)
Definition: Include.h:116
Aws::S3Control::Model::Include::SetRegions
void SetRegions(Aws::Vector< Aws::String > &&value)
Definition: Include.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::Include::GetBuckets
const Aws::Vector< Aws::String > & GetBuckets() const
Definition: Include.h:45
AWSVector.h
S3Control_EXPORTS.h
Aws::S3Control::Model::Include::operator=
Include & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Include::Include
Include()
Aws::S3Control::Model::Include::RegionsHasBeenSet
bool RegionsHasBeenSet() const
Definition: Include.h:96
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::Include::GetRegions
const Aws::Vector< Aws::String > & GetRegions() const
Definition: Include.h:91
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
AWSString.h
Aws::S3Control::Model::Include
Definition: Include.h:33
Aws::S3Control::Model::Include::SetBuckets
void SetBuckets(const Aws::Vector< Aws::String > &value)
Definition: Include.h:55
Aws::S3Control::Model::Include::AddBuckets
Include & AddBuckets(Aws::String &&value)
Definition: Include.h:80
Aws::S3Control::Model::Include::SetBuckets
void SetBuckets(Aws::Vector< Aws::String > &&value)
Definition: Include.h:60
Aws::S3Control::Model::Include::WithRegions
Include & WithRegions(const Aws::Vector< Aws::String > &value)
Definition: Include.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::Include::AddRegions
Include & AddRegions(Aws::String &&value)
Definition: Include.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::Include::AddRegions
Include & AddRegions(const char *value)
Definition: Include.h:131
Aws::S3Control::Model::Include::WithBuckets
Include & WithBuckets(const Aws::Vector< Aws::String > &value)
Definition: Include.h:65
Aws::S3Control::Model::Include::WithBuckets
Include & WithBuckets(Aws::Vector< Aws::String > &&value)
Definition: Include.h:70
Aws::S3Control::Model::Include::AddBuckets
Include & AddBuckets(const Aws::String &value)
Definition: Include.h:75