AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
50 inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
51 inline PrefixList& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
52 inline PrefixList& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
53 inline PrefixList& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
54 inline PrefixList& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
55 inline PrefixList& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
57
59
62 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
63 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
64 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
65 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
66 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
67 inline PrefixList& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
68 inline PrefixList& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
69 inline PrefixList& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
71
73
76 inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; }
77 inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; }
78 inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; }
79 inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); }
80 inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); }
81 inline PrefixList& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;}
82 inline PrefixList& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;}
83 inline PrefixList& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;}
85 private:
86
88 bool m_cidrsHasBeenSet = false;
89
90 Aws::String m_prefixListId;
91 bool m_prefixListIdHasBeenSet = false;
92
93 Aws::String m_prefixListName;
94 bool m_prefixListNameHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
void SetPrefixListName(const char *value)
Definition PrefixList.h:80
const Aws::Vector< Aws::String > & GetCidrs() const
Definition PrefixList.h:47
PrefixList & WithCidrs(Aws::Vector< Aws::String > &&value)
Definition PrefixList.h:52
AWS_EC2_API PrefixList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PrefixList & WithPrefixListName(const Aws::String &value)
Definition PrefixList.h:81
PrefixList & WithPrefixListId(Aws::String &&value)
Definition PrefixList.h:68
void SetPrefixListId(const Aws::String &value)
Definition PrefixList.h:64
void SetPrefixListName(const Aws::String &value)
Definition PrefixList.h:78
PrefixList & AddCidrs(const char *value)
Definition PrefixList.h:55
PrefixList & AddCidrs(Aws::String &&value)
Definition PrefixList.h:54
PrefixList & WithPrefixListId(const char *value)
Definition PrefixList.h:69
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPrefixListId(Aws::String &&value)
Definition PrefixList.h:65
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 SetPrefixListName(Aws::String &&value)
Definition PrefixList.h:79
PrefixList & WithPrefixListName(Aws::String &&value)
Definition PrefixList.h:82
void SetCidrs(Aws::Vector< Aws::String > &&value)
Definition PrefixList.h:50
PrefixList & WithPrefixListId(const Aws::String &value)
Definition PrefixList.h:67
void SetPrefixListId(const char *value)
Definition PrefixList.h:66
PrefixList & AddCidrs(const Aws::String &value)
Definition PrefixList.h:53
const Aws::String & GetPrefixListName() const
Definition PrefixList.h:76
bool PrefixListIdHasBeenSet() const
Definition PrefixList.h:63
PrefixList & WithPrefixListName(const char *value)
Definition PrefixList.h:83
void SetCidrs(const Aws::Vector< Aws::String > &value)
Definition PrefixList.h:49
const Aws::String & GetPrefixListId() const
Definition PrefixList.h:62
bool PrefixListNameHasBeenSet() const
Definition PrefixList.h:77
PrefixList & WithCidrs(const Aws::Vector< Aws::String > &value)
Definition PrefixList.h:51
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