AWS SDK for C++  1.9.107
AWS SDK for C++
Storage.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const S3Storage& GetS3() const{ return m_s3; }
47 
51  inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
52 
56  inline void SetS3(const S3Storage& value) { m_s3HasBeenSet = true; m_s3 = value; }
57 
61  inline void SetS3(S3Storage&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
62 
66  inline Storage& WithS3(const S3Storage& value) { SetS3(value); return *this;}
67 
71  inline Storage& WithS3(S3Storage&& value) { SetS3(std::move(value)); return *this;}
72 
73  private:
74 
75  S3Storage m_s3;
76  bool m_s3HasBeenSet;
77  };
78 
79 } // namespace Model
80 } // namespace EC2
81 } // namespace Aws
Aws::EC2::Model::Storage::WithS3
Storage & WithS3(const S3Storage &value)
Definition: Storage.h:66
Aws::EC2::Model::Storage::SetS3
void SetS3(S3Storage &&value)
Definition: Storage.h:61
Aws::EC2::Model::Storage::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::Storage
Definition: Storage.h:33
Aws::EC2::Model::Storage::SetS3
void SetS3(const S3Storage &value)
Definition: Storage.h:56
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::Storage::Storage
Storage(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Storage::WithS3
Storage & WithS3(S3Storage &&value)
Definition: Storage.h:71
Aws::EC2::Model::Storage::Storage
Storage()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::S3Storage
Definition: S3Storage.h:34
Aws::EC2::Model::Storage::GetS3
const S3Storage & GetS3() const
Definition: Storage.h:46
Aws::EC2::Model::Storage::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
S3Storage.h
Aws::EC2::Model::Storage::operator=
Storage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Storage::S3HasBeenSet
bool S3HasBeenSet() const
Definition: Storage.h:51
EC2_EXPORTS.h