Package com.google.cloud.storage
Class BucketInfo.CustomerManagedEncryptionEnforcementConfig
java.lang.Object
com.google.cloud.storage.BucketInfo.CustomerManagedEncryptionEnforcementConfig
- Enclosing class:
- BucketInfo
@BetaApi
public static final class BucketInfo.CustomerManagedEncryptionEnforcementConfig
extends Object
Customer Managed Encryption (CMEK) 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-managed encryption is allowed. If `FullyRestricted`, new objects can not be created using customer-managed 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.CustomerManagedEncryptionEnforcementConfig 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.CustomerManagedEncryptionEnforcementConfig of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode, @Nullable OffsetDateTime effectiveTime) - Since:
- 2.55.0 This new api is in preview and is subject to breaking changes.
-