AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Ipv6CidrAssociation.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 Ipv6CidrAssociation() = default;
30 AWS_EC2_API Ipv6CidrAssociation(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& GetIpv6Cidr() const { return m_ipv6Cidr; }
41 inline bool Ipv6CidrHasBeenSet() const { return m_ipv6CidrHasBeenSet; }
42 template <typename Ipv6CidrT = Aws::String>
43 void SetIpv6Cidr(Ipv6CidrT&& value) {
44 m_ipv6CidrHasBeenSet = true;
45 m_ipv6Cidr = std::forward<Ipv6CidrT>(value);
46 }
47 template <typename Ipv6CidrT = Aws::String>
48 Ipv6CidrAssociation& WithIpv6Cidr(Ipv6CidrT&& value) {
49 SetIpv6Cidr(std::forward<Ipv6CidrT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAssociatedResource() const { return m_associatedResource; }
59 inline bool AssociatedResourceHasBeenSet() const { return m_associatedResourceHasBeenSet; }
60 template <typename AssociatedResourceT = Aws::String>
61 void SetAssociatedResource(AssociatedResourceT&& value) {
62 m_associatedResourceHasBeenSet = true;
63 m_associatedResource = std::forward<AssociatedResourceT>(value);
64 }
65 template <typename AssociatedResourceT = Aws::String>
66 Ipv6CidrAssociation& WithAssociatedResource(AssociatedResourceT&& value) {
67 SetAssociatedResource(std::forward<AssociatedResourceT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_ipv6Cidr;
73
74 Aws::String m_associatedResource;
75 bool m_ipv6CidrHasBeenSet = false;
76 bool m_associatedResourceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API Ipv6CidrAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Ipv6CidrAssociation & WithIpv6Cidr(Ipv6CidrT &&value)
AWS_EC2_API Ipv6CidrAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAssociatedResource(AssociatedResourceT &&value)
const Aws::String & GetIpv6Cidr() const
Ipv6CidrAssociation & WithAssociatedResource(AssociatedResourceT &&value)
const Aws::String & GetAssociatedResource() const
AWS_EC2_API Ipv6CidrAssociation()=default
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