AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BlobAttributeValue.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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
23 public:
24 AWS_EC2_API BlobAttributeValue() = default;
25 AWS_EC2_API BlobAttributeValue(const Aws::Utils::Xml::XmlNode& xmlNode);
27
28 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
29 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
30
32
33 inline const Aws::Utils::ByteBuffer& GetValue() const { return m_value; }
34 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
35 template <typename ValueT = Aws::Utils::ByteBuffer>
36 void SetValue(ValueT&& value) {
37 m_valueHasBeenSet = true;
38 m_value = std::forward<ValueT>(value);
39 }
40 template <typename ValueT = Aws::Utils::ByteBuffer>
41 BlobAttributeValue& WithValue(ValueT&& value) {
42 SetValue(std::forward<ValueT>(value));
43 return *this;
44 }
46 private:
47 Aws::Utils::ByteBuffer m_value{};
48 bool m_valueHasBeenSet = false;
49};
50
51} // namespace Model
52} // namespace EC2
53} // namespace Aws
AWS_EC2_API BlobAttributeValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BlobAttributeValue & WithValue(ValueT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API BlobAttributeValue()=default
const Aws::Utils::ByteBuffer & GetValue() const
AWS_EC2_API BlobAttributeValue(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream