AWS SDK for C++  1.9.70
AWS SDK for C++
TerminateConnectionStatus.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
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 
47  inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
48 
52  inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
53 
57  inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
58 
62  inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
63 
67  inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
68 
72  inline TerminateConnectionStatus& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
73 
77  inline TerminateConnectionStatus& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
78 
82  inline TerminateConnectionStatus& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
83 
84 
88  inline const ClientVpnConnectionStatus& GetPreviousStatus() const{ return m_previousStatus; }
89 
93  inline bool PreviousStatusHasBeenSet() const { return m_previousStatusHasBeenSet; }
94 
98  inline void SetPreviousStatus(const ClientVpnConnectionStatus& value) { m_previousStatusHasBeenSet = true; m_previousStatus = value; }
99 
103  inline void SetPreviousStatus(ClientVpnConnectionStatus&& value) { m_previousStatusHasBeenSet = true; m_previousStatus = std::move(value); }
104 
108  inline TerminateConnectionStatus& WithPreviousStatus(const ClientVpnConnectionStatus& value) { SetPreviousStatus(value); return *this;}
109 
113  inline TerminateConnectionStatus& WithPreviousStatus(ClientVpnConnectionStatus&& value) { SetPreviousStatus(std::move(value)); return *this;}
114 
115 
119  inline const ClientVpnConnectionStatus& GetCurrentStatus() const{ return m_currentStatus; }
120 
124  inline bool CurrentStatusHasBeenSet() const { return m_currentStatusHasBeenSet; }
125 
129  inline void SetCurrentStatus(const ClientVpnConnectionStatus& value) { m_currentStatusHasBeenSet = true; m_currentStatus = value; }
130 
134  inline void SetCurrentStatus(ClientVpnConnectionStatus&& value) { m_currentStatusHasBeenSet = true; m_currentStatus = std::move(value); }
135 
139  inline TerminateConnectionStatus& WithCurrentStatus(const ClientVpnConnectionStatus& value) { SetCurrentStatus(value); return *this;}
140 
144  inline TerminateConnectionStatus& WithCurrentStatus(ClientVpnConnectionStatus&& value) { SetCurrentStatus(std::move(value)); return *this;}
145 
146  private:
147 
148  Aws::String m_connectionId;
149  bool m_connectionIdHasBeenSet;
150 
151  ClientVpnConnectionStatus m_previousStatus;
152  bool m_previousStatusHasBeenSet;
153 
154  ClientVpnConnectionStatus m_currentStatus;
155  bool m_currentStatusHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace EC2
160 } // namespace Aws
Aws::EC2::Model::TerminateConnectionStatus::SetConnectionId
void SetConnectionId(Aws::String &&value)
Definition: TerminateConnectionStatus.h:62
Aws::EC2::Model::TerminateConnectionStatus::WithCurrentStatus
TerminateConnectionStatus & WithCurrentStatus(const ClientVpnConnectionStatus &value)
Definition: TerminateConnectionStatus.h:139
Aws::EC2::Model::TerminateConnectionStatus::SetConnectionId
void SetConnectionId(const Aws::String &value)
Definition: TerminateConnectionStatus.h:57
Aws::EC2::Model::TerminateConnectionStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::TerminateConnectionStatus::SetCurrentStatus
void SetCurrentStatus(ClientVpnConnectionStatus &&value)
Definition: TerminateConnectionStatus.h:134
Aws::EC2::Model::TerminateConnectionStatus::SetPreviousStatus
void SetPreviousStatus(ClientVpnConnectionStatus &&value)
Definition: TerminateConnectionStatus.h:103
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TerminateConnectionStatus::WithConnectionId
TerminateConnectionStatus & WithConnectionId(Aws::String &&value)
Definition: TerminateConnectionStatus.h:77
Aws::EC2::Model::TerminateConnectionStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TerminateConnectionStatus::SetPreviousStatus
void SetPreviousStatus(const ClientVpnConnectionStatus &value)
Definition: TerminateConnectionStatus.h:98
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TerminateConnectionStatus::WithConnectionId
TerminateConnectionStatus & WithConnectionId(const char *value)
Definition: TerminateConnectionStatus.h:82
Aws::EC2::Model::TerminateConnectionStatus
Definition: TerminateConnectionStatus.h:34
Aws::EC2::Model::TerminateConnectionStatus::GetCurrentStatus
const ClientVpnConnectionStatus & GetCurrentStatus() const
Definition: TerminateConnectionStatus.h:119
Aws::EC2::Model::TerminateConnectionStatus::ConnectionIdHasBeenSet
bool ConnectionIdHasBeenSet() const
Definition: TerminateConnectionStatus.h:52
Aws::EC2::Model::TerminateConnectionStatus::TerminateConnectionStatus
TerminateConnectionStatus()
AWSString.h
Aws::EC2::Model::TerminateConnectionStatus::operator=
TerminateConnectionStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TerminateConnectionStatus::SetConnectionId
void SetConnectionId(const char *value)
Definition: TerminateConnectionStatus.h:67
Aws::EC2::Model::TerminateConnectionStatus::GetPreviousStatus
const ClientVpnConnectionStatus & GetPreviousStatus() const
Definition: TerminateConnectionStatus.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TerminateConnectionStatus::WithPreviousStatus
TerminateConnectionStatus & WithPreviousStatus(const ClientVpnConnectionStatus &value)
Definition: TerminateConnectionStatus.h:108
Aws::EC2::Model::ClientVpnConnectionStatus
Definition: ClientVpnConnectionStatus.h:33
Aws::EC2::Model::TerminateConnectionStatus::SetCurrentStatus
void SetCurrentStatus(const ClientVpnConnectionStatus &value)
Definition: TerminateConnectionStatus.h:129
Aws::EC2::Model::TerminateConnectionStatus::WithPreviousStatus
TerminateConnectionStatus & WithPreviousStatus(ClientVpnConnectionStatus &&value)
Definition: TerminateConnectionStatus.h:113
Aws::EC2::Model::TerminateConnectionStatus::WithConnectionId
TerminateConnectionStatus & WithConnectionId(const Aws::String &value)
Definition: TerminateConnectionStatus.h:72
Aws::EC2::Model::TerminateConnectionStatus::CurrentStatusHasBeenSet
bool CurrentStatusHasBeenSet() const
Definition: TerminateConnectionStatus.h:124
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::TerminateConnectionStatus::WithCurrentStatus
TerminateConnectionStatus & WithCurrentStatus(ClientVpnConnectionStatus &&value)
Definition: TerminateConnectionStatus.h:144
ClientVpnConnectionStatus.h
Aws::EC2::Model::TerminateConnectionStatus::PreviousStatusHasBeenSet
bool PreviousStatusHasBeenSet() const
Definition: TerminateConnectionStatus.h:93
EC2_EXPORTS.h
Aws::EC2::Model::TerminateConnectionStatus::TerminateConnectionStatus
TerminateConnectionStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TerminateConnectionStatus::GetConnectionId
const Aws::String & GetConnectionId() const
Definition: TerminateConnectionStatus.h:47