AWS SDK for C++  1.9.123
AWS SDK for C++
AssociationStatus.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const AssociationStatusCode& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const AssociationStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(AssociationStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline AssociationStatus& WithCode(const AssociationStatusCode& value) { SetCode(value); return *this;}
68 
72  inline AssociationStatus& WithCode(AssociationStatusCode&& value) { SetCode(std::move(value)); return *this;}
73 
74 
79  inline const Aws::String& GetMessage() const{ return m_message; }
80 
85  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
86 
91  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
92 
97  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
98 
103  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
104 
109  inline AssociationStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
110 
115  inline AssociationStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
116 
121  inline AssociationStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
122 
123  private:
124 
125  AssociationStatusCode m_code;
126  bool m_codeHasBeenSet;
127 
128  Aws::String m_message;
129  bool m_messageHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::AssociationStatus::WithCode
AssociationStatus & WithCode(AssociationStatusCode &&value)
Definition: AssociationStatus.h:72
Aws::EC2::Model::AssociationStatus::AssociationStatus
AssociationStatus()
Aws::EC2::Model::AssociationStatus::GetMessage
const Aws::String & GetMessage() const
Definition: AssociationStatus.h:79
Aws::EC2::Model::AssociationStatus::WithMessage
AssociationStatus & WithMessage(const char *value)
Definition: AssociationStatus.h:121
Aws::EC2::Model::AssociationStatus::GetCode
const AssociationStatusCode & GetCode() const
Definition: AssociationStatus.h:47
Aws::EC2::Model::AssociationStatus::SetCode
void SetCode(AssociationStatusCode &&value)
Definition: AssociationStatus.h:62
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociationStatus::WithMessage
AssociationStatus & WithMessage(Aws::String &&value)
Definition: AssociationStatus.h:115
Aws::EC2::Model::AssociationStatus::operator=
AssociationStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::AssociationStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AssociationStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: AssociationStatus.h:85
Aws::EC2::Model::AssociationStatusCode
AssociationStatusCode
Definition: AssociationStatusCode.h:17
AWSString.h
Aws::EC2::Model::AssociationStatus::WithMessage
AssociationStatus & WithMessage(const Aws::String &value)
Definition: AssociationStatus.h:109
Aws::EC2::Model::AssociationStatus::AssociationStatus
AssociationStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AssociationStatus::SetCode
void SetCode(const AssociationStatusCode &value)
Definition: AssociationStatus.h:57
Aws::EC2::Model::AssociationStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: AssociationStatus.h:91
Aws::EC2::Model::AssociationStatus
Definition: AssociationStatus.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociationStatus::SetMessage
void SetMessage(const char *value)
Definition: AssociationStatus.h:103
Aws::EC2::Model::AssociationStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: AssociationStatus.h:97
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AssociationStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: AssociationStatus.h:52
AssociationStatusCode.h
Aws::EC2::Model::AssociationStatus::WithCode
AssociationStatus & WithCode(const AssociationStatusCode &value)
Definition: AssociationStatus.h:67
Aws::EC2::Model::AssociationStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h