AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClientVpnEndpointStatus.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/ClientVpnEndpointStatusCode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
56 inline const ClientVpnEndpointStatusCode& GetCode() const{ return m_code; }
57 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
58 inline void SetCode(const ClientVpnEndpointStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
59 inline void SetCode(ClientVpnEndpointStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 inline ClientVpnEndpointStatus& WithCode(const ClientVpnEndpointStatusCode& value) { SetCode(value); return *this;}
61 inline ClientVpnEndpointStatus& WithCode(ClientVpnEndpointStatusCode&& value) { SetCode(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetMessage() const{ return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
71 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
72 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
73 inline ClientVpnEndpointStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
74 inline ClientVpnEndpointStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
75 inline ClientVpnEndpointStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
77 private:
78
80 bool m_codeHasBeenSet = false;
81
82 Aws::String m_message;
83 bool m_messageHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
ClientVpnEndpointStatus & WithCode(const ClientVpnEndpointStatusCode &value)
ClientVpnEndpointStatus & WithMessage(const Aws::String &value)
AWS_EC2_API ClientVpnEndpointStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnEndpointStatus & WithMessage(Aws::String &&value)
ClientVpnEndpointStatus & WithMessage(const char *value)
ClientVpnEndpointStatus & WithCode(ClientVpnEndpointStatusCode &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCode(const ClientVpnEndpointStatusCode &value)
void SetCode(ClientVpnEndpointStatusCode &&value)
const ClientVpnEndpointStatusCode & GetCode() const
AWS_EC2_API ClientVpnEndpointStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream