AWS SDK for C++  1.9.67
AWS SDK for C++
ValidationError.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 
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 
50  inline const Aws::String& GetCode() const{ return m_code; }
51 
58  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 
66  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
67 
74  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
75 
82  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
83 
90  inline ValidationError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
91 
98  inline ValidationError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
99 
106  inline ValidationError& WithCode(const char* value) { SetCode(value); return *this;}
107 
108 
115  inline const Aws::String& GetMessage() const{ return m_message; }
116 
123  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
124 
131  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
132 
139  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
140 
147  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
148 
155  inline ValidationError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
156 
163  inline ValidationError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
164 
171  inline ValidationError& WithMessage(const char* value) { SetMessage(value); return *this;}
172 
173  private:
174 
175  Aws::String m_code;
176  bool m_codeHasBeenSet;
177 
178  Aws::String m_message;
179  bool m_messageHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace EC2
184 } // namespace Aws
Aws::EC2::Model::ValidationError::SetMessage
void SetMessage(Aws::String &&value)
Definition: ValidationError.h:139
Aws::EC2::Model::ValidationError::WithMessage
ValidationError & WithMessage(const char *value)
Definition: ValidationError.h:171
Aws::EC2::Model::ValidationError::ValidationError
ValidationError()
Aws::EC2::Model::ValidationError::WithCode
ValidationError & WithCode(const char *value)
Definition: ValidationError.h:106
Aws::EC2::Model::ValidationError::SetMessage
void SetMessage(const char *value)
Definition: ValidationError.h:147
Aws::EC2::Model::ValidationError::WithCode
ValidationError & WithCode(Aws::String &&value)
Definition: ValidationError.h:98
Aws::EC2::Model::ValidationError::WithMessage
ValidationError & WithMessage(const Aws::String &value)
Definition: ValidationError.h:155
Aws::EC2::Model::ValidationError::SetMessage
void SetMessage(const Aws::String &value)
Definition: ValidationError.h:131
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ValidationError::WithMessage
ValidationError & WithMessage(Aws::String &&value)
Definition: ValidationError.h:163
Aws::EC2::Model::ValidationError::SetCode
void SetCode(const char *value)
Definition: ValidationError.h:82
AWSStreamFwd.h
Aws::EC2::Model::ValidationError::SetCode
void SetCode(Aws::String &&value)
Definition: ValidationError.h:74
Aws::EC2::Model::ValidationError::GetMessage
const Aws::String & GetMessage() const
Definition: ValidationError.h:115
Aws::EC2::Model::ValidationError::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::EC2::Model::ValidationError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ValidationError::WithCode
ValidationError & WithCode(const Aws::String &value)
Definition: ValidationError.h:90
Aws::EC2::Model::ValidationError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ValidationError.h:58
Aws::EC2::Model::ValidationError::operator=
ValidationError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::ValidationError::GetCode
const Aws::String & GetCode() const
Definition: ValidationError.h:50
Aws::EC2::Model::ValidationError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ValidationError.h:123
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ValidationError
Definition: ValidationError.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
EC2_EXPORTS.h
Aws::EC2::Model::ValidationError::SetCode
void SetCode(const Aws::String &value)
Definition: ValidationError.h:66
Aws::EC2::Model::ValidationError::ValidationError
ValidationError(const Aws::Utils::Xml::XmlNode &xmlNode)