| 1 | /* |
| 2 | * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | * You may not use this file except in compliance with the License. |
| 6 | * A copy of the License is located at |
| 7 | * |
| 8 | * http://aws.amazon.com/apache2.0 |
| 9 | * |
| 10 | * or in the "license" file accompanying this file. This file is distributed |
| 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 12 | * express or implied. See the License for the specific language governing |
| 13 | * permissions and limitations under the License. |
| 14 | */ |
| 15 | |
| 16 | #pragma once |
| 17 | #include <aws/s3/S3_EXPORTS.h> |
| 18 | |
| 19 | namespace Aws |
| 20 | { |
| 21 | namespace Utils |
| 22 | { |
| 23 | namespace Xml |
| 24 | { |
| 25 | class XmlNode; |
| 26 | } // namespace Xml |
| 27 | } // namespace Utils |
| 28 | namespace S3 |
| 29 | { |
| 30 | namespace Model |
| 31 | { |
| 32 | |
| 33 | /** |
| 34 | * <p>Specifies the days since the initiation of an incomplete multipart upload |
| 35 | * that Amazon S3 will wait before permanently removing all parts of the upload. |
| 36 | * For more information, see <a |
| 37 | * href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config"> |
| 38 | * Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy</a> in the |
| 39 | * <i>Amazon Simple Storage Service Developer Guide</i>.</p><p><h3>See Also:</h3> |
| 40 | * <a |
| 41 | * href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortIncompleteMultipartUpload">AWS |
| 42 | * API Reference</a></p> |
| 43 | */ |
| 44 | class AWS_S3_API AbortIncompleteMultipartUpload |
| 45 | { |
| 46 | public: |
| 47 | AbortIncompleteMultipartUpload(); |
| 48 | AbortIncompleteMultipartUpload(const Aws::Utils::Xml::XmlNode& xmlNode); |
| 49 | AbortIncompleteMultipartUpload& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); |
| 50 | |
| 51 | void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; |
| 52 | |
| 53 | |
| 54 | /** |
| 55 | * <p>Specifies the number of days after which Amazon S3 aborts an incomplete |
| 56 | * multipart upload.</p> |
| 57 | */ |
| 58 | inline int GetDaysAfterInitiation() const{ return m_daysAfterInitiation; } |
| 59 | |
| 60 | /** |
| 61 | * <p>Specifies the number of days after which Amazon S3 aborts an incomplete |
| 62 | * multipart upload.</p> |
| 63 | */ |
| 64 | inline bool DaysAfterInitiationHasBeenSet() const { return m_daysAfterInitiationHasBeenSet; } |
| 65 | |
| 66 | /** |
| 67 | * <p>Specifies the number of days after which Amazon S3 aborts an incomplete |
| 68 | * multipart upload.</p> |
| 69 | */ |
| 70 | inline void SetDaysAfterInitiation(int value) { m_daysAfterInitiationHasBeenSet = true; m_daysAfterInitiation = value; } |
| 71 | |
| 72 | /** |
| 73 | * <p>Specifies the number of days after which Amazon S3 aborts an incomplete |
| 74 | * multipart upload.</p> |
| 75 | */ |
| 76 | inline AbortIncompleteMultipartUpload& WithDaysAfterInitiation(int value) { SetDaysAfterInitiation(value); return *this;} |
| 77 | |
| 78 | private: |
| 79 | |
| 80 | int m_daysAfterInitiation; |
| 81 | bool m_daysAfterInitiationHasBeenSet; |
| 82 | }; |
| 83 | |
| 84 | } // namespace Model |
| 85 | } // namespace S3 |
| 86 | } // namespace Aws |
| 87 | |