AWS SDK for C++  1.9.123
AWS SDK for C++
ClientVpnRouteStatus.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 ClientVpnRouteStatusCode& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const ClientVpnRouteStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(ClientVpnRouteStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline ClientVpnRouteStatus& WithCode(const ClientVpnRouteStatusCode& value) { SetCode(value); return *this;}
68 
72  inline ClientVpnRouteStatus& WithCode(ClientVpnRouteStatusCode&& value) { SetCode(std::move(value)); return *this;}
73 
74 
79  inline const Aws::String& GetMessage() const{ return m_message; }
80 
85  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
86 
91  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
92 
97  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
98 
103  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
104 
109  inline ClientVpnRouteStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
110 
115  inline ClientVpnRouteStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
121  inline ClientVpnRouteStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
122 
123  private:
124 
126  bool m_codeHasBeenSet;
127 
128  Aws::String m_message;
129  bool m_messageHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::ClientVpnRouteStatus::WithCode
ClientVpnRouteStatus & WithCode(ClientVpnRouteStatusCode &&value)
Definition: ClientVpnRouteStatus.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ClientVpnRouteStatusCode
ClientVpnRouteStatusCode
Definition: ClientVpnRouteStatusCode.h:17
Aws::EC2::Model::ClientVpnRouteStatus::SetCode
void SetCode(const ClientVpnRouteStatusCode &value)
Definition: ClientVpnRouteStatus.h:57
Aws::EC2::Model::ClientVpnRouteStatus::SetMessage
void SetMessage(const char *value)
Definition: ClientVpnRouteStatus.h:103
ClientVpnRouteStatusCode.h
Aws::EC2::Model::ClientVpnRouteStatus::ClientVpnRouteStatus
ClientVpnRouteStatus()
AWSStreamFwd.h
Aws::EC2::Model::ClientVpnRouteStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: ClientVpnRouteStatus.h:91
Aws::EC2::Model::ClientVpnRouteStatus::SetCode
void SetCode(ClientVpnRouteStatusCode &&value)
Definition: ClientVpnRouteStatus.h:62
Aws::EC2::Model::ClientVpnRouteStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: ClientVpnRouteStatus.h:97
Aws::EC2::Model::ClientVpnRouteStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ClientVpnRouteStatus::WithMessage
ClientVpnRouteStatus & WithMessage(const char *value)
Definition: ClientVpnRouteStatus.h:121
Aws::EC2::Model::ClientVpnRouteStatus::ClientVpnRouteStatus
ClientVpnRouteStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnRouteStatus::GetMessage
const Aws::String & GetMessage() const
Definition: ClientVpnRouteStatus.h:79
Aws::EC2::Model::ClientVpnRouteStatus::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::ClientVpnRouteStatus
Definition: ClientVpnRouteStatus.h:34
Aws::EC2::Model::ClientVpnRouteStatus::operator=
ClientVpnRouteStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnRouteStatus::WithCode
ClientVpnRouteStatus & WithCode(const ClientVpnRouteStatusCode &value)
Definition: ClientVpnRouteStatus.h:67
AWSString.h
Aws::EC2::Model::ClientVpnRouteStatus::WithMessage
ClientVpnRouteStatus & WithMessage(Aws::String &&value)
Definition: ClientVpnRouteStatus.h:115
Aws::EC2::Model::ClientVpnRouteStatus::WithMessage
ClientVpnRouteStatus & WithMessage(const Aws::String &value)
Definition: ClientVpnRouteStatus.h:109
Aws::EC2::Model::ClientVpnRouteStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ClientVpnRouteStatus.h:52
Aws
Definition: AccessManagementClient.h:15
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
EC2_EXPORTS.h
Aws::EC2::Model::ClientVpnRouteStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ClientVpnRouteStatus.h:85
Aws::EC2::Model::ClientVpnRouteStatus::GetCode
const ClientVpnRouteStatusCode & GetCode() const
Definition: ClientVpnRouteStatus.h:47