AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrefixList.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API PrefixList() = default;
31 AWS_EC2_API PrefixList(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API PrefixList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::Vector<Aws::String>& GetCidrs() const { return m_cidrs; }
42 inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
43 template <typename CidrsT = Aws::Vector<Aws::String>>
44 void SetCidrs(CidrsT&& value) {
45 m_cidrsHasBeenSet = true;
46 m_cidrs = std::forward<CidrsT>(value);
47 }
48 template <typename CidrsT = Aws::Vector<Aws::String>>
49 PrefixList& WithCidrs(CidrsT&& value) {
50 SetCidrs(std::forward<CidrsT>(value));
51 return *this;
52 }
53 template <typename CidrsT = Aws::String>
54 PrefixList& AddCidrs(CidrsT&& value) {
55 m_cidrsHasBeenSet = true;
56 m_cidrs.emplace_back(std::forward<CidrsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
66 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
67 template <typename PrefixListIdT = Aws::String>
68 void SetPrefixListId(PrefixListIdT&& value) {
69 m_prefixListIdHasBeenSet = true;
70 m_prefixListId = std::forward<PrefixListIdT>(value);
71 }
72 template <typename PrefixListIdT = Aws::String>
73 PrefixList& WithPrefixListId(PrefixListIdT&& value) {
74 SetPrefixListId(std::forward<PrefixListIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetPrefixListName() const { return m_prefixListName; }
84 inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
85 template <typename PrefixListNameT = Aws::String>
86 void SetPrefixListName(PrefixListNameT&& value) {
87 m_prefixListNameHasBeenSet = true;
88 m_prefixListName = std::forward<PrefixListNameT>(value);
89 }
90 template <typename PrefixListNameT = Aws::String>
91 PrefixList& WithPrefixListName(PrefixListNameT&& value) {
92 SetPrefixListName(std::forward<PrefixListNameT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::String m_prefixListId;
100
101 Aws::String m_prefixListName;
102 bool m_cidrsHasBeenSet = false;
103 bool m_prefixListIdHasBeenSet = false;
104 bool m_prefixListNameHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
const Aws::Vector< Aws::String > & GetCidrs() const
Definition PrefixList.h:41
void SetCidrs(CidrsT &&value)
Definition PrefixList.h:44
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:68
void SetPrefixListName(PrefixListNameT &&value)
Definition PrefixList.h:86
const Aws::String & GetPrefixListName() const
Definition PrefixList.h:83
PrefixList & WithCidrs(CidrsT &&value)
Definition PrefixList.h:49
bool PrefixListIdHasBeenSet() const
Definition PrefixList.h:66
PrefixList & AddCidrs(CidrsT &&value)
Definition PrefixList.h:54
PrefixList & WithPrefixListId(PrefixListIdT &&value)
Definition PrefixList.h:73
const Aws::String & GetPrefixListId() const
Definition PrefixList.h:65
PrefixList & WithPrefixListName(PrefixListNameT &&value)
Definition PrefixList.h:91
bool PrefixListNameHasBeenSet() const
Definition PrefixList.h:84
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