Class CfnCisScanConfiguration.ScheduleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.inspectorv2.CfnCisScanConfiguration.ScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCisScanConfiguration.ScheduleProperty>
- Enclosing interface:
CfnCisScanConfiguration.ScheduleProperty
@Stability(Stable)
public static final class CfnCisScanConfiguration.ScheduleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCisScanConfiguration.ScheduleProperty>
A builder for
CfnCisScanConfiguration.ScheduleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.daily
(IResolvable daily) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getDaily()
Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getDaily()
monthly
(IResolvable monthly) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getMonthly()
Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getMonthly()
Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getOneTime()
weekly
(IResolvable weekly) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getWeekly()
Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getWeekly()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
daily
Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getDaily()
- Parameters:
daily
- A daily schedule.- Returns:
this
-
daily
@Stability(Stable) public CfnCisScanConfiguration.ScheduleProperty.Builder daily(CfnCisScanConfiguration.DailyScheduleProperty daily) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getDaily()
- Parameters:
daily
- A daily schedule.- Returns:
this
-
monthly
@Stability(Stable) public CfnCisScanConfiguration.ScheduleProperty.Builder monthly(IResolvable monthly) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getMonthly()
- Parameters:
monthly
- A monthly schedule.- Returns:
this
-
monthly
@Stability(Stable) public CfnCisScanConfiguration.ScheduleProperty.Builder monthly(CfnCisScanConfiguration.MonthlyScheduleProperty monthly) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getMonthly()
- Parameters:
monthly
- A monthly schedule.- Returns:
this
-
oneTime
Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getOneTime()
- Parameters:
oneTime
- A one time schedule.- Returns:
this
-
weekly
@Stability(Stable) public CfnCisScanConfiguration.ScheduleProperty.Builder weekly(IResolvable weekly) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getWeekly()
- Parameters:
weekly
- A weekly schedule.- Returns:
this
-
weekly
@Stability(Stable) public CfnCisScanConfiguration.ScheduleProperty.Builder weekly(CfnCisScanConfiguration.WeeklyScheduleProperty weekly) Sets the value ofCfnCisScanConfiguration.ScheduleProperty.getWeekly()
- Parameters:
weekly
- A weekly schedule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCisScanConfiguration.ScheduleProperty>
- Returns:
- a new instance of
CfnCisScanConfiguration.ScheduleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-