Class ScheduledAuditProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.alpha.ScheduledAuditProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScheduledAuditProps>
- Enclosing interface:
ScheduledAuditProps
@Stability(Experimental)
public static final class ScheduledAuditProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScheduledAuditProps>
A builder for
ScheduledAuditProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountAuditConfiguration
(IAccountAuditConfiguration accountAuditConfiguration) Sets the value ofScheduledAuditProps.getAccountAuditConfiguration()
auditChecks
(List<? extends AuditCheck> auditChecks) Sets the value ofScheduledAuditProps.getAuditChecks()
build()
Builds the configured instance.dayOfMonth
(DayOfMonth dayOfMonth) Sets the value ofScheduledAuditProps.getDayOfMonth()
Sets the value ofScheduledAuditProps.getDayOfWeek()
Sets the value ofScheduledAuditProps.getFrequency()
scheduledAuditName
(String scheduledAuditName) Sets the value ofScheduledAuditProps.getScheduledAuditName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountAuditConfiguration
@Stability(Experimental) public ScheduledAuditProps.Builder accountAuditConfiguration(IAccountAuditConfiguration accountAuditConfiguration) Sets the value ofScheduledAuditProps.getAccountAuditConfiguration()
- Parameters:
accountAuditConfiguration
- Account audit configuration. This parameter is required. The audit checks specified inauditChecks
must be enabled in this configuration.- Returns:
this
-
auditChecks
@Stability(Experimental) public ScheduledAuditProps.Builder auditChecks(List<? extends AuditCheck> auditChecks) Sets the value ofScheduledAuditProps.getAuditChecks()
- Parameters:
auditChecks
- Which checks are performed during the scheduled audit. This parameter is required. Checks must be enabled for your account.- Returns:
this
-
frequency
Sets the value ofScheduledAuditProps.getFrequency()
- Parameters:
frequency
- How often the scheduled audit occurs. This parameter is required.- Returns:
this
-
dayOfMonth
Sets the value ofScheduledAuditProps.getDayOfMonth()
- Parameters:
dayOfMonth
- The day of the month on which the scheduled audit is run (if the frequency is "MONTHLY"). If days 29-31 are specified, and the month does not have that many days, the audit takes place on the "LAST" day of the month.- Returns:
this
-
dayOfWeek
Sets the value ofScheduledAuditProps.getDayOfWeek()
- Parameters:
dayOfWeek
- The day of the week on which the scheduled audit is run (if the frequency is "WEEKLY" or "BIWEEKLY").- Returns:
this
-
scheduledAuditName
@Stability(Experimental) public ScheduledAuditProps.Builder scheduledAuditName(String scheduledAuditName) Sets the value ofScheduledAuditProps.getScheduledAuditName()
- Parameters:
scheduledAuditName
- The name of the scheduled audit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScheduledAuditProps>
- Returns:
- a new instance of
ScheduledAuditProps
- Throws:
NullPointerException
- if any required attribute was not provided
-