Interface Transition

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
Transition.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.721Z") @Stability(Stable) public interface Transition extends software.amazon.jsii.JsiiSerializable
Describes when an object transitions to a specified storage class.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.s3.*;
 import software.amazon.awscdk.core.*;
 StorageClass storageClass;
 Transition transition = Transition.builder()
         .storageClass(storageClass)
         // the properties below are optional
         .transitionAfter(Duration.minutes(30))
         .transitionDate(new Date())
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for Transition
    static final class 
    An implementation for Transition
  • Method Summary

    Modifier and Type
    Method
    Description
     
    The storage class to which you want the object to transition.
    default Duration
    Indicates the number of days after creation when objects are transitioned to the specified storage class.
    default Instant
    Indicates when objects are transitioned to the specified storage class.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getStorageClass

      @Stability(Stable) @NotNull StorageClass getStorageClass()
      The storage class to which you want the object to transition.
    • getTransitionAfter

      @Stability(Stable) @Nullable default Duration getTransitionAfter()
      Indicates the number of days after creation when objects are transitioned to the specified storage class.

      Default: - No transition count.

    • getTransitionDate

      @Stability(Stable) @Nullable default Instant getTransitionDate()
      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.

      Default: - No transition date.

    • builder

      @Stability(Stable) static Transition.Builder builder()
      Returns:
      a Transition.Builder of Transition