AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrefixListEntry.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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API PrefixListEntry() = default;
30 AWS_EC2_API PrefixListEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetCidr() const { return m_cidr; }
41 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
42 template <typename CidrT = Aws::String>
43 void SetCidr(CidrT&& value) {
44 m_cidrHasBeenSet = true;
45 m_cidr = std::forward<CidrT>(value);
46 }
47 template <typename CidrT = Aws::String>
48 PrefixListEntry& WithCidr(CidrT&& value) {
49 SetCidr(std::forward<CidrT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 PrefixListEntry& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_cidr;
73
74 Aws::String m_description;
75 bool m_cidrHasBeenSet = false;
76 bool m_descriptionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API PrefixListEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PrefixListEntry & WithDescription(DescriptionT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetCidr() const
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
const Aws::String & GetDescription() const
AWS_EC2_API PrefixListEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCidr(CidrT &&value)
PrefixListEntry & WithCidr(CidrT &&value)
void SetDescription(DescriptionT &&value)
bool CidrHasBeenSet() const
AWS_EC2_API PrefixListEntry()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream