AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FpgaImageState.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#include <aws/ec2/model/FpgaImageStateCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API FpgaImageState() = default;
32 AWS_EC2_API FpgaImageState(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
47 inline FpgaImageStateCode GetCode() const { return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(FpgaImageStateCode value) {
50 m_codeHasBeenSet = true;
51 m_code = value;
52 }
54 SetCode(value);
55 return *this;
56 }
58
60
63 inline const Aws::String& GetMessage() const { return m_message; }
64 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
65 template <typename MessageT = Aws::String>
66 void SetMessage(MessageT&& value) {
67 m_messageHasBeenSet = true;
68 m_message = std::forward<MessageT>(value);
69 }
70 template <typename MessageT = Aws::String>
71 FpgaImageState& WithMessage(MessageT&& value) {
72 SetMessage(std::forward<MessageT>(value));
73 return *this;
74 }
76 private:
78
79 Aws::String m_message;
80 bool m_codeHasBeenSet = false;
81 bool m_messageHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace EC2
86} // namespace Aws
FpgaImageState & WithCode(FpgaImageStateCode value)
FpgaImageStateCode GetCode() const
void SetCode(FpgaImageStateCode value)
AWS_EC2_API FpgaImageState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API FpgaImageState()=default
AWS_EC2_API FpgaImageState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FpgaImageState & WithMessage(MessageT &&value)
const Aws::String & GetMessage() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetMessage(MessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream