AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PrefixList.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API PrefixList() = default;
36 AWS_EC2_API PrefixList(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API PrefixList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetCidrs() const { return m_cidrs; }
48 inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
49 template<typename CidrsT = Aws::Vector<Aws::String>>
50 void SetCidrs(CidrsT&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::forward<CidrsT>(value); }
51 template<typename CidrsT = Aws::Vector<Aws::String>>
52 PrefixList& WithCidrs(CidrsT&& value) { SetCidrs(std::forward<CidrsT>(value)); return *this;}
53 template<typename CidrsT = Aws::String>
54 PrefixList& AddCidrs(CidrsT&& value) { m_cidrsHasBeenSet = true; m_cidrs.emplace_back(std::forward<CidrsT>(value)); return *this; }
56
58
61 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
62 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
63 template<typename PrefixListIdT = Aws::String>
64 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::forward<PrefixListIdT>(value); }
65 template<typename PrefixListIdT = Aws::String>
66 PrefixList& WithPrefixListId(PrefixListIdT&& value) { SetPrefixListId(std::forward<PrefixListIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetPrefixListName() const { return m_prefixListName; }
74 inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
75 template<typename PrefixListNameT = Aws::String>
76 void SetPrefixListName(PrefixListNameT&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::forward<PrefixListNameT>(value); }
77 template<typename PrefixListNameT = Aws::String>
78 PrefixList& WithPrefixListName(PrefixListNameT&& value) { SetPrefixListName(std::forward<PrefixListNameT>(value)); return *this;}
80 private:
81
83 bool m_cidrsHasBeenSet = false;
84
85 Aws::String m_prefixListId;
86 bool m_prefixListIdHasBeenSet = false;
87
88 Aws::String m_prefixListName;
89 bool m_prefixListNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace EC2
94} // namespace Aws
const Aws::Vector< Aws::String > & GetCidrs() const
Definition PrefixList.h:47
void SetCidrs(CidrsT &&value)
Definition PrefixList.h:50
AWS_EC2_API PrefixList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API PrefixList()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API PrefixList(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrefixListId(PrefixListIdT &&value)
Definition PrefixList.h:64
void SetPrefixListName(PrefixListNameT &&value)
Definition PrefixList.h:76
const Aws::String & GetPrefixListName() const
Definition PrefixList.h:73
PrefixList & WithCidrs(CidrsT &&value)
Definition PrefixList.h:52
bool PrefixListIdHasBeenSet() const
Definition PrefixList.h:62
PrefixList & AddCidrs(CidrsT &&value)
Definition PrefixList.h:54
PrefixList & WithPrefixListId(PrefixListIdT &&value)
Definition PrefixList.h:66
const Aws::String & GetPrefixListId() const
Definition PrefixList.h:61
PrefixList & WithPrefixListName(PrefixListNameT &&value)
Definition PrefixList.h:78
bool PrefixListNameHasBeenSet() const
Definition PrefixList.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream