@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:42.459Z") @Stability(value=Experimental) public class Expiration extends software.amazon.jsii.JsiiObject
The amount can be specified either as a Date object, timestamp, Duration or string.
| Modifier | Constructor and Description |
|---|---|
protected |
Expiration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Expiration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Expiration |
after(Duration t)
(experimental) Expire once the specified duration has passed since deployment time.
|
static Expiration |
atDate(Instant d)
(experimental) Expire at the specified date.
|
static Expiration |
atTimestamp(Number t)
(experimental) Expire at the specified timestamp.
|
static Expiration |
fromString(String s)
(experimental) Expire at specified date, represented as a string.
|
Instant |
getDate()
(experimental) Expiration value as a Date object.
|
Boolean |
isAfter(Duration t)
(experimental) Check if Exipiration expires after input.
|
Boolean |
isBefore(Duration t)
(experimental) Check if Exipiration expires before input.
|
Number |
toEpoch()
(experimental) Exipration Value in a formatted Unix Epoch Time in seconds.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Expiration(software.amazon.jsii.JsiiObjectRef objRef)
protected Expiration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Expiration after(@NotNull Duration t)
t - the duration to wait before expiring. This parameter is required.@Stability(value=Experimental) @NotNull public static Expiration atDate(@NotNull Instant d)
d - date to expire at. This parameter is required.@Stability(value=Experimental) @NotNull public static Expiration atTimestamp(@NotNull Number t)
t - timestamp in unix milliseconds. This parameter is required.@Stability(value=Experimental) @NotNull public static Expiration fromString(@NotNull String s)
s - the string that represents date to expire at. This parameter is required.@Stability(value=Experimental) @NotNull public Boolean isAfter(@NotNull Duration t)
t - the duration to check against. This parameter is required.@Stability(value=Experimental) @NotNull public Boolean isBefore(@NotNull Duration t)
t - the duration to check against. This parameter is required.@Stability(value=Experimental) @NotNull public Number toEpoch()
@Stability(value=Experimental) @NotNull public Instant getDate()
Copyright © 2021. All rights reserved.