AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BundleTaskError.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
28 public:
29 AWS_EC2_API BundleTaskError() = default;
30 AWS_EC2_API BundleTaskError(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetCode() const { return m_code; }
41 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
42 template <typename CodeT = Aws::String>
43 void SetCode(CodeT&& value) {
44 m_codeHasBeenSet = true;
45 m_code = std::forward<CodeT>(value);
46 }
47 template <typename CodeT = Aws::String>
48 BundleTaskError& WithCode(CodeT&& value) {
49 SetCode(std::forward<CodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template <typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) {
62 m_messageHasBeenSet = true;
63 m_message = std::forward<MessageT>(value);
64 }
65 template <typename MessageT = Aws::String>
66 BundleTaskError& WithMessage(MessageT&& value) {
67 SetMessage(std::forward<MessageT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_code;
73
74 Aws::String m_message;
75 bool m_codeHasBeenSet = false;
76 bool m_messageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
void SetMessage(MessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BundleTaskError & WithCode(CodeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BundleTaskError & WithMessage(MessageT &&value)
AWS_EC2_API BundleTaskError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API BundleTaskError()=default
const Aws::String & GetMessage() const
AWS_EC2_API BundleTaskError(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream