Class CfnDashboardProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnDashboardProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboardProps>
- Enclosing interface:
CfnDashboardProps
@Stability(Stable)
public static final class CfnDashboardProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboardProps>
A builder for
CfnDashboardProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDashboardProps.getName()refreshSchedule(IResolvable refreshSchedule) Sets the value ofCfnDashboardProps.getRefreshSchedule()refreshSchedule(CfnDashboard.RefreshScheduleProperty refreshSchedule) Sets the value ofCfnDashboardProps.getRefreshSchedule()Sets the value ofCfnDashboardProps.getTags()terminationProtectionEnabled(Boolean terminationProtectionEnabled) Sets the value ofCfnDashboardProps.getTerminationProtectionEnabled()terminationProtectionEnabled(IResolvable terminationProtectionEnabled) Sets the value ofCfnDashboardProps.getTerminationProtectionEnabled()Sets the value ofCfnDashboardProps.getWidgets()widgets(IResolvable widgets) Sets the value ofCfnDashboardProps.getWidgets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDashboardProps.getName()- Parameters:
name- The name of the dashboard. The name must be unique to your account. To create the Highlights dashboard, the name must beAWSCloudTrail-Highlights.- Returns:
this
-
refreshSchedule
Sets the value ofCfnDashboardProps.getRefreshSchedule()- Parameters:
refreshSchedule- The schedule for a dashboard refresh.- Returns:
this
-
refreshSchedule
@Stability(Stable) public CfnDashboardProps.Builder refreshSchedule(CfnDashboard.RefreshScheduleProperty refreshSchedule) Sets the value ofCfnDashboardProps.getRefreshSchedule()- Parameters:
refreshSchedule- The schedule for a dashboard refresh.- Returns:
this
-
tags
Sets the value ofCfnDashboardProps.getTags()- Parameters:
tags- A list of tags.- Returns:
this
-
terminationProtectionEnabled
@Stability(Stable) public CfnDashboardProps.Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) Sets the value ofCfnDashboardProps.getTerminationProtectionEnabled()- Parameters:
terminationProtectionEnabled- Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.- Returns:
this
-
terminationProtectionEnabled
@Stability(Stable) public CfnDashboardProps.Builder terminationProtectionEnabled(IResolvable terminationProtectionEnabled) Sets the value ofCfnDashboardProps.getTerminationProtectionEnabled()- Parameters:
terminationProtectionEnabled- Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.- Returns:
this
-
widgets
Sets the value ofCfnDashboardProps.getWidgets()- Parameters:
widgets- An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. You do not need to specify widgets for the Highlights dashboard.- Returns:
this
-
widgets
Sets the value ofCfnDashboardProps.getWidgets()- Parameters:
widgets- An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. You do not need to specify widgets for the Highlights dashboard.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboardProps>- Returns:
- a new instance of
CfnDashboardProps - Throws:
NullPointerException- if any required attribute was not provided
-