AWS SDK for C++  1.9.153
AWS SDK for C++
PrefixList.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::Vector<Aws::String>& GetCidrs() const{ return m_cidrs; }
47 
51  inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
52 
56  inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
57 
61  inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
62 
66  inline PrefixList& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
67 
71  inline PrefixList& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
72 
76  inline PrefixList& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
77 
81  inline PrefixList& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
82 
86  inline PrefixList& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
87 
88 
92  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
93 
97  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
98 
102  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
103 
107  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
108 
112  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
113 
117  inline PrefixList& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
118 
122  inline PrefixList& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
123 
127  inline PrefixList& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
128 
129 
133  inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; }
134 
138  inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
139 
143  inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; }
144 
148  inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); }
149 
153  inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); }
154 
158  inline PrefixList& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;}
159 
163  inline PrefixList& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;}
164 
168  inline PrefixList& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;}
169 
170  private:
171 
172  Aws::Vector<Aws::String> m_cidrs;
173  bool m_cidrsHasBeenSet;
174 
175  Aws::String m_prefixListId;
176  bool m_prefixListIdHasBeenSet;
177 
178  Aws::String m_prefixListName;
179  bool m_prefixListNameHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace EC2
184 } // namespace Aws
Aws::EC2::Model::PrefixList::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: PrefixList.h:97
Aws::EC2::Model::PrefixList::WithCidrs
PrefixList & WithCidrs(const Aws::Vector< Aws::String > &value)
Definition: PrefixList.h:66
Aws::EC2::Model::PrefixList::WithPrefixListName
PrefixList & WithPrefixListName(Aws::String &&value)
Definition: PrefixList.h:163
Aws::EC2::Model::PrefixList::GetPrefixListName
const Aws::String & GetPrefixListName() const
Definition: PrefixList.h:133
Aws::EC2::Model::PrefixList::SetPrefixListName
void SetPrefixListName(Aws::String &&value)
Definition: PrefixList.h:148
Aws::EC2::Model::PrefixList::WithPrefixListId
PrefixList & WithPrefixListId(const Aws::String &value)
Definition: PrefixList.h:117
Aws::EC2::Model::PrefixList::WithPrefixListName
PrefixList & WithPrefixListName(const char *value)
Definition: PrefixList.h:168
Aws::EC2::Model::PrefixList::CidrsHasBeenSet
bool CidrsHasBeenSet() const
Definition: PrefixList.h:51
Aws::EC2::Model::PrefixList::WithPrefixListId
PrefixList & WithPrefixListId(const char *value)
Definition: PrefixList.h:127
Aws::EC2::Model::PrefixList::SetCidrs
void SetCidrs(const Aws::Vector< Aws::String > &value)
Definition: PrefixList.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PrefixList::AddCidrs
PrefixList & AddCidrs(const Aws::String &value)
Definition: PrefixList.h:76
Aws::EC2::Model::PrefixList::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: PrefixList.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::PrefixList::AddCidrs
PrefixList & AddCidrs(const char *value)
Definition: PrefixList.h:86
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PrefixList::operator=
PrefixList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PrefixList::SetPrefixListName
void SetPrefixListName(const Aws::String &value)
Definition: PrefixList.h:143
Aws::EC2::Model::PrefixList::WithPrefixListName
PrefixList & WithPrefixListName(const Aws::String &value)
Definition: PrefixList.h:158
Aws::EC2::Model::PrefixList::PrefixListNameHasBeenSet
bool PrefixListNameHasBeenSet() const
Definition: PrefixList.h:138
Aws::EC2::Model::PrefixList::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::EC2::Model::PrefixList::SetPrefixListName
void SetPrefixListName(const char *value)
Definition: PrefixList.h:153
Aws::EC2::Model::PrefixList::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PrefixList::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: PrefixList.h:92
Aws::EC2::Model::PrefixList
Definition: PrefixList.h:33
Aws::EC2::Model::PrefixList::PrefixList
PrefixList()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PrefixList::AddCidrs
PrefixList & AddCidrs(Aws::String &&value)
Definition: PrefixList.h:81
Aws::EC2::Model::PrefixList::GetCidrs
const Aws::Vector< Aws::String > & GetCidrs() const
Definition: PrefixList.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::PrefixList::WithCidrs
PrefixList & WithCidrs(Aws::Vector< Aws::String > &&value)
Definition: PrefixList.h:71
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PrefixList::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: PrefixList.h:102
Aws::EC2::Model::PrefixList::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: PrefixList.h:107
Aws::EC2::Model::PrefixList::PrefixList
PrefixList(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PrefixList::WithPrefixListId
PrefixList & WithPrefixListId(Aws::String &&value)
Definition: PrefixList.h:122
EC2_EXPORTS.h
Aws::EC2::Model::PrefixList::SetCidrs
void SetCidrs(Aws::Vector< Aws::String > &&value)
Definition: PrefixList.h:61