Class Transition.Builder

java.lang.Object
software.amazon.awscdk.services.s3.Transition.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Transition>
Enclosing interface:
Transition

@Stability(Stable) public static final class Transition.Builder extends Object implements software.amazon.jsii.Builder<Transition>
A builder for Transition
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • storageClass

      @Stability(Stable) public Transition.Builder storageClass(StorageClass storageClass)
      Parameters:
      storageClass - The storage class to which you want the object to transition. This parameter is required.
      Returns:
      this
    • transitionAfter

      @Stability(Stable) public Transition.Builder transitionAfter(Duration transitionAfter)
      Parameters:
      transitionAfter - Indicates the number of days after creation when objects are transitioned to the specified storage class.
      Returns:
      this
    • transitionDate

      @Stability(Stable) public Transition.Builder transitionDate(Instant transitionDate)
      Parameters:
      transitionDate - Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.
      Returns:
      this
    • build

      @Stability(Stable) public Transition build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Transition>
      Returns:
      a new instance of Transition
      Throws:
      NullPointerException - if any required attribute was not provided