Class CfnDashboard.FrequencyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnDashboard.FrequencyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.FrequencyProperty>
- Enclosing interface:
CfnDashboard.FrequencyProperty
@Stability(Stable)
public static final class CfnDashboard.FrequencyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.FrequencyProperty>
A builder for
CfnDashboard.FrequencyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDashboard.FrequencyProperty.getUnit()Sets the value ofCfnDashboard.FrequencyProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnDashboard.FrequencyProperty.getUnit()- Parameters:
unit- The unit to use for the refresh. This parameter is required. For custom dashboards, the unit can beHOURSorDAYS.For the Highlights dashboard, the
Unitmust beHOURS.- Returns:
this
-
value
Sets the value ofCfnDashboard.FrequencyProperty.getValue()- Parameters:
value- The value for the refresh schedule. This parameter is required. For custom dashboards, the following values are valid when the unit isHOURS:1,6,12,24For custom dashboards, the only valid value when the unit is
DAYSis1.For the Highlights dashboard, the
Valuemust be6.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboard.FrequencyProperty>- Returns:
- a new instance of
CfnDashboard.FrequencyProperty - Throws:
NullPointerException- if any required attribute was not provided
-