AWS SDK for C++  1.9.68
AWS SDK for C++
DeleteQueuedReservedInstancesError.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 DeleteQueuedReservedInstancesErrorCode& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const DeleteQueuedReservedInstancesErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(DeleteQueuedReservedInstancesErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline DeleteQueuedReservedInstancesError& WithCode(const DeleteQueuedReservedInstancesErrorCode& value) { SetCode(value); return *this;}
68 
72  inline DeleteQueuedReservedInstancesError& WithCode(DeleteQueuedReservedInstancesErrorCode&& value) { SetCode(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetMessage() const{ return m_message; }
79 
83  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 
88  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
89 
93  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
94 
98  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
99 
103  inline DeleteQueuedReservedInstancesError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
104 
108  inline DeleteQueuedReservedInstancesError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
109 
113  inline DeleteQueuedReservedInstancesError& WithMessage(const char* value) { SetMessage(value); return *this;}
114 
115  private:
116 
118  bool m_codeHasBeenSet;
119 
120  Aws::String m_message;
121  bool m_messageHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::DeleteQueuedReservedInstancesError::DeleteQueuedReservedInstancesError
DeleteQueuedReservedInstancesError()
Aws::EC2::Model::DeleteQueuedReservedInstancesError::GetMessage
const Aws::String & GetMessage() const
Definition: DeleteQueuedReservedInstancesError.h:78
Aws::EC2::Model::DeleteQueuedReservedInstancesError::SetMessage
void SetMessage(const char *value)
Definition: DeleteQueuedReservedInstancesError.h:98
Aws::EC2::Model::DeleteQueuedReservedInstancesError::GetCode
const DeleteQueuedReservedInstancesErrorCode & GetCode() const
Definition: DeleteQueuedReservedInstancesError.h:47
Aws::EC2::Model::DeleteQueuedReservedInstancesError::SetCode
void SetCode(const DeleteQueuedReservedInstancesErrorCode &value)
Definition: DeleteQueuedReservedInstancesError.h:57
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::DeleteQueuedReservedInstancesError::SetCode
void SetCode(DeleteQueuedReservedInstancesErrorCode &&value)
Definition: DeleteQueuedReservedInstancesError.h:62
Aws::EC2::Model::DeleteQueuedReservedInstancesError::DeleteQueuedReservedInstancesError
DeleteQueuedReservedInstancesError(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DeleteQueuedReservedInstancesError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
DeleteQueuedReservedInstancesErrorCode.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DeleteQueuedReservedInstancesError::SetMessage
void SetMessage(Aws::String &&value)
Definition: DeleteQueuedReservedInstancesError.h:93
Aws::EC2::Model::DeleteQueuedReservedInstancesError::WithMessage
DeleteQueuedReservedInstancesError & WithMessage(const char *value)
Definition: DeleteQueuedReservedInstancesError.h:113
Aws::EC2::Model::DeleteQueuedReservedInstancesError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: DeleteQueuedReservedInstancesError.h:52
Aws::EC2::Model::DeleteQueuedReservedInstancesError::WithMessage
DeleteQueuedReservedInstancesError & WithMessage(Aws::String &&value)
Definition: DeleteQueuedReservedInstancesError.h:108
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::DeleteQueuedReservedInstancesError::WithMessage
DeleteQueuedReservedInstancesError & WithMessage(const Aws::String &value)
Definition: DeleteQueuedReservedInstancesError.h:103
Aws::EC2::Model::DeleteQueuedReservedInstancesError::WithCode
DeleteQueuedReservedInstancesError & WithCode(const DeleteQueuedReservedInstancesErrorCode &value)
Definition: DeleteQueuedReservedInstancesError.h:67
Aws::EC2::Model::DeleteQueuedReservedInstancesError::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DeleteQueuedReservedInstancesErrorCode
DeleteQueuedReservedInstancesErrorCode
Definition: DeleteQueuedReservedInstancesErrorCode.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteQueuedReservedInstancesError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: DeleteQueuedReservedInstancesError.h:83
Aws::EC2::Model::DeleteQueuedReservedInstancesError::SetMessage
void SetMessage(const Aws::String &value)
Definition: DeleteQueuedReservedInstancesError.h:88
Aws::EC2::Model::DeleteQueuedReservedInstancesError
Definition: DeleteQueuedReservedInstancesError.h:34
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::DeleteQueuedReservedInstancesError::WithCode
DeleteQueuedReservedInstancesError & WithCode(DeleteQueuedReservedInstancesErrorCode &&value)
Definition: DeleteQueuedReservedInstancesError.h:72
EC2_EXPORTS.h
Aws::EC2::Model::DeleteQueuedReservedInstancesError::operator=
DeleteQueuedReservedInstancesError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)