Class CfnBucket.ObjectLockRuleProperty.Jsii$Proxy

All Implemented Interfaces:
Enclosing interface:

@Stability(Stable) @Internal public static final class CfnBucket.ObjectLockRuleProperty.Jsii$Proxy extends implements CfnBucket.ObjectLockRuleProperty
An implementation for CfnBucket.ObjectLockRuleProperty
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy( objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnBucket.ObjectLockRuleProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnBucket.ObjectLockRuleProperty.Builder.
  • Method Details

    • getDefaultRetention

      public final Object getDefaultRetention()
      Description copied from interface: CfnBucket.ObjectLockRuleProperty
      The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.

      If Object Lock is turned on, bucket settings require both Mode and a period of either Days or Years . You cannot specify Days and Years at the same time. For more information about allowable values for mode and period, see DefaultRetention .

      Specified by:
      getDefaultRetention in interface CfnBucket.ObjectLockRuleProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface
    • equals

      public final boolean equals(Object o)
      equals in class Object
    • hashCode

      public final int hashCode()
      hashCode in class Object