AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IpRange.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/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
31 class IpRange
32 {
33 public:
34 AWS_EC2_API IpRange() = default;
35 AWS_EC2_API IpRange(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API IpRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
48 inline const Aws::String& GetDescription() const { return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 template<typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
52 template<typename DescriptionT = Aws::String>
53 IpRange& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_cidrIpHasBeenSet = true; m_cidrIp = std::forward<CidrIpT>(value); }
75 template<typename CidrIpT = Aws::String>
76 IpRange& WithCidrIp(CidrIpT&& value) { SetCidrIp(std::forward<CidrIpT>(value)); return *this;}
78 private:
79
80 Aws::String m_description;
81 bool m_descriptionHasBeenSet = false;
82
83 Aws::String m_cidrIp;
84 bool m_cidrIpHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
AWS_EC2_API IpRange(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(DescriptionT &&value)
Definition IpRange.h:51
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:48
IpRange & WithCidrIp(CidrIpT &&value)
Definition IpRange.h:76
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:53
bool DescriptionHasBeenSet() const
Definition IpRange.h:49
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