AWS SDK for C++  1.9.65
AWS SDK for C++
DeleteFleetError.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const DeleteFleetErrorCode& GetCode() const{ return m_code; }
47 
51  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 
56  inline void SetCode(const DeleteFleetErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
57 
61  inline void SetCode(DeleteFleetErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
62 
66  inline DeleteFleetError& WithCode(const DeleteFleetErrorCode& value) { SetCode(value); return *this;}
67 
71  inline DeleteFleetError& WithCode(DeleteFleetErrorCode&& value) { SetCode(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetMessage() const{ return m_message; }
78 
82  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 
87  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
88 
92  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
93 
97  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
98 
102  inline DeleteFleetError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
103 
107  inline DeleteFleetError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
108 
112  inline DeleteFleetError& WithMessage(const char* value) { SetMessage(value); return *this;}
113 
114  private:
115 
116  DeleteFleetErrorCode m_code;
117  bool m_codeHasBeenSet;
118 
119  Aws::String m_message;
120  bool m_messageHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::DeleteFleetError
Definition: DeleteFleetError.h:33
Aws::EC2::Model::DeleteFleetError::WithCode
DeleteFleetError & WithCode(DeleteFleetErrorCode &&value)
Definition: DeleteFleetError.h:71
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteFleetErrorCode
DeleteFleetErrorCode
Definition: DeleteFleetErrorCode.h:17
Aws::EC2::Model::DeleteFleetError::DeleteFleetError
DeleteFleetError(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::DeleteFleetError::WithMessage
DeleteFleetError & WithMessage(const Aws::String &value)
Definition: DeleteFleetError.h:102
Aws::EC2::Model::DeleteFleetError::GetCode
const DeleteFleetErrorCode & GetCode() const
Definition: DeleteFleetError.h:46
Aws::EC2::Model::DeleteFleetError::SetMessage
void SetMessage(const char *value)
Definition: DeleteFleetError.h:97
Aws::EC2::Model::DeleteFleetError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DeleteFleetError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: DeleteFleetError.h:51
Aws::EC2::Model::DeleteFleetError::SetMessage
void SetMessage(const Aws::String &value)
Definition: DeleteFleetError.h:87
Aws::EC2::Model::DeleteFleetError::WithCode
DeleteFleetError & WithCode(const DeleteFleetErrorCode &value)
Definition: DeleteFleetError.h:66
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DeleteFleetError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: DeleteFleetError.h:82
Aws::EC2::Model::DeleteFleetError::SetCode
void SetCode(DeleteFleetErrorCode &&value)
Definition: DeleteFleetError.h:61
Aws::EC2::Model::DeleteFleetError::DeleteFleetError
DeleteFleetError()
AWSString.h
Aws::EC2::Model::DeleteFleetError::WithMessage
DeleteFleetError & WithMessage(const char *value)
Definition: DeleteFleetError.h:112
Aws::EC2::Model::DeleteFleetError::SetCode
void SetCode(const DeleteFleetErrorCode &value)
Definition: DeleteFleetError.h:56
Aws::EC2::Model::DeleteFleetError::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DeleteFleetError::operator=
DeleteFleetError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DeleteFleetError::GetMessage
const Aws::String & GetMessage() const
Definition: DeleteFleetError.h:77
Aws::EC2::Model::DeleteFleetError::WithMessage
DeleteFleetError & WithMessage(Aws::String &&value)
Definition: DeleteFleetError.h:107
Aws
Definition: AccessManagementClient.h:15
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::DeleteFleetError::SetMessage
void SetMessage(Aws::String &&value)
Definition: DeleteFleetError.h:92
DeleteFleetErrorCode.h
EC2_EXPORTS.h