AWS SDK for C++  1.9.71
AWS SDK for C++
StateReason.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 StateReason& WithCode(const Aws::String& value) { SetCode(value); return *this;}
71 
75  inline StateReason& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
76 
80  inline StateReason& WithCode(const char* value) { SetCode(value); return *this;}
81 
82 
110  inline const Aws::String& GetMessage() const{ return m_message; }
111 
139  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
140 
168  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
169 
197  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
198 
226  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
227 
255  inline StateReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
256 
284  inline StateReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
285 
313  inline StateReason& WithMessage(const char* value) { SetMessage(value); return *this;}
314 
315  private:
316 
317  Aws::String m_code;
318  bool m_codeHasBeenSet;
319 
320  Aws::String m_message;
321  bool m_messageHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace EC2
326 } // namespace Aws
Aws::EC2::Model::StateReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: StateReason.h:139
Aws::EC2::Model::StateReason::WithCode
StateReason & WithCode(const Aws::String &value)
Definition: StateReason.h:70
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::StateReason::WithMessage
StateReason & WithMessage(Aws::String &&value)
Definition: StateReason.h:284
Aws::EC2::Model::StateReason::WithCode
StateReason & WithCode(Aws::String &&value)
Definition: StateReason.h:75
AWSStreamFwd.h
Aws::EC2::Model::StateReason::StateReason
StateReason(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::StateReason::StateReason
StateReason()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::StateReason::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: StateReason.h:50
Aws::EC2::Model::StateReason::operator=
StateReason & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::StateReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: StateReason.h:197
Aws::EC2::Model::StateReason::WithCode
StateReason & WithCode(const char *value)
Definition: StateReason.h:80
AWSString.h
Aws::EC2::Model::StateReason::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::StateReason::GetMessage
const Aws::String & GetMessage() const
Definition: StateReason.h:110
Aws::EC2::Model::StateReason::SetCode
void SetCode(const Aws::String &value)
Definition: StateReason.h:55
Aws::EC2::Model::StateReason::SetCode
void SetCode(const char *value)
Definition: StateReason.h:65
Aws::EC2::Model::StateReason::SetMessage
void SetMessage(const char *value)
Definition: StateReason.h:226
Aws::EC2::Model::StateReason::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::StateReason::WithMessage
StateReason & WithMessage(const char *value)
Definition: StateReason.h:313
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::StateReason::WithMessage
StateReason & WithMessage(const Aws::String &value)
Definition: StateReason.h:255
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::StateReason
Definition: StateReason.h:32
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::StateReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: StateReason.h:168
Aws::EC2::Model::StateReason::SetCode
void SetCode(Aws::String &&value)
Definition: StateReason.h:60
EC2_EXPORTS.h
Aws::EC2::Model::StateReason::GetCode
const Aws::String & GetCode() const
Definition: StateReason.h:45