AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PeeringAttachmentStatus.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API PeeringAttachmentStatus() = 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
41 inline const Aws::String& GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 template <typename CodeT = Aws::String>
44 void SetCode(CodeT&& value) {
45 m_codeHasBeenSet = true;
46 m_code = std::forward<CodeT>(value);
47 }
48 template <typename CodeT = Aws::String>
50 SetCode(std::forward<CodeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMessage() const { return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 template <typename MessageT = Aws::String>
62 void SetMessage(MessageT&& value) {
63 m_messageHasBeenSet = true;
64 m_message = std::forward<MessageT>(value);
65 }
66 template <typename MessageT = Aws::String>
68 SetMessage(std::forward<MessageT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_code;
74
75 Aws::String m_message;
76 bool m_codeHasBeenSet = false;
77 bool m_messageHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API PeeringAttachmentStatus()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PeeringAttachmentStatus & WithMessage(MessageT &&value)
AWS_EC2_API PeeringAttachmentStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
PeeringAttachmentStatus & WithCode(CodeT &&value)
AWS_EC2_API PeeringAttachmentStatus & 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