Interface CalendarDateTime

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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:50:59.328Z") @Stability(Stable) public interface CalendarDateTime extends software.amazon.jsii.JsiiSerializable
Represents a calendar date and time.

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.cloudwatch.*;
 CalendarDateTime calendarDateTime = CalendarDateTime.builder()
         .day(123)
         .hour(123)
         .minute(123)
         .month(123)
         .year(123)
         .build();
 
  • Method Details

    • getDay

      @Stability(Stable) @NotNull Number getDay()
      The day of the date.

      Valid range: 1-31

    • getHour

      @Stability(Stable) @NotNull Number getHour()
      The hour of the time.

      Valid range: 0-23

    • getMinute

      @Stability(Stable) @NotNull Number getMinute()
      The minute of the time.

      Valid range: 0-59

    • getMonth

      @Stability(Stable) @NotNull Number getMonth()
      The month of the date.

      Valid range: 1-12

    • getYear

      @Stability(Stable) @NotNull Number getYear()
      The year of the date.
    • builder

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