AWS SDK for C++  0.12.9
AWS SDK for C++
VpnStaticRoute.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
20 #include <aws/ec2/model/VpnState.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  VpnStaticRoute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
53  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
54 
59  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
60 
65  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
66 
71  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
72 
77  inline VpnStaticRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
78 
83  inline VpnStaticRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(value); return *this;}
84 
89  inline VpnStaticRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
90 
94  inline const VpnStaticRouteSource& GetSource() const{ return m_source; }
95 
99  inline void SetSource(const VpnStaticRouteSource& value) { m_sourceHasBeenSet = true; m_source = value; }
100 
104  inline void SetSource(VpnStaticRouteSource&& value) { m_sourceHasBeenSet = true; m_source = value; }
105 
109  inline VpnStaticRoute& WithSource(const VpnStaticRouteSource& value) { SetSource(value); return *this;}
110 
114  inline VpnStaticRoute& WithSource(VpnStaticRouteSource&& value) { SetSource(value); return *this;}
115 
119  inline const VpnState& GetState() const{ return m_state; }
120 
124  inline void SetState(const VpnState& value) { m_stateHasBeenSet = true; m_state = value; }
125 
129  inline void SetState(VpnState&& value) { m_stateHasBeenSet = true; m_state = value; }
130 
134  inline VpnStaticRoute& WithState(const VpnState& value) { SetState(value); return *this;}
135 
139  inline VpnStaticRoute& WithState(VpnState&& value) { SetState(value); return *this;}
140 
141  private:
142  Aws::String m_destinationCidrBlock;
143  bool m_destinationCidrBlockHasBeenSet;
144  VpnStaticRouteSource m_source;
145  bool m_sourceHasBeenSet;
146  VpnState m_state;
147  bool m_stateHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace EC2
152 } // namespace Aws
VpnStaticRoute & WithDestinationCidrBlock(const char *value)
VpnStaticRoute & WithSource(VpnStaticRouteSource &&value)
void SetDestinationCidrBlock(Aws::String &&value)
void SetDestinationCidrBlock(const char *value)
VpnStaticRoute & WithSource(const VpnStaticRouteSource &value)
const Aws::String & GetDestinationCidrBlock() const
void SetState(const VpnState &value)
void SetSource(const VpnStaticRouteSource &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
VpnStaticRoute & WithState(const VpnState &value)
VpnStaticRoute & WithState(VpnState &&value)
void SetDestinationCidrBlock(const Aws::String &value)
VpnStaticRoute & WithDestinationCidrBlock(Aws::String &&value)
VpnStaticRoute & WithDestinationCidrBlock(const Aws::String &value)
void SetSource(VpnStaticRouteSource &&value)
const VpnStaticRouteSource & GetSource() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const VpnState & GetState() const
void SetState(VpnState &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
JSON (JavaScript Object Notation).