AWS SDK for C++  1.9.126
AWS SDK for C++
VpnStaticRoute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <aws/ec2/model/VpnState.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
49 
54  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
55 
60  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
61 
66  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
67 
72  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
73 
78  inline VpnStaticRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
79 
84  inline VpnStaticRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
85 
90  inline VpnStaticRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
91 
92 
96  inline const VpnStaticRouteSource& GetSource() const{ return m_source; }
97 
101  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
102 
106  inline void SetSource(const VpnStaticRouteSource& value) { m_sourceHasBeenSet = true; m_source = value; }
107 
111  inline void SetSource(VpnStaticRouteSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
112 
116  inline VpnStaticRoute& WithSource(const VpnStaticRouteSource& value) { SetSource(value); return *this;}
117 
121  inline VpnStaticRoute& WithSource(VpnStaticRouteSource&& value) { SetSource(std::move(value)); return *this;}
122 
123 
127  inline const VpnState& GetState() const{ return m_state; }
128 
132  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
133 
137  inline void SetState(const VpnState& value) { m_stateHasBeenSet = true; m_state = value; }
138 
142  inline void SetState(VpnState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
143 
147  inline VpnStaticRoute& WithState(const VpnState& value) { SetState(value); return *this;}
148 
152  inline VpnStaticRoute& WithState(VpnState&& value) { SetState(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_destinationCidrBlock;
157  bool m_destinationCidrBlockHasBeenSet;
158 
159  VpnStaticRouteSource m_source;
160  bool m_sourceHasBeenSet;
161 
162  VpnState m_state;
163  bool m_stateHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace EC2
168 } // namespace Aws
Aws::EC2::Model::VpnStaticRoute::SetSource
void SetSource(const VpnStaticRouteSource &value)
Definition: VpnStaticRoute.h:106
Aws::EC2::Model::VpnStaticRoute::WithSource
VpnStaticRoute & WithSource(VpnStaticRouteSource &&value)
Definition: VpnStaticRoute.h:121
Aws::EC2::Model::VpnStaticRoute::StateHasBeenSet
bool StateHasBeenSet() const
Definition: VpnStaticRoute.h:132
Aws::EC2::Model::VpnStaticRoute::SetSource
void SetSource(VpnStaticRouteSource &&value)
Definition: VpnStaticRoute.h:111
Aws::EC2::Model::VpnStaticRouteSource
VpnStaticRouteSource
Definition: VpnStaticRouteSource.h:17
Aws::EC2::Model::VpnStaticRoute::GetSource
const VpnStaticRouteSource & GetSource() const
Definition: VpnStaticRoute.h:96
Aws::EC2::Model::VpnStaticRoute::WithDestinationCidrBlock
VpnStaticRoute & WithDestinationCidrBlock(const Aws::String &value)
Definition: VpnStaticRoute.h:78
VpnState.h
Aws::EC2::Model::VpnStaticRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: VpnStaticRoute.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::VpnStaticRoute::VpnStaticRoute
VpnStaticRoute()
VpnStaticRouteSource.h
Aws::EC2::Model::VpnStaticRoute::VpnStaticRoute
VpnStaticRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VpnStaticRoute::WithState
VpnStaticRoute & WithState(VpnState &&value)
Definition: VpnStaticRoute.h:152
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VpnStaticRoute::WithDestinationCidrBlock
VpnStaticRoute & WithDestinationCidrBlock(Aws::String &&value)
Definition: VpnStaticRoute.h:84
Aws::EC2::Model::VpnStaticRoute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::EC2::Model::VpnStaticRoute::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: VpnStaticRoute.h:54
Aws::EC2::Model::VpnStaticRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: VpnStaticRoute.h:60
Aws::EC2::Model::VpnStaticRoute::WithSource
VpnStaticRoute & WithSource(const VpnStaticRouteSource &value)
Definition: VpnStaticRoute.h:116
Aws::EC2::Model::VpnState
VpnState
Definition: VpnState.h:17
Aws::EC2::Model::VpnStaticRoute::SetState
void SetState(const VpnState &value)
Definition: VpnStaticRoute.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VpnStaticRoute::GetState
const VpnState & GetState() const
Definition: VpnStaticRoute.h:127
Aws::EC2::Model::VpnStaticRoute::SetState
void SetState(VpnState &&value)
Definition: VpnStaticRoute.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::VpnStaticRoute::WithDestinationCidrBlock
VpnStaticRoute & WithDestinationCidrBlock(const char *value)
Definition: VpnStaticRoute.h:90
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VpnStaticRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: VpnStaticRoute.h:66
Aws::EC2::Model::VpnStaticRoute::WithState
VpnStaticRoute & WithState(const VpnState &value)
Definition: VpnStaticRoute.h:147
Aws::EC2::Model::VpnStaticRoute::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: VpnStaticRoute.h:48
Aws::EC2::Model::VpnStaticRoute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::VpnStaticRoute::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: VpnStaticRoute.h:101
Aws::EC2::Model::VpnStaticRoute
Definition: VpnStaticRoute.h:34
Aws::EC2::Model::VpnStaticRoute::operator=
VpnStaticRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)