AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CoipCidr.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
28class CoipCidr {
29 public:
30 AWS_EC2_API CoipCidr() = default;
31 AWS_EC2_API CoipCidr(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API CoipCidr& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetCidr() const { return m_cidr; }
42 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
43 template <typename CidrT = Aws::String>
44 void SetCidr(CidrT&& value) {
45 m_cidrHasBeenSet = true;
46 m_cidr = std::forward<CidrT>(value);
47 }
48 template <typename CidrT = Aws::String>
49 CoipCidr& WithCidr(CidrT&& value) {
50 SetCidr(std::forward<CidrT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCoipPoolId() const { return m_coipPoolId; }
60 inline bool CoipPoolIdHasBeenSet() const { return m_coipPoolIdHasBeenSet; }
61 template <typename CoipPoolIdT = Aws::String>
62 void SetCoipPoolId(CoipPoolIdT&& value) {
63 m_coipPoolIdHasBeenSet = true;
64 m_coipPoolId = std::forward<CoipPoolIdT>(value);
65 }
66 template <typename CoipPoolIdT = Aws::String>
67 CoipCidr& WithCoipPoolId(CoipPoolIdT&& value) {
68 SetCoipPoolId(std::forward<CoipPoolIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
78 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
79 template <typename LocalGatewayRouteTableIdT = Aws::String>
80 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
81 m_localGatewayRouteTableIdHasBeenSet = true;
82 m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value);
83 }
84 template <typename LocalGatewayRouteTableIdT = Aws::String>
85 CoipCidr& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
86 SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_cidr;
92
93 Aws::String m_coipPoolId;
94
95 Aws::String m_localGatewayRouteTableId;
96 bool m_cidrHasBeenSet = false;
97 bool m_coipPoolIdHasBeenSet = false;
98 bool m_localGatewayRouteTableIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CoipCidr & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition CoipCidr.h:78
bool CidrHasBeenSet() const
Definition CoipCidr.h:42
CoipCidr & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
Definition CoipCidr.h:85
CoipCidr & WithCoipPoolId(CoipPoolIdT &&value)
Definition CoipCidr.h:67
CoipCidr & WithCidr(CidrT &&value)
Definition CoipCidr.h:49
const Aws::String & GetCoipPoolId() const
Definition CoipCidr.h:59
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
Definition CoipCidr.h:80
const Aws::String & GetLocalGatewayRouteTableId() const
Definition CoipCidr.h:77
void SetCoipPoolId(CoipPoolIdT &&value)
Definition CoipCidr.h:62
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API CoipCidr(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCidr() const
Definition CoipCidr.h:41
void SetCidr(CidrT &&value)
Definition CoipCidr.h:44
AWS_EC2_API CoipCidr()=default
bool CoipPoolIdHasBeenSet() const
Definition CoipCidr.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream