Class CfnDashboard.RefreshScheduleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnDashboard.RefreshScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.RefreshScheduleProperty>
- Enclosing interface:
CfnDashboard.RefreshScheduleProperty
@Stability(Stable)
public static final class CfnDashboard.RefreshScheduleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.RefreshScheduleProperty>
A builder for
CfnDashboard.RefreshScheduleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.frequency
(IResolvable frequency) Sets the value ofCfnDashboard.RefreshScheduleProperty.getFrequency()
frequency
(CfnDashboard.FrequencyProperty frequency) Sets the value ofCfnDashboard.RefreshScheduleProperty.getFrequency()
Sets the value ofCfnDashboard.RefreshScheduleProperty.getStatus()
Sets the value ofCfnDashboard.RefreshScheduleProperty.getTimeOfDay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
frequency
@Stability(Stable) public CfnDashboard.RefreshScheduleProperty.Builder frequency(IResolvable frequency) Sets the value ofCfnDashboard.RefreshScheduleProperty.getFrequency()
- Parameters:
frequency
- The frequency at which you want the dashboard refreshed.- Returns:
this
-
frequency
@Stability(Stable) public CfnDashboard.RefreshScheduleProperty.Builder frequency(CfnDashboard.FrequencyProperty frequency) Sets the value ofCfnDashboard.RefreshScheduleProperty.getFrequency()
- Parameters:
frequency
- The frequency at which you want the dashboard refreshed.- Returns:
this
-
status
Sets the value ofCfnDashboard.RefreshScheduleProperty.getStatus()
- Parameters:
status
- Specifies whether the refresh schedule is enabled. Set the value toENABLED
to enable the refresh schedule, or toDISABLED
to turn off the refresh schedule.- Returns:
this
-
timeOfDay
Sets the value ofCfnDashboard.RefreshScheduleProperty.getTimeOfDay()
- Parameters:
timeOfDay
- The time of day in UTC to run the schedule;. for hourly only refer to minutes; default is 00:00.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.RefreshScheduleProperty>
- Returns:
- a new instance of
CfnDashboard.RefreshScheduleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-