Class BucketInfo.GoogleManagedEncryptionEnforcementConfig (2.55.0)

public static final class BucketInfo.GoogleManagedEncryptionEnforcementConfig

Google Managed Encryption (GMEK) enforcement config of a bucket.

Inheritance

Object > BucketInfo.GoogleManagedEncryptionEnforcementConfig

Static Methods

of(@Nullable BucketInfo.EncryptionEnforcementRestrictionMode restrictionMode)

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

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

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

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