AWS SDK for C++  1.9.109
AWS SDK for C++
Ipv6CidrAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetIpv6Cidr() const{ return m_ipv6Cidr; }
46 
50  inline bool Ipv6CidrHasBeenSet() const { return m_ipv6CidrHasBeenSet; }
51 
55  inline void SetIpv6Cidr(const Aws::String& value) { m_ipv6CidrHasBeenSet = true; m_ipv6Cidr = value; }
56 
60  inline void SetIpv6Cidr(Aws::String&& value) { m_ipv6CidrHasBeenSet = true; m_ipv6Cidr = std::move(value); }
61 
65  inline void SetIpv6Cidr(const char* value) { m_ipv6CidrHasBeenSet = true; m_ipv6Cidr.assign(value); }
66 
70  inline Ipv6CidrAssociation& WithIpv6Cidr(const Aws::String& value) { SetIpv6Cidr(value); return *this;}
71 
75  inline Ipv6CidrAssociation& WithIpv6Cidr(Aws::String&& value) { SetIpv6Cidr(std::move(value)); return *this;}
76 
80  inline Ipv6CidrAssociation& WithIpv6Cidr(const char* value) { SetIpv6Cidr(value); return *this;}
81 
82 
86  inline const Aws::String& GetAssociatedResource() const{ return m_associatedResource; }
87 
91  inline bool AssociatedResourceHasBeenSet() const { return m_associatedResourceHasBeenSet; }
92 
96  inline void SetAssociatedResource(const Aws::String& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = value; }
97 
101  inline void SetAssociatedResource(Aws::String&& value) { m_associatedResourceHasBeenSet = true; m_associatedResource = std::move(value); }
102 
106  inline void SetAssociatedResource(const char* value) { m_associatedResourceHasBeenSet = true; m_associatedResource.assign(value); }
107 
111  inline Ipv6CidrAssociation& WithAssociatedResource(const Aws::String& value) { SetAssociatedResource(value); return *this;}
112 
116  inline Ipv6CidrAssociation& WithAssociatedResource(Aws::String&& value) { SetAssociatedResource(std::move(value)); return *this;}
117 
121  inline Ipv6CidrAssociation& WithAssociatedResource(const char* value) { SetAssociatedResource(value); return *this;}
122 
123  private:
124 
125  Aws::String m_ipv6Cidr;
126  bool m_ipv6CidrHasBeenSet;
127 
128  Aws::String m_associatedResource;
129  bool m_associatedResourceHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::Ipv6CidrAssociation::WithIpv6Cidr
Ipv6CidrAssociation & WithIpv6Cidr(const char *value)
Definition: Ipv6CidrAssociation.h:80
Aws::EC2::Model::Ipv6CidrAssociation::WithAssociatedResource
Ipv6CidrAssociation & WithAssociatedResource(const char *value)
Definition: Ipv6CidrAssociation.h:121
Aws::EC2::Model::Ipv6CidrAssociation::WithIpv6Cidr
Ipv6CidrAssociation & WithIpv6Cidr(Aws::String &&value)
Definition: Ipv6CidrAssociation.h:75
Aws::EC2::Model::Ipv6CidrAssociation::GetAssociatedResource
const Aws::String & GetAssociatedResource() const
Definition: Ipv6CidrAssociation.h:86
Aws::EC2::Model::Ipv6CidrAssociation::SetIpv6Cidr
void SetIpv6Cidr(const char *value)
Definition: Ipv6CidrAssociation.h:65
Aws::EC2::Model::Ipv6CidrAssociation::Ipv6CidrAssociation
Ipv6CidrAssociation()
Aws::EC2::Model::Ipv6CidrAssociation::SetAssociatedResource
void SetAssociatedResource(const Aws::String &value)
Definition: Ipv6CidrAssociation.h:96
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::Ipv6CidrAssociation::operator=
Ipv6CidrAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::Ipv6CidrAssociation::WithAssociatedResource
Ipv6CidrAssociation & WithAssociatedResource(const Aws::String &value)
Definition: Ipv6CidrAssociation.h:111
Aws::EC2::Model::Ipv6CidrAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Ipv6CidrAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Ipv6CidrAssociation
Definition: Ipv6CidrAssociation.h:32
Aws::EC2::Model::Ipv6CidrAssociation::SetAssociatedResource
void SetAssociatedResource(Aws::String &&value)
Definition: Ipv6CidrAssociation.h:101
AWSString.h
Aws::EC2::Model::Ipv6CidrAssociation::SetIpv6Cidr
void SetIpv6Cidr(const Aws::String &value)
Definition: Ipv6CidrAssociation.h:55
Aws::EC2::Model::Ipv6CidrAssociation::Ipv6CidrAssociation
Ipv6CidrAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Ipv6CidrAssociation::SetAssociatedResource
void SetAssociatedResource(const char *value)
Definition: Ipv6CidrAssociation.h:106
Aws::EC2::Model::Ipv6CidrAssociation::WithAssociatedResource
Ipv6CidrAssociation & WithAssociatedResource(Aws::String &&value)
Definition: Ipv6CidrAssociation.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::Ipv6CidrAssociation::SetIpv6Cidr
void SetIpv6Cidr(Aws::String &&value)
Definition: Ipv6CidrAssociation.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::Ipv6CidrAssociation::WithIpv6Cidr
Ipv6CidrAssociation & WithIpv6Cidr(const Aws::String &value)
Definition: Ipv6CidrAssociation.h:70
Aws::EC2::Model::Ipv6CidrAssociation::AssociatedResourceHasBeenSet
bool AssociatedResourceHasBeenSet() const
Definition: Ipv6CidrAssociation.h:91
EC2_EXPORTS.h
Aws::EC2::Model::Ipv6CidrAssociation::Ipv6CidrHasBeenSet
bool Ipv6CidrHasBeenSet() const
Definition: Ipv6CidrAssociation.h:50
Aws::EC2::Model::Ipv6CidrAssociation::GetIpv6Cidr
const Aws::String & GetIpv6Cidr() const
Definition: Ipv6CidrAssociation.h:45