AWS SDK for C++  1.9.71
AWS SDK for C++
ClientVpnEndpointStatus.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
55  inline const ClientVpnEndpointStatusCode& GetCode() const{ return m_code; }
56 
69  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
70 
83  inline void SetCode(const ClientVpnEndpointStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
84 
97  inline void SetCode(ClientVpnEndpointStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
98 
111  inline ClientVpnEndpointStatus& WithCode(const ClientVpnEndpointStatusCode& value) { SetCode(value); return *this;}
112 
125  inline ClientVpnEndpointStatus& WithCode(ClientVpnEndpointStatusCode&& value) { SetCode(std::move(value)); return *this;}
126 
127 
131  inline const Aws::String& GetMessage() const{ return m_message; }
132 
136  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
137 
141  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
142 
146  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
147 
151  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
152 
156  inline ClientVpnEndpointStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
157 
161  inline ClientVpnEndpointStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
162 
166  inline ClientVpnEndpointStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
167 
168  private:
169 
171  bool m_codeHasBeenSet;
172 
173  Aws::String m_message;
174  bool m_messageHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
Aws::EC2::Model::ClientVpnEndpointStatus::WithCode
ClientVpnEndpointStatus & WithCode(ClientVpnEndpointStatusCode &&value)
Definition: ClientVpnEndpointStatus.h:125
Aws::EC2::Model::ClientVpnEndpointStatusCode
ClientVpnEndpointStatusCode
Definition: ClientVpnEndpointStatusCode.h:17
Aws::EC2::Model::ClientVpnEndpointStatus::GetMessage
const Aws::String & GetMessage() const
Definition: ClientVpnEndpointStatus.h:131
Aws::EC2::Model::ClientVpnEndpointStatus::WithMessage
ClientVpnEndpointStatus & WithMessage(const Aws::String &value)
Definition: ClientVpnEndpointStatus.h:156
Aws::EC2::Model::ClientVpnEndpointStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ClientVpnEndpointStatus.h:69
Aws::EC2::Model::ClientVpnEndpointStatus::WithCode
ClientVpnEndpointStatus & WithCode(const ClientVpnEndpointStatusCode &value)
Definition: ClientVpnEndpointStatus.h:111
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ClientVpnEndpointStatus::SetMessage
void SetMessage(const char *value)
Definition: ClientVpnEndpointStatus.h:151
Aws::EC2::Model::ClientVpnEndpointStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: ClientVpnEndpointStatus.h:141
AWSStreamFwd.h
Aws::EC2::Model::ClientVpnEndpointStatus::SetCode
void SetCode(ClientVpnEndpointStatusCode &&value)
Definition: ClientVpnEndpointStatus.h:97
ClientVpnEndpointStatusCode.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ClientVpnEndpointStatus::ClientVpnEndpointStatus
ClientVpnEndpointStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnEndpointStatus::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::ClientVpnEndpointStatus::WithMessage
ClientVpnEndpointStatus & WithMessage(const char *value)
Definition: ClientVpnEndpointStatus.h:166
Aws::EC2::Model::ClientVpnEndpointStatus::WithMessage
ClientVpnEndpointStatus & WithMessage(Aws::String &&value)
Definition: ClientVpnEndpointStatus.h:161
Aws::EC2::Model::ClientVpnEndpointStatus::ClientVpnEndpointStatus
ClientVpnEndpointStatus()
Aws::EC2::Model::ClientVpnEndpointStatus::SetCode
void SetCode(const ClientVpnEndpointStatusCode &value)
Definition: ClientVpnEndpointStatus.h:83
AWSString.h
Aws::EC2::Model::ClientVpnEndpointStatus
Definition: ClientVpnEndpointStatus.h:33
Aws::EC2::Model::ClientVpnEndpointStatus::operator=
ClientVpnEndpointStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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
Aws::EC2::Model::ClientVpnEndpointStatus::GetCode
const ClientVpnEndpointStatusCode & GetCode() const
Definition: ClientVpnEndpointStatus.h:55
EC2_EXPORTS.h
Aws::EC2::Model::ClientVpnEndpointStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: ClientVpnEndpointStatus.h:146
Aws::EC2::Model::ClientVpnEndpointStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ClientVpnEndpointStatus.h:136
Aws::EC2::Model::ClientVpnEndpointStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const