AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Storage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/S3Storage.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
28class Storage {
29 public:
30 AWS_EC2_API Storage() = default;
31 AWS_EC2_API Storage(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API Storage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const S3Storage& GetS3() const { return m_s3; }
42 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
43 template <typename S3T = S3Storage>
44 void SetS3(S3T&& value) {
45 m_s3HasBeenSet = true;
46 m_s3 = std::forward<S3T>(value);
47 }
48 template <typename S3T = S3Storage>
49 Storage& WithS3(S3T&& value) {
50 SetS3(std::forward<S3T>(value));
51 return *this;
52 }
54 private:
55 S3Storage m_s3;
56 bool m_s3HasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace EC2
61} // namespace Aws
bool S3HasBeenSet() const
Definition Storage.h:42
AWS_EC2_API Storage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API Storage()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API Storage(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetS3(S3T &&value)
Definition Storage.h:44
Storage & WithS3(S3T &&value)
Definition Storage.h:49
const S3Storage & GetS3() const
Definition Storage.h:41
std::basic_ostream< char, std::char_traits< char > > OStream