/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A rule for when objects transition to specific storage classes. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails implements Serializable, Cloneable, StructuredPojo { /** *
     * A date on which to transition objects to the specified storage class. If you provide Date, you
     * cannot provide Days.
     * 
     * Uses the date-time format specified in RFC
     * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
     * separated by T. For example, 2020-03-22T13:22:13.933Z.
     * 
     * The number of days after which to transition the object to the specified storage class. If you provide
     * Days, you cannot provide Date.
     * 
* The storage class to transition the object to. Valid values are as follows: *
*
     * DEEP_ARCHIVE
     * 
     * GLACIER
     * 
     * INTELLIGENT_TIERING
     * 
     * ONEZONE_IA
     * 
     * STANDARD_IA
     * 
     * A date on which to transition objects to the specified storage class. If you provide Date, you
     * cannot provide Days.
     * 
     * Uses the date-time format specified in RFC
     * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
     * separated by T. For example, 2020-03-22T13:22:13.933Z.
     * 
Date,
     *        you cannot provide Days.
     *        
     *        Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
     *        Format. The value cannot contain spaces, and date and time should be separated by T. For
     *        example, 2020-03-22T13:22:13.933Z.
     */
    public void setDate(String date) {
        this.date = date;
    }
    /**
     * 
     * A date on which to transition objects to the specified storage class. If you provide Date, you
     * cannot provide Days.
     * 
     * Uses the date-time format specified in RFC
     * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
     * separated by T. For example, 2020-03-22T13:22:13.933Z.
     * 
Date,
     *         you cannot provide Days.
     *         
     *         Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
     *         Format. The value cannot contain spaces, and date and time should be separated by T. For
     *         example, 2020-03-22T13:22:13.933Z.
     */
    public String getDate() {
        return this.date;
    }
    /**
     * 
     * A date on which to transition objects to the specified storage class. If you provide Date, you
     * cannot provide Days.
     * 
     * Uses the date-time format specified in RFC
     * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
     * separated by T. For example, 2020-03-22T13:22:13.933Z.
     * 
Date,
     *        you cannot provide Days.
     *        
     *        Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time
     *        Format. The value cannot contain spaces, and date and time should be separated by T. For
     *        example, 2020-03-22T13:22:13.933Z.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails withDate(String date) {
        setDate(date);
        return this;
    }
    /**
     * 
     * The number of days after which to transition the object to the specified storage class. If you provide
     * Days, you cannot provide Date.
     * 
Days, you cannot provide Date.
     */
    public void setDays(Integer days) {
        this.days = days;
    }
    /**
     * 
     * The number of days after which to transition the object to the specified storage class. If you provide
     * Days, you cannot provide Date.
     * 
Days, you cannot provide Date.
     */
    public Integer getDays() {
        return this.days;
    }
    /**
     * 
     * The number of days after which to transition the object to the specified storage class. If you provide
     * Days, you cannot provide Date.
     * 
Days, you cannot provide Date.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails withDays(Integer days) {
        setDays(days);
        return this;
    }
    /**
     * * The storage class to transition the object to. Valid values are as follows: *
*
     * DEEP_ARCHIVE
     * 
     * GLACIER
     * 
     * INTELLIGENT_TIERING
     * 
     * ONEZONE_IA
     * 
     * STANDARD_IA
     * 
     *        DEEP_ARCHIVE
     *        
     *        GLACIER
     *        
     *        INTELLIGENT_TIERING
     *        
     *        ONEZONE_IA
     *        
     *        STANDARD_IA
     *        
* The storage class to transition the object to. Valid values are as follows: *
*
     * DEEP_ARCHIVE
     * 
     * GLACIER
     * 
     * INTELLIGENT_TIERING
     * 
     * ONEZONE_IA
     * 
     * STANDARD_IA
     * 
     *         DEEP_ARCHIVE
     *         
     *         GLACIER
     *         
     *         INTELLIGENT_TIERING
     *         
     *         ONEZONE_IA
     *         
     *         STANDARD_IA
     *         
* The storage class to transition the object to. Valid values are as follows: *
*
     * DEEP_ARCHIVE
     * 
     * GLACIER
     * 
     * INTELLIGENT_TIERING
     * 
     * ONEZONE_IA
     * 
     * STANDARD_IA
     * 
     *        DEEP_ARCHIVE
     *        
     *        GLACIER
     *        
     *        INTELLIGENT_TIERING
     *        
     *        ONEZONE_IA
     *        
     *        STANDARD_IA
     *