AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociationStatus.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/AssociationStatusCode.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 AssociationStatus() = default;
37 AWS_EC2_API AssociationStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
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 AssociationStatusCode GetCode() const { return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(AssociationStatusCode value) { m_codeHasBeenSet = true; m_code = value; }
51 inline AssociationStatus& WithCode(AssociationStatusCode value) { SetCode(value); return *this;}
53
55
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
63 template<typename MessageT = Aws::String>
64 AssociationStatus& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
66 private:
67
69 bool m_codeHasBeenSet = false;
70
71 Aws::String m_message;
72 bool m_messageHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace EC2
77} // namespace Aws
AWS_EC2_API AssociationStatus()=default
void SetCode(AssociationStatusCode value)
AssociationStatus & WithMessage(MessageT &&value)
AWS_EC2_API AssociationStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API AssociationStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AssociationStatus & WithCode(AssociationStatusCode value)
AssociationStatusCode GetCode() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream