/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the storage location for an instance store-backed * AMI.

See Also:

AWS API * Reference

*/ class Storage { public: AWS_EC2_API Storage(); AWS_EC2_API Storage(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API Storage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); 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; /** *

An Amazon S3 storage location.

*/ inline const S3Storage& GetS3() const{ return m_s3; } /** *

An Amazon S3 storage location.

*/ inline bool S3HasBeenSet() const { return m_s3HasBeenSet; } /** *

An Amazon S3 storage location.

*/ inline void SetS3(const S3Storage& value) { m_s3HasBeenSet = true; m_s3 = value; } /** *

An Amazon S3 storage location.

*/ inline void SetS3(S3Storage&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); } /** *

An Amazon S3 storage location.

*/ inline Storage& WithS3(const S3Storage& value) { SetS3(value); return *this;} /** *

An Amazon S3 storage location.

*/ inline Storage& WithS3(S3Storage&& value) { SetS3(std::move(value)); return *this;} private: S3Storage m_s3; bool m_s3HasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws