Class BucketInfo.CustomerSuppliedEncryptionEnforcementConfig (2.55.0)

public static final class BucketInfo.CustomerSuppliedEncryptionEnforcementConfig

Customer Supplied Encryption (CSEK) enforcement config of a bucket.

Inheritance

Object > BucketInfo.CustomerSuppliedEncryptionEnforcementConfig

Static Methods

of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode)

public static BucketInfo.CustomerSuppliedEncryptionEnforcementConfig 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.CustomerSuppliedEncryptionEnforcementConfig

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

public static BucketInfo.CustomerSuppliedEncryptionEnforcementConfig 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.CustomerSuppliedEncryptionEnforcementConfig

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-supplied encryption is allowed. If FullyRestricted, new objects can not be created using customer-supplied 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