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

Contains the configuration parameters for a POST Object restore job. S3 Batch * Operations passes every object to the underlying RestoreObject API * operation. For more information about the parameters for this operation, see RestoreObject.

See * Also:

AWS * API Reference

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

This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive * object remains available in Amazon S3. S3 Initiate Restore Object jobs that * target S3 Glacier and S3 Glacier Deep Archive objects require * ExpirationInDays set to 1 or greater.

Conversely, do * not set ExpirationInDays when creating S3 Initiate Restore * Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive * Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers are * not subject to restore expiry, so specifying ExpirationInDays * results in restore request failure.

S3 Batch Operations jobs can operate * either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 * Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, * but not both types in the same job. If you need to restore objects of both types * you must create separate Batch Operations jobs.

*/ inline int GetExpirationInDays() const{ return m_expirationInDays; } /** *

This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive * object remains available in Amazon S3. S3 Initiate Restore Object jobs that * target S3 Glacier and S3 Glacier Deep Archive objects require * ExpirationInDays set to 1 or greater.

Conversely, do * not set ExpirationInDays when creating S3 Initiate Restore * Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive * Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers are * not subject to restore expiry, so specifying ExpirationInDays * results in restore request failure.

S3 Batch Operations jobs can operate * either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 * Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, * but not both types in the same job. If you need to restore objects of both types * you must create separate Batch Operations jobs.

*/ inline bool ExpirationInDaysHasBeenSet() const { return m_expirationInDaysHasBeenSet; } /** *

This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive * object remains available in Amazon S3. S3 Initiate Restore Object jobs that * target S3 Glacier and S3 Glacier Deep Archive objects require * ExpirationInDays set to 1 or greater.

Conversely, do * not set ExpirationInDays when creating S3 Initiate Restore * Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive * Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers are * not subject to restore expiry, so specifying ExpirationInDays * results in restore request failure.

S3 Batch Operations jobs can operate * either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 * Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, * but not both types in the same job. If you need to restore objects of both types * you must create separate Batch Operations jobs.

*/ inline void SetExpirationInDays(int value) { m_expirationInDaysHasBeenSet = true; m_expirationInDays = value; } /** *

This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive * object remains available in Amazon S3. S3 Initiate Restore Object jobs that * target S3 Glacier and S3 Glacier Deep Archive objects require * ExpirationInDays set to 1 or greater.

Conversely, do * not set ExpirationInDays when creating S3 Initiate Restore * Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive * Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers are * not subject to restore expiry, so specifying ExpirationInDays * results in restore request failure.

S3 Batch Operations jobs can operate * either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 * Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, * but not both types in the same job. If you need to restore objects of both types * you must create separate Batch Operations jobs.

*/ inline S3InitiateRestoreObjectOperation& WithExpirationInDays(int value) { SetExpirationInDays(value); return *this;} /** *

S3 Batch Operations supports STANDARD and BULK * retrieval tiers, but not the EXPEDITED retrieval tier.

*/ inline const S3GlacierJobTier& GetGlacierJobTier() const{ return m_glacierJobTier; } /** *

S3 Batch Operations supports STANDARD and BULK * retrieval tiers, but not the EXPEDITED retrieval tier.

*/ inline bool GlacierJobTierHasBeenSet() const { return m_glacierJobTierHasBeenSet; } /** *

S3 Batch Operations supports STANDARD and BULK * retrieval tiers, but not the EXPEDITED retrieval tier.

*/ inline void SetGlacierJobTier(const S3GlacierJobTier& value) { m_glacierJobTierHasBeenSet = true; m_glacierJobTier = value; } /** *

S3 Batch Operations supports STANDARD and BULK * retrieval tiers, but not the EXPEDITED retrieval tier.

*/ inline void SetGlacierJobTier(S3GlacierJobTier&& value) { m_glacierJobTierHasBeenSet = true; m_glacierJobTier = std::move(value); } /** *

S3 Batch Operations supports STANDARD and BULK * retrieval tiers, but not the EXPEDITED retrieval tier.

*/ inline S3InitiateRestoreObjectOperation& WithGlacierJobTier(const S3GlacierJobTier& value) { SetGlacierJobTier(value); return *this;} /** *

S3 Batch Operations supports STANDARD and BULK * retrieval tiers, but not the EXPEDITED retrieval tier.

*/ inline S3InitiateRestoreObjectOperation& WithGlacierJobTier(S3GlacierJobTier&& value) { SetGlacierJobTier(std::move(value)); return *this;} private: int m_expirationInDays; bool m_expirationInDaysHasBeenSet = false; S3GlacierJobTier m_glacierJobTier; bool m_glacierJobTierHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws