public class BucketProtectionConfiguration extends Object implements Serializable
| Constructor and Description |
|---|
BucketProtectionConfiguration() |
BucketProtectionConfiguration(String status,
Integer minimumRetentionInDays,
Integer defaultRetentionInDays,
Integer maximumRetentionInDays,
Boolean permanentRetentionEnabled) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getDefaultRetentionInDays() |
Integer |
getMaximumRetentionInDays() |
Integer |
getMinimumRetentionInDays() |
String |
getStatus() |
Boolean |
isPermanentRetentionEnabled() |
void |
setDefaultRetentionInDays(Integer defaultRetentionInDays)
Sets the desired bucket protection default retention for this configuration object.
|
void |
setMaximumRetentionInDays(Integer maximumRetentionInDays)
Sets the desired bucket protection maximum retention for this configuration object.
|
void |
setMinimumRetentionInDays(Integer minimumRetentionInDays)
Sets the desired bucket protection minimum retention for this configuration object.
|
void |
setPermanentRetentionEnabled(Boolean permanentRetentionEnabled)
Sets permanent retention true or false on the bucket.
|
void |
setStatus(BucketProtectionStatus status)
Sets the desired bucket protection status for this configuration object.
|
void |
setStatus(String status)
Sets the desired bucket protection status for this configuration object.
|
BucketProtectionConfiguration |
withDefaultRetentionInDays(Integer defaultRetentionInDays)
Fluent setter method for
BucketProtectionConfiguration.setDefaultRetentionInDays(Integer) |
BucketProtectionConfiguration |
withMaximumRetentionInDays(Integer maximumRetentionInDays)
Fluent setter method for
BucketProtectionConfiguration.setMaximumRetentionInDays(Integer) |
BucketProtectionConfiguration |
withMinimumRetentionInDays(Integer minimumRetentionInDays)
Fluent setter method for
BucketProtectionConfiguration.setMinimumRetentionInDays(Integer) |
BucketProtectionConfiguration |
withPermanentRetentionEnabled(Boolean permanentRetentionEnabled)
Fluent setter method for
#setEnablePermanentRetention(Boolean) |
BucketProtectionConfiguration |
withStatus(BucketProtectionStatus status)
Fluent setter method for
BucketProtectionConfiguration.setStatus(String) |
public String getStatus()
public void setStatus(String status)
status - The desired bucket protection status for this configuration object. See
BucketProtectionStatus for a list of valid values.public void setStatus(BucketProtectionStatus status)
status - The desired bucket protection status for this configuration object. See
BucketProtectionStatus for a list of valid values.public BucketProtectionConfiguration withStatus(BucketProtectionStatus status)
BucketProtectionConfiguration.setStatus(String)BucketProtectionConfiguration object so that additional method calls may
be chained together.BucketProtectionConfiguration.setStatus(String)public Integer getMinimumRetentionInDays()
public void setMinimumRetentionInDays(Integer minimumRetentionInDays)
minimumRetentionInDays - The desired bucket protection minimum retention for this configuration object.public BucketProtectionConfiguration withMinimumRetentionInDays(Integer minimumRetentionInDays)
BucketProtectionConfiguration.setMinimumRetentionInDays(Integer)BucketProtectionConfiguration object so that additional method calls may
be chained together.BucketProtectionConfiguration.setMinimumRetentionInDays(Integer)public Integer getDefaultRetentionInDays()
public void setDefaultRetentionInDays(Integer defaultRetentionInDays)
defaultRetentionInDays - The desired bucket protection default retention for this configuration object.public BucketProtectionConfiguration withDefaultRetentionInDays(Integer defaultRetentionInDays)
BucketProtectionConfiguration.setDefaultRetentionInDays(Integer)BucketProtectionConfiguration object so that additional method calls may
be chained together.BucketProtectionConfiguration.setDefaultRetentionInDays(Integer)public Integer getMaximumRetentionInDays()
public void setMaximumRetentionInDays(Integer maximumRetentionInDays)
maximumRetentionInDays - The desired bucket protection maximum retention for this configuration object.public BucketProtectionConfiguration withMaximumRetentionInDays(Integer maximumRetentionInDays)
BucketProtectionConfiguration.setMaximumRetentionInDays(Integer)BucketProtectionConfiguration object so that additional method calls may
be chained together.BucketProtectionConfiguration.setMaximumRetentionInDays(Integer)public Boolean isPermanentRetentionEnabled()
public void setPermanentRetentionEnabled(Boolean permanentRetentionEnabled)
enablePermanentRetention - Sets permanent retention enablement.public BucketProtectionConfiguration withPermanentRetentionEnabled(Boolean permanentRetentionEnabled)
#setEnablePermanentRetention(Boolean)BucketProtectionConfiguration object so that additional method calls may
be chained together.BucketProtectionConfiguration.setPermanentRetentionEnabled(Boolean)Copyright © 2025. All rights reserved.