Class CfnBucket.DefaultRetentionProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.s3.CfnBucket.DefaultRetentionProperty.Jsii$Proxy
All Implemented Interfaces:
CfnBucket.DefaultRetentionProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnBucket.DefaultRetentionProperty

@Stability(Stable) @Internal public static final class CfnBucket.DefaultRetentionProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnBucket.DefaultRetentionProperty
  • Constructor Details

    • Jsii$Proxy

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

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

    • getDays

      public final Number getDays()
      Description copied from interface: CfnBucket.DefaultRetentionProperty
      The number of days that you want to specify for the default retention period.

      If Object Lock is turned on, you must specify Mode and specify either Days or Years .

      Specified by:
      getDays in interface CfnBucket.DefaultRetentionProperty
    • getMode

      public final String getMode()
      Description copied from interface: CfnBucket.DefaultRetentionProperty
      The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.

      If Object Lock is turned on, you must specify Mode and specify either Days or Years .

      Specified by:
      getMode in interface CfnBucket.DefaultRetentionProperty
    • getYears

      public final Number getYears()
      Description copied from interface: CfnBucket.DefaultRetentionProperty
      The number of years that you want to specify for the default retention period.

      If Object Lock is turned on, you must specify Mode and specify either Days or Years .

      Specified by:
      getYears in interface CfnBucket.DefaultRetentionProperty
    • $jsii$toJson

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

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

      public final int hashCode()
      Overrides:
      hashCode in class Object