AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClientVpnRouteStatus.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/ClientVpnRouteStatusCode.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
34 {
35 public:
36 AWS_EC2_API ClientVpnRouteStatus();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const ClientVpnRouteStatusCode& GetCode() const{ return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(const ClientVpnRouteStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
51 inline void SetCode(ClientVpnRouteStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 inline ClientVpnRouteStatus& WithCode(const ClientVpnRouteStatusCode& value) { SetCode(value); return *this;}
53 inline ClientVpnRouteStatus& WithCode(ClientVpnRouteStatusCode&& value) { SetCode(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetMessage() const{ return m_message; }
62 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
63 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
64 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
65 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
66 inline ClientVpnRouteStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
67 inline ClientVpnRouteStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
68 inline ClientVpnRouteStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
70 private:
71
73 bool m_codeHasBeenSet = false;
74
75 Aws::String m_message;
76 bool m_messageHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
ClientVpnRouteStatus & WithCode(ClientVpnRouteStatusCode &&value)
ClientVpnRouteStatus & WithMessage(const char *value)
AWS_EC2_API ClientVpnRouteStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnRouteStatus & WithCode(const ClientVpnRouteStatusCode &value)
void SetCode(const ClientVpnRouteStatusCode &value)
ClientVpnRouteStatus & WithMessage(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCode(ClientVpnRouteStatusCode &&value)
AWS_EC2_API ClientVpnRouteStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnRouteStatus & WithMessage(Aws::String &&value)
void SetMessage(const Aws::String &value)
const ClientVpnRouteStatusCode & GetCode() const
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