AWS SDK for C++  1.9.71
AWS SDK for C++
ClientVpnEndpointAttributeStatus.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 ClientVpnEndpointAttributeStatusCode& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const ClientVpnEndpointAttributeStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(ClientVpnEndpointAttributeStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline ClientVpnEndpointAttributeStatus& WithCode(const ClientVpnEndpointAttributeStatusCode& value) { SetCode(value); return *this;}
68 
72  inline ClientVpnEndpointAttributeStatus& WithCode(ClientVpnEndpointAttributeStatusCode&& value) { SetCode(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetMessage() const{ return m_message; }
79 
83  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 
88  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
89 
93  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
94 
98  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
99 
103  inline ClientVpnEndpointAttributeStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
104 
108  inline ClientVpnEndpointAttributeStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
109 
113  inline ClientVpnEndpointAttributeStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
114 
115  private:
116 
118  bool m_codeHasBeenSet;
119 
120  Aws::String m_message;
121  bool m_messageHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::SetMessage
void SetMessage(const char *value)
Definition: ClientVpnEndpointAttributeStatus.h:98
ClientVpnEndpointAttributeStatusCode.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::WithMessage
ClientVpnEndpointAttributeStatus & WithMessage(const Aws::String &value)
Definition: ClientVpnEndpointAttributeStatus.h:103
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::SetCode
void SetCode(const ClientVpnEndpointAttributeStatusCode &value)
Definition: ClientVpnEndpointAttributeStatus.h:57
Aws::EC2::Model::ClientVpnEndpointAttributeStatusCode
ClientVpnEndpointAttributeStatusCode
Definition: ClientVpnEndpointAttributeStatusCode.h:17
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::ClientVpnEndpointAttributeStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::SetCode
void SetCode(ClientVpnEndpointAttributeStatusCode &&value)
Definition: ClientVpnEndpointAttributeStatus.h:62
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ClientVpnEndpointAttributeStatus.h:83
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::operator=
ClientVpnEndpointAttributeStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::ClientVpnEndpointAttributeStatus
ClientVpnEndpointAttributeStatus()
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::WithCode
ClientVpnEndpointAttributeStatus & WithCode(const ClientVpnEndpointAttributeStatusCode &value)
Definition: ClientVpnEndpointAttributeStatus.h:67
AWSString.h
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::GetMessage
const Aws::String & GetMessage() const
Definition: ClientVpnEndpointAttributeStatus.h:78
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::WithMessage
ClientVpnEndpointAttributeStatus & WithMessage(const char *value)
Definition: ClientVpnEndpointAttributeStatus.h:113
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: ClientVpnEndpointAttributeStatus.h:93
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::WithCode
ClientVpnEndpointAttributeStatus & WithCode(ClientVpnEndpointAttributeStatusCode &&value)
Definition: ClientVpnEndpointAttributeStatus.h:72
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ClientVpnEndpointAttributeStatus.h:52
Aws::EC2::Model::ClientVpnEndpointAttributeStatus
Definition: ClientVpnEndpointAttributeStatus.h:34
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: ClientVpnEndpointAttributeStatus.h:88
EC2_EXPORTS.h
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::ClientVpnEndpointAttributeStatus
ClientVpnEndpointAttributeStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::WithMessage
ClientVpnEndpointAttributeStatus & WithMessage(Aws::String &&value)
Definition: ClientVpnEndpointAttributeStatus.h:108
Aws::EC2::Model::ClientVpnEndpointAttributeStatus::GetCode
const ClientVpnEndpointAttributeStatusCode & GetCode() const
Definition: ClientVpnEndpointAttributeStatus.h:47