Package com.google.cloud.storage
Class BucketInfo.CustomerSuppliedEncryptionEnforcementConfig
java.lang.Object
com.google.cloud.storage.BucketInfo.CustomerSuppliedEncryptionEnforcementConfig
- Enclosing class:
- BucketInfo
@BetaApi
public static final class BucketInfo.CustomerSuppliedEncryptionEnforcementConfig
extends Object
Customer Supplied Encryption (CSEK) enforcement config of a bucket.
- Since:
- 2.55.0 This new api is in preview and is subject to breaking changes.
-
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable OffsetDateTimeOutput only.Restriction mode for new objects within the bucket.inthashCode()of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode) of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode, @Nullable OffsetDateTime effectiveTime) toString()
-
Method Details
-
getRestrictionMode
Restriction mode for new objects within the bucket. IfNotRestrictedornull, creation of new objects with customer-supplied encryption is allowed. If `FullyRestricted`, new objects can not be created using customer-supplied encryption.- Since:
- 2.55.0 This new api is in preview and is subject to breaking changes.
-
getEffectiveTime
Output only. Time from which the config was effective.- Since:
- 2.55.0 This new api is in preview and is subject to breaking changes.
-
equals
-
hashCode
public int hashCode() -
toString
-
of
@BetaApi public static BucketInfo.CustomerSuppliedEncryptionEnforcementConfig of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode) - Since:
- 2.55.0 This new api is in preview and is subject to breaking changes.
-
of
@BetaApi public static BucketInfo.CustomerSuppliedEncryptionEnforcementConfig of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode, @Nullable OffsetDateTime effectiveTime) - Since:
- 2.55.0 This new api is in preview and is subject to breaking changes.
-