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

Specifies the days since the initiation of an incomplete multipart upload * that Amazon S3 will wait before permanently removing all parts of the upload. * For more information, see * Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy in the * Amazon S3 User Guide.

See Also:

AWS * API Reference

*/ class AWS_S3_API AbortIncompleteMultipartUpload { public: AbortIncompleteMultipartUpload(); AbortIncompleteMultipartUpload(const Aws::Utils::Xml::XmlNode& xmlNode); AbortIncompleteMultipartUpload& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

Specifies the number of days after which Amazon S3 aborts an incomplete * multipart upload.

*/ inline int GetDaysAfterInitiation() const{ return m_daysAfterInitiation; } /** *

Specifies the number of days after which Amazon S3 aborts an incomplete * multipart upload.

*/ inline bool DaysAfterInitiationHasBeenSet() const { return m_daysAfterInitiationHasBeenSet; } /** *

Specifies the number of days after which Amazon S3 aborts an incomplete * multipart upload.

*/ inline void SetDaysAfterInitiation(int value) { m_daysAfterInitiationHasBeenSet = true; m_daysAfterInitiation = value; } /** *

Specifies the number of days after which Amazon S3 aborts an incomplete * multipart upload.

*/ inline AbortIncompleteMultipartUpload& WithDaysAfterInitiation(int value) { SetDaysAfterInitiation(value); return *this;} private: int m_daysAfterInitiation; bool m_daysAfterInitiationHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws