@Stability(value=Stable)
public static interface CfnBucket.ObjectLockConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
ObjectLockConfigurationProperty objectLockConfigurationProperty = ObjectLockConfigurationProperty.builder()
.objectLockEnabled("objectLockEnabled")
.rule(ObjectLockRuleProperty.builder()
.defaultRetention(DefaultRetentionProperty.builder()
.days(123)
.mode("mode")
.years(123)
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.ObjectLockConfigurationProperty.Builder
A builder for
CfnBucket.ObjectLockConfigurationProperty |
static class |
CfnBucket.ObjectLockConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.ObjectLockConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.ObjectLockConfigurationProperty.Builder |
builder() |
default String |
getObjectLockEnabled()
`CfnBucket.ObjectLockConfigurationProperty.ObjectLockEnabled`.
|
default Object |
getRule()
`CfnBucket.ObjectLockConfigurationProperty.Rule`.
|
@Stability(value=Stable) @Nullable default String getObjectLockEnabled()
@Stability(value=Stable) @Nullable default Object getRule()
@Stability(value=Stable) static CfnBucket.ObjectLockConfigurationProperty.Builder builder()
Copyright © 2021. All rights reserved.