Class DetectorEvents.GuardDutyFinding.NewPolicy.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.NewPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.NewPolicy>
- Enclosing interface:
DetectorEvents.GuardDutyFinding.NewPolicy
@Stability(Experimental)
public static final class DetectorEvents.GuardDutyFinding.NewPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.NewPolicy>
A builder for
DetectorEvents.GuardDutyFinding.NewPolicy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowUsersToChangePassword(List<String> allowUsersToChangePassword) build()Builds the configured instance.hardExpiry(List<String> hardExpiry) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getHardExpiry()maxPasswordAge(List<String> maxPasswordAge) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getMaxPasswordAge()minimumPasswordLength(List<String> minimumPasswordLength) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getMinimumPasswordLength()passwordReusePrevention(List<String> passwordReusePrevention) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getPasswordReusePrevention()requireLowercaseCharacters(List<String> requireLowercaseCharacters) requireNumbers(List<String> requireNumbers) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getRequireNumbers()requireSymbols(List<String> requireSymbols) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getRequireSymbols()requireUppercaseCharacters(List<String> requireUppercaseCharacters)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowUsersToChangePassword
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder allowUsersToChangePassword(List<String> allowUsersToChangePassword) - Parameters:
allowUsersToChangePassword- allowUsersToChangePassword property. Specify an array of string values to match this event if the actual value of allowUsersToChangePassword is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
hardExpiry
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder hardExpiry(List<String> hardExpiry) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getHardExpiry()- Parameters:
hardExpiry- hardExpiry property. Specify an array of string values to match this event if the actual value of hardExpiry is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
maxPasswordAge
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder maxPasswordAge(List<String> maxPasswordAge) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getMaxPasswordAge()- Parameters:
maxPasswordAge- maxPasswordAge property. Specify an array of string values to match this event if the actual value of maxPasswordAge is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
minimumPasswordLength
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder minimumPasswordLength(List<String> minimumPasswordLength) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getMinimumPasswordLength()- Parameters:
minimumPasswordLength- minimumPasswordLength property. Specify an array of string values to match this event if the actual value of minimumPasswordLength is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
passwordReusePrevention
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder passwordReusePrevention(List<String> passwordReusePrevention) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getPasswordReusePrevention()- Parameters:
passwordReusePrevention- passwordReusePrevention property. Specify an array of string values to match this event if the actual value of passwordReusePrevention is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requireLowercaseCharacters
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder requireLowercaseCharacters(List<String> requireLowercaseCharacters) - Parameters:
requireLowercaseCharacters- requireLowercaseCharacters property. Specify an array of string values to match this event if the actual value of requireLowercaseCharacters is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requireNumbers
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder requireNumbers(List<String> requireNumbers) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getRequireNumbers()- Parameters:
requireNumbers- requireNumbers property. Specify an array of string values to match this event if the actual value of requireNumbers is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requireSymbols
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder requireSymbols(List<String> requireSymbols) Sets the value ofDetectorEvents.GuardDutyFinding.NewPolicy.getRequireSymbols()- Parameters:
requireSymbols- requireSymbols property. Specify an array of string values to match this event if the actual value of requireSymbols is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requireUppercaseCharacters
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.NewPolicy.Builder requireUppercaseCharacters(List<String> requireUppercaseCharacters) - Parameters:
requireUppercaseCharacters- requireUppercaseCharacters property. Specify an array of string values to match this event if the actual value of requireUppercaseCharacters is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.NewPolicy>- Returns:
- a new instance of
DetectorEvents.GuardDutyFinding.NewPolicy - Throws:
NullPointerException- if any required attribute was not provided
-