Class CfnDashboardMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudtrail.CfnDashboardMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboardMixinProps>
- Enclosing interface:
CfnDashboardMixinProps
@Stability(Stable)
public static final class CfnDashboardMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboardMixinProps>
A builder for
CfnDashboardMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDashboardMixinProps.getName()refreshSchedule(CfnDashboardPropsMixin.RefreshScheduleProperty refreshSchedule) Sets the value ofCfnDashboardMixinProps.getRefreshSchedule()refreshSchedule(IResolvable refreshSchedule) Sets the value ofCfnDashboardMixinProps.getRefreshSchedule()Sets the value ofCfnDashboardMixinProps.getTags()terminationProtectionEnabled(Boolean terminationProtectionEnabled) Sets the value ofCfnDashboardMixinProps.getTerminationProtectionEnabled()terminationProtectionEnabled(IResolvable terminationProtectionEnabled) Sets the value ofCfnDashboardMixinProps.getTerminationProtectionEnabled()Sets the value ofCfnDashboardMixinProps.getWidgets()widgets(IResolvable widgets) Sets the value ofCfnDashboardMixinProps.getWidgets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDashboardMixinProps.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
@Stability(Stable) public CfnDashboardMixinProps.Builder refreshSchedule(IResolvable refreshSchedule) Sets the value ofCfnDashboardMixinProps.getRefreshSchedule()- Parameters:
refreshSchedule- The schedule for a dashboard refresh.- Returns:
this
-
refreshSchedule
@Stability(Stable) public CfnDashboardMixinProps.Builder refreshSchedule(CfnDashboardPropsMixin.RefreshScheduleProperty refreshSchedule) Sets the value ofCfnDashboardMixinProps.getRefreshSchedule()- Parameters:
refreshSchedule- The schedule for a dashboard refresh.- Returns:
this
-
tags
Sets the value ofCfnDashboardMixinProps.getTags()- Parameters:
tags- A list of tags.- Returns:
this
-
terminationProtectionEnabled
@Stability(Stable) public CfnDashboardMixinProps.Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) Sets the value ofCfnDashboardMixinProps.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 CfnDashboardMixinProps.Builder terminationProtectionEnabled(IResolvable terminationProtectionEnabled) Sets the value ofCfnDashboardMixinProps.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 ofCfnDashboardMixinProps.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 ofCfnDashboardMixinProps.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<CfnDashboardMixinProps>- Returns:
- a new instance of
CfnDashboardMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-