AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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