/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies when an object transitions to a specified storage class. For more
* information about Amazon S3 lifecycle configuration rules, see Transitioning
* Objects Using Amazon S3 Lifecycle in the Amazon S3 User
* Guide.See Also:
AWS API
* Reference
Indicates when objects are transitioned to the specified storage class. The * date value must be in ISO 8601 format. The time is always midnight UTC.
*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *Indicates when objects are transitioned to the specified storage class. The * date value must be in ISO 8601 format. The time is always midnight UTC.
*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *Indicates when objects are transitioned to the specified storage class. The * date value must be in ISO 8601 format. The time is always midnight UTC.
*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *Indicates when objects are transitioned to the specified storage class. The * date value must be in ISO 8601 format. The time is always midnight UTC.
*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *Indicates when objects are transitioned to the specified storage class. The * date value must be in ISO 8601 format. The time is always midnight UTC.
*/ inline Transition& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *Indicates when objects are transitioned to the specified storage class. The * date value must be in ISO 8601 format. The time is always midnight UTC.
*/ inline Transition& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} /** *Indicates the number of days after creation when objects are transitioned to * the specified storage class. The value must be a positive integer.
*/ inline int GetDays() const{ return m_days; } /** *Indicates the number of days after creation when objects are transitioned to * the specified storage class. The value must be a positive integer.
*/ inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; } /** *Indicates the number of days after creation when objects are transitioned to * the specified storage class. The value must be a positive integer.
*/ inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; } /** *Indicates the number of days after creation when objects are transitioned to * the specified storage class. The value must be a positive integer.
*/ inline Transition& WithDays(int value) { SetDays(value); return *this;} /** *The storage class to which you want the object to transition.
*/ inline const TransitionStorageClass& GetStorageClass() const{ return m_storageClass; } /** *The storage class to which you want the object to transition.
*/ inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; } /** *The storage class to which you want the object to transition.
*/ inline void SetStorageClass(const TransitionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; } /** *The storage class to which you want the object to transition.
*/ inline void SetStorageClass(TransitionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); } /** *The storage class to which you want the object to transition.
*/ inline Transition& WithStorageClass(const TransitionStorageClass& value) { SetStorageClass(value); return *this;} /** *The storage class to which you want the object to transition.
*/ inline Transition& WithStorageClass(TransitionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;} private: Aws::Utils::DateTime m_date; bool m_dateHasBeenSet; int m_days; bool m_daysHasBeenSet; TransitionStorageClass m_storageClass; bool m_storageClassHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws