/* * 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.securitylake.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides lifecycle details of Amazon Security Lake object. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DataLakeLifecycleConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** Provides data expiration details of Amazon Security Lake object. *
*/ private DataLakeLifecycleExpiration expiration; /** ** Provides data storage transition details of Amazon Security Lake object. *
*/ private java.util.List* Provides data expiration details of Amazon Security Lake object. *
* * @param expiration * Provides data expiration details of Amazon Security Lake object. */ public void setExpiration(DataLakeLifecycleExpiration expiration) { this.expiration = expiration; } /** ** Provides data expiration details of Amazon Security Lake object. *
* * @return Provides data expiration details of Amazon Security Lake object. */ public DataLakeLifecycleExpiration getExpiration() { return this.expiration; } /** ** Provides data expiration details of Amazon Security Lake object. *
* * @param expiration * Provides data expiration details of Amazon Security Lake object. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeLifecycleConfiguration withExpiration(DataLakeLifecycleExpiration expiration) { setExpiration(expiration); return this; } /** ** Provides data storage transition details of Amazon Security Lake object. *
* * @return Provides data storage transition details of Amazon Security Lake object. */ public java.util.List* Provides data storage transition details of Amazon Security Lake object. *
* * @param transitions * Provides data storage transition details of Amazon Security Lake object. */ public void setTransitions(java.util.Collection* Provides data storage transition details of Amazon Security Lake object. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTransitions(java.util.Collection)} or {@link #withTransitions(java.util.Collection)} if you want to * override the existing values. *
* * @param transitions * Provides data storage transition details of Amazon Security Lake object. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeLifecycleConfiguration withTransitions(DataLakeLifecycleTransition... transitions) { if (this.transitions == null) { setTransitions(new java.util.ArrayList* Provides data storage transition details of Amazon Security Lake object. *
* * @param transitions * Provides data storage transition details of Amazon Security Lake object. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeLifecycleConfiguration withTransitions(java.util.Collection