AWS SDK for C++  1.9.65
AWS SDK for C++
BundleTaskError.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 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetCode() const{ return m_code; }
46 
50  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
51 
55  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
56 
60  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61 
65  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
66 
70  inline BundleTaskError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
71 
75  inline BundleTaskError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
76 
80  inline BundleTaskError& WithCode(const char* value) { SetCode(value); return *this;}
81 
82 
86  inline const Aws::String& GetMessage() const{ return m_message; }
87 
91  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 
96  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
97 
101  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
102 
106  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
107 
111  inline BundleTaskError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
112 
116  inline BundleTaskError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
117 
121  inline BundleTaskError& WithMessage(const char* value) { SetMessage(value); return *this;}
122 
123  private:
124 
125  Aws::String m_code;
126  bool m_codeHasBeenSet;
127 
128  Aws::String m_message;
129  bool m_messageHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::BundleTaskError::WithCode
BundleTaskError & WithCode(const char *value)
Definition: BundleTaskError.h:80
Aws::EC2::Model::BundleTaskError::SetMessage
void SetMessage(const Aws::String &value)
Definition: BundleTaskError.h:96
Aws::EC2::Model::BundleTaskError::WithMessage
BundleTaskError & WithMessage(const Aws::String &value)
Definition: BundleTaskError.h:111
Aws::EC2::Model::BundleTaskError::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: BundleTaskError.h:50
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::BundleTaskError::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::BundleTaskError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::BundleTaskError::WithMessage
BundleTaskError & WithMessage(const char *value)
Definition: BundleTaskError.h:121
Aws::EC2::Model::BundleTaskError::BundleTaskError
BundleTaskError(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::BundleTaskError::WithMessage
BundleTaskError & WithMessage(Aws::String &&value)
Definition: BundleTaskError.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::BundleTaskError::SetCode
void SetCode(const Aws::String &value)
Definition: BundleTaskError.h:55
Aws::EC2::Model::BundleTaskError::operator=
BundleTaskError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::BundleTaskError::SetMessage
void SetMessage(Aws::String &&value)
Definition: BundleTaskError.h:101
Aws::EC2::Model::BundleTaskError::SetCode
void SetCode(const char *value)
Definition: BundleTaskError.h:65
Aws::EC2::Model::BundleTaskError::SetMessage
void SetMessage(const char *value)
Definition: BundleTaskError.h:106
Aws::EC2::Model::BundleTaskError::BundleTaskError
BundleTaskError()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::BundleTaskError
Definition: BundleTaskError.h:32
Aws::EC2::Model::BundleTaskError::WithCode
BundleTaskError & WithCode(Aws::String &&value)
Definition: BundleTaskError.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::BundleTaskError::GetCode
const Aws::String & GetCode() const
Definition: BundleTaskError.h:45
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::BundleTaskError::GetMessage
const Aws::String & GetMessage() const
Definition: BundleTaskError.h:86
Aws::EC2::Model::BundleTaskError::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: BundleTaskError.h:91
EC2_EXPORTS.h
Aws::EC2::Model::BundleTaskError::SetCode
void SetCode(Aws::String &&value)
Definition: BundleTaskError.h:60
Aws::EC2::Model::BundleTaskError::WithCode
BundleTaskError & WithCode(const Aws::String &value)
Definition: BundleTaskError.h:70