AWS SDK for C++  1.9.68
AWS SDK for C++
FpgaImageState.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
52  inline const FpgaImageStateCode& GetCode() const{ return m_code; }
53 
62  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
63 
72  inline void SetCode(const FpgaImageStateCode& value) { m_codeHasBeenSet = true; m_code = value; }
73 
82  inline void SetCode(FpgaImageStateCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
83 
92  inline FpgaImageState& WithCode(const FpgaImageStateCode& value) { SetCode(value); return *this;}
93 
102  inline FpgaImageState& WithCode(FpgaImageStateCode&& value) { SetCode(std::move(value)); return *this;}
103 
104 
108  inline const Aws::String& GetMessage() const{ return m_message; }
109 
113  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
114 
118  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
119 
123  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
124 
128  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
129 
133  inline FpgaImageState& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
134 
138  inline FpgaImageState& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
139 
143  inline FpgaImageState& WithMessage(const char* value) { SetMessage(value); return *this;}
144 
145  private:
146 
147  FpgaImageStateCode m_code;
148  bool m_codeHasBeenSet;
149 
150  Aws::String m_message;
151  bool m_messageHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace EC2
156 } // namespace Aws
Aws::EC2::Model::FpgaImageState::WithCode
FpgaImageState & WithCode(FpgaImageStateCode &&value)
Definition: FpgaImageState.h:102
Aws::EC2::Model::FpgaImageState::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FpgaImageState::SetMessage
void SetMessage(const Aws::String &value)
Definition: FpgaImageState.h:118
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FpgaImageState::GetCode
const FpgaImageStateCode & GetCode() const
Definition: FpgaImageState.h:52
Aws::EC2::Model::FpgaImageState::GetMessage
const Aws::String & GetMessage() const
Definition: FpgaImageState.h:108
AWSStreamFwd.h
Aws::EC2::Model::FpgaImageState
Definition: FpgaImageState.h:34
Aws::EC2::Model::FpgaImageState::WithMessage
FpgaImageState & WithMessage(const char *value)
Definition: FpgaImageState.h:143
Aws::EC2::Model::FpgaImageState::WithMessage
FpgaImageState & WithMessage(const Aws::String &value)
Definition: FpgaImageState.h:133
Aws::EC2::Model::FpgaImageState::WithMessage
FpgaImageState & WithMessage(Aws::String &&value)
Definition: FpgaImageState.h:138
Aws::EC2::Model::FpgaImageState::FpgaImageState
FpgaImageState(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FpgaImageState::SetMessage
void SetMessage(const char *value)
Definition: FpgaImageState.h:128
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FpgaImageState::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: FpgaImageState.h:62
Aws::EC2::Model::FpgaImageStateCode
FpgaImageStateCode
Definition: FpgaImageStateCode.h:17
Aws::EC2::Model::FpgaImageState::operator=
FpgaImageState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FpgaImageState::SetCode
void SetCode(const FpgaImageStateCode &value)
Definition: FpgaImageState.h:72
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
FpgaImageStateCode.h
AWSString.h
Aws::EC2::Model::FpgaImageState::SetCode
void SetCode(FpgaImageStateCode &&value)
Definition: FpgaImageState.h:82
Aws::EC2::Model::FpgaImageState::WithCode
FpgaImageState & WithCode(const FpgaImageStateCode &value)
Definition: FpgaImageState.h:92
Aws::EC2::Model::FpgaImageState::FpgaImageState
FpgaImageState()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::FpgaImageState::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FpgaImageState::SetMessage
void SetMessage(Aws::String &&value)
Definition: FpgaImageState.h:123
EC2_EXPORTS.h
Aws::EC2::Model::FpgaImageState::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: FpgaImageState.h:113