AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ClientVpnEndpointStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ClientVpnEndpointStatusCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API ClientVpnEndpointStatus() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
53 inline ClientVpnEndpointStatusCode GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
56 m_codeHasBeenSet = true;
57 m_code = value;
58 }
60 SetCode(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetMessage() const { return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 template <typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) {
73 m_messageHasBeenSet = true;
74 m_message = std::forward<MessageT>(value);
75 }
76 template <typename MessageT = Aws::String>
78 SetMessage(std::forward<MessageT>(value));
79 return *this;
80 }
82 private:
84
85 Aws::String m_message;
86 bool m_codeHasBeenSet = false;
87 bool m_messageHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
ClientVpnEndpointStatus & WithCode(ClientVpnEndpointStatusCode value)
ClientVpnEndpointStatus & WithMessage(MessageT &&value)
AWS_EC2_API ClientVpnEndpointStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ClientVpnEndpointStatus()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCode(ClientVpnEndpointStatusCode value)
AWS_EC2_API ClientVpnEndpointStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClientVpnEndpointStatusCode GetCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream