AWS SDK for C++  1.9.129
AWS SDK for C++
UnsuccessfulItemError.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetCode() const{ return m_code; }
49 
53  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
54 
58  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
59 
63  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
64 
68  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
69 
73  inline UnsuccessfulItemError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
74 
78  inline UnsuccessfulItemError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
79 
83  inline UnsuccessfulItemError& WithCode(const char* value) { SetCode(value); return *this;}
84 
85 
89  inline const Aws::String& GetMessage() const{ return m_message; }
90 
94  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
95 
99  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
100 
104  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
105 
109  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
110 
114  inline UnsuccessfulItemError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
115 
119  inline UnsuccessfulItemError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
120 
124  inline UnsuccessfulItemError& WithMessage(const char* value) { SetMessage(value); return *this;}
125 
126  private:
127 
128  Aws::String m_code;
129  bool m_codeHasBeenSet;
130 
131  Aws::String m_message;
132  bool m_messageHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace EC2
137 } // namespace Aws
Aws::EC2::Model::UnsuccessfulItemError::UnsuccessfulItemError
UnsuccessfulItemError(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::UnsuccessfulItemError::SetCode
void SetCode(Aws::String &&value)
Definition: UnsuccessfulItemError.h:63
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::UnsuccessfulItemError::WithMessage
UnsuccessfulItemError & WithMessage(const Aws::String &value)
Definition: UnsuccessfulItemError.h:114
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::UnsuccessfulItemError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: UnsuccessfulItemError.h:53
Aws::EC2::Model::UnsuccessfulItemError::WithCode
UnsuccessfulItemError & WithCode(const char *value)
Definition: UnsuccessfulItemError.h:83
Aws::EC2::Model::UnsuccessfulItemError::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::UnsuccessfulItemError::SetMessage
void SetMessage(const char *value)
Definition: UnsuccessfulItemError.h:109
Aws::EC2::Model::UnsuccessfulItemError::SetCode
void SetCode(const char *value)
Definition: UnsuccessfulItemError.h:68
Aws::EC2::Model::UnsuccessfulItemError::WithCode
UnsuccessfulItemError & WithCode(Aws::String &&value)
Definition: UnsuccessfulItemError.h:78
Aws::EC2::Model::UnsuccessfulItemError::UnsuccessfulItemError
UnsuccessfulItemError()
Aws::EC2::Model::UnsuccessfulItemError::operator=
UnsuccessfulItemError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::UnsuccessfulItemError::SetMessage
void SetMessage(const Aws::String &value)
Definition: UnsuccessfulItemError.h:99
Aws::EC2::Model::UnsuccessfulItemError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: UnsuccessfulItemError.h:94
Aws::EC2::Model::UnsuccessfulItemError::WithMessage
UnsuccessfulItemError & WithMessage(Aws::String &&value)
Definition: UnsuccessfulItemError.h:119
Aws::EC2::Model::UnsuccessfulItemError::GetCode
const Aws::String & GetCode() const
Definition: UnsuccessfulItemError.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::UnsuccessfulItemError::SetMessage
void SetMessage(Aws::String &&value)
Definition: UnsuccessfulItemError.h:104
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::UnsuccessfulItemError::WithCode
UnsuccessfulItemError & WithCode(const Aws::String &value)
Definition: UnsuccessfulItemError.h:73
Aws::EC2::Model::UnsuccessfulItemError::SetCode
void SetCode(const Aws::String &value)
Definition: UnsuccessfulItemError.h:58
Aws::EC2::Model::UnsuccessfulItemError::GetMessage
const Aws::String & GetMessage() const
Definition: UnsuccessfulItemError.h:89
EC2_EXPORTS.h
Aws::EC2::Model::UnsuccessfulItemError::WithMessage
UnsuccessfulItemError & WithMessage(const char *value)
Definition: UnsuccessfulItemError.h:124
Aws::EC2::Model::UnsuccessfulItemError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::UnsuccessfulItemError
Definition: UnsuccessfulItemError.h:35