AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IpRange.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
27class IpRange {
28 public:
29 AWS_EC2_API IpRange() = default;
30 AWS_EC2_API IpRange(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API IpRange& operator=(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
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 IpRange& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
71 inline const Aws::String& GetCidrIp() const { return m_cidrIp; }
72 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
73 template <typename CidrIpT = Aws::String>
74 void SetCidrIp(CidrIpT&& value) {
75 m_cidrIpHasBeenSet = true;
76 m_cidrIp = std::forward<CidrIpT>(value);
77 }
78 template <typename CidrIpT = Aws::String>
79 IpRange& WithCidrIp(CidrIpT&& value) {
80 SetCidrIp(std::forward<CidrIpT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_description;
86
87 Aws::String m_cidrIp;
88 bool m_descriptionHasBeenSet = false;
89 bool m_cidrIpHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace EC2
94} // namespace Aws
AWS_EC2_API IpRange(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(DescriptionT &&value)
Definition IpRange.h:45
AWS_EC2_API IpRange()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDescription() const
Definition IpRange.h:42
IpRange & WithCidrIp(CidrIpT &&value)
Definition IpRange.h:79
bool CidrIpHasBeenSet() const
Definition IpRange.h:72
AWS_EC2_API IpRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCidrIp(CidrIpT &&value)
Definition IpRange.h:74
IpRange & WithDescription(DescriptionT &&value)
Definition IpRange.h:50
bool DescriptionHasBeenSet() const
Definition IpRange.h:43
const Aws::String & GetCidrIp() const
Definition IpRange.h:71
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream