AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
50 inline ClientVpnEndpointStatusCode GetCode() const { return m_code; }
51 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 m_codeHasBeenSet = true;
54 m_code = value;
55 }
57 SetCode(value);
58 return *this;
59 }
61
63
66 inline const Aws::String& GetMessage() const { return m_message; }
67 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
68 template <typename MessageT = Aws::String>
69 void SetMessage(MessageT&& value) {
70 m_messageHasBeenSet = true;
71 m_message = std::forward<MessageT>(value);
72 }
73 template <typename MessageT = Aws::String>
75 SetMessage(std::forward<MessageT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::String m_message;
83 bool m_codeHasBeenSet = false;
84 bool m_messageHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // 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