AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidationError.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_EC2_API ValidationError();
37 AWS_EC2_API ValidationError(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
51 inline const Aws::String& GetCode() const{ return m_code; }
52 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
54 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
55 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
56 inline ValidationError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
57 inline ValidationError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
58 inline ValidationError& WithCode(const char* value) { SetCode(value); return *this;}
60
62
68 inline const Aws::String& GetMessage() const{ return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
71 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
72 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
73 inline ValidationError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
74 inline ValidationError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
75 inline ValidationError& WithMessage(const char* value) { SetMessage(value); return *this;}
77 private:
78
79 Aws::String m_code;
80 bool m_codeHasBeenSet = false;
81
82 Aws::String m_message;
83 bool m_messageHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ValidationError & WithMessage(Aws::String &&value)
const Aws::String & GetMessage() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCode(const char *value)
ValidationError & WithMessage(const Aws::String &value)
AWS_EC2_API ValidationError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(const char *value)
ValidationError & WithMessage(const char *value)
void SetCode(const Aws::String &value)
const Aws::String & GetCode() const
ValidationError & WithCode(const Aws::String &value)
ValidationError & WithCode(const char *value)
void SetCode(Aws::String &&value)
void SetMessage(Aws::String &&value)
ValidationError & WithCode(Aws::String &&value)
AWS_EC2_API ValidationError(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream