Class CalendarDateTime.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CalendarDateTime.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CalendarDateTime>
- Enclosing interface:
CalendarDateTime
@Stability(Stable)
public static final class CalendarDateTime.Builder
extends Object
implements software.amazon.jsii.Builder<CalendarDateTime>
A builder for
CalendarDateTime-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCalendarDateTime.getDay()Sets the value ofCalendarDateTime.getHour()Sets the value ofCalendarDateTime.getMinute()Sets the value ofCalendarDateTime.getMonth()Sets the value ofCalendarDateTime.getYear()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
day
Sets the value ofCalendarDateTime.getDay()- Parameters:
day- The day of the date. This parameter is required. Valid range: 1-31- Returns:
this
-
hour
Sets the value ofCalendarDateTime.getHour()- Parameters:
hour- The hour of the time. This parameter is required. Valid range: 0-23- Returns:
this
-
minute
Sets the value ofCalendarDateTime.getMinute()- Parameters:
minute- The minute of the time. This parameter is required. Valid range: 0-59- Returns:
this
-
month
Sets the value ofCalendarDateTime.getMonth()- Parameters:
month- The month of the date. This parameter is required. Valid range: 1-12- Returns:
this
-
year
Sets the value ofCalendarDateTime.getYear()- Parameters:
year- The year of the date. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CalendarDateTime>- Returns:
- a new instance of
CalendarDateTime - Throws:
NullPointerException- if any required attribute was not provided
-