Class BucketInfo.CustomerManagedEncryptionEnforcementConfig (2.55.0)

public static final class BucketInfo.CustomerManagedEncryptionEnforcementConfig

Customer Managed Encryption (CMEK) enforcement config of a bucket.

Inheritance

Object > BucketInfo.CustomerManagedEncryptionEnforcementConfig

Static Methods

of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode)

public static BucketInfo.CustomerManagedEncryptionEnforcementConfig of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode)
Parameter
Name Description
restrictionMode @org.checkerframework.checker.nullness.qual.Nullable com.google.cloud.storage.BucketInfo.EncryptionEnforcementRestrictionMode
Returns
Type Description
BucketInfo.CustomerManagedEncryptionEnforcementConfig

of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode, @Nullable OffsetDateTime effectiveTime)

public static BucketInfo.CustomerManagedEncryptionEnforcementConfig of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode, @Nullable OffsetDateTime effectiveTime)
Parameters
Name Description
restrictionMode @org.checkerframework.checker.nullness.qual.Nullable com.google.cloud.storage.BucketInfo.EncryptionEnforcementRestrictionMode
effectiveTime @org.checkerframework.checker.nullness.qual.Nullable java.time.OffsetDateTime
Returns
Type Description
BucketInfo.CustomerManagedEncryptionEnforcementConfig

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getEffectiveTime()

public @Nullable OffsetDateTime getEffectiveTime()

Output only. Time from which the config was effective.

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable java.time.OffsetDateTime

getRestrictionMode()

public @Nullable BucketInfo.EncryptionEnforcementRestrictionMode getRestrictionMode()

Restriction mode for new objects within the bucket. If NotRestricted or null, creation of new objects with customer-managed encryption is allowed. If FullyRestricted, new objects can not be created using customer-managed encryption.

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable com.google.cloud.storage.BucketInfo.EncryptionEnforcementRestrictionMode

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides