@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class ObjectLifecyclePolicy extends Object
The collection of lifecycle policy rules that together form the object lifecycle policy of a given bucket.
ObjectLifecyclePolicy.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the ObjectLifecyclePolicy.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
ObjectLifecyclePolicy.Builder |
Constructor and Description |
---|
ObjectLifecyclePolicy(Date timeCreated,
List<ObjectLifecycleRule> items)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ObjectLifecyclePolicy.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
List<ObjectLifecycleRule> |
getItems()
The live lifecycle policy on the bucket.
|
Date |
getTimeCreated()
The date and time the object lifecycle policy was created, as described in
RFC 3339.
|
int |
hashCode() |
ObjectLifecyclePolicy.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"timeCreated","items"}) @Deprecated public ObjectLifecyclePolicy(Date timeCreated, List<ObjectLifecycleRule> items)
public static ObjectLifecyclePolicy.Builder builder()
Create a new builder.
public ObjectLifecyclePolicy.Builder toBuilder()
public Date getTimeCreated()
The date and time the object lifecycle policy was created, as described in RFC 3339.
public List<ObjectLifecycleRule> getItems()
The live lifecycle policy on the bucket.
For an example of this value, see the [PutObjectLifecyclePolicy API documentation](https://docs.cloud.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/PutObjectLifecyclePolicy).
Copyright © 2016–2022. All rights reserved.