AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PeeringAttachmentStatus.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
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
47 inline const Aws::String& GetCode() const{ return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
50 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
51 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
52 inline PeeringAttachmentStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
53 inline PeeringAttachmentStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
54 inline PeeringAttachmentStatus& WithCode(const char* value) { SetCode(value); return *this;}
56
58
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 PeeringAttachmentStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
67 inline PeeringAttachmentStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
68 inline PeeringAttachmentStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
70 private:
71
72 Aws::String m_code;
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
PeeringAttachmentStatus & WithMessage(const char *value)
PeeringAttachmentStatus & WithCode(const Aws::String &value)
PeeringAttachmentStatus & WithMessage(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PeeringAttachmentStatus & WithCode(const char *value)
AWS_EC2_API PeeringAttachmentStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
PeeringAttachmentStatus & WithCode(Aws::String &&value)
AWS_EC2_API PeeringAttachmentStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PeeringAttachmentStatus & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream