AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
51 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
52 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline IpRange& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
54 inline IpRange& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
55 inline IpRange& WithDescription(const char* value) { SetDescription(value); return *this;}
57
59
64 inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
65 inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
66 inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
67 inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
68 inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
69 inline IpRange& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
70 inline IpRange& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
71 inline IpRange& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
73 private:
74
75 Aws::String m_description;
76 bool m_descriptionHasBeenSet = false;
77
78 Aws::String m_cidrIp;
79 bool m_cidrIpHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace EC2
84} // namespace Aws
AWS_EC2_API IpRange(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(const Aws::String &value)
Definition IpRange.h:50
IpRange & WithDescription(const Aws::String &value)
Definition IpRange.h:53
IpRange & WithCidrIp(const Aws::String &value)
Definition IpRange.h:69
IpRange & WithCidrIp(Aws::String &&value)
Definition IpRange.h:70
void SetDescription(const char *value)
Definition IpRange.h:52
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDescription() const
Definition IpRange.h:48
bool CidrIpHasBeenSet() const
Definition IpRange.h:65
void SetCidrIp(const Aws::String &value)
Definition IpRange.h:66
AWS_EC2_API IpRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(Aws::String &&value)
Definition IpRange.h:51
IpRange & WithCidrIp(const char *value)
Definition IpRange.h:71
bool DescriptionHasBeenSet() const
Definition IpRange.h:49
IpRange & WithDescription(const char *value)
Definition IpRange.h:55
IpRange & WithDescription(Aws::String &&value)
Definition IpRange.h:54
const Aws::String & GetCidrIp() const
Definition IpRange.h:64
void SetCidrIp(const char *value)
Definition IpRange.h:68
void SetCidrIp(Aws::String &&value)
Definition IpRange.h:67
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