Class GuardDutyFinding.OldPolicy.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.OldPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.OldPolicy>
- Enclosing interface:
GuardDutyFinding.OldPolicy
@Stability(Experimental)
public static final class GuardDutyFinding.OldPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.OldPolicy>
A builder for
GuardDutyFinding.OldPolicy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowUsersToChangePassword(List<String> allowUsersToChangePassword) Sets the value ofGuardDutyFinding.OldPolicy.getAllowUsersToChangePassword()build()Builds the configured instance.hardExpiry(List<String> hardExpiry) Sets the value ofGuardDutyFinding.OldPolicy.getHardExpiry()maxPasswordAge(List<String> maxPasswordAge) Sets the value ofGuardDutyFinding.OldPolicy.getMaxPasswordAge()minimumPasswordLength(List<String> minimumPasswordLength) Sets the value ofGuardDutyFinding.OldPolicy.getMinimumPasswordLength()passwordReusePrevention(List<String> passwordReusePrevention) Sets the value ofGuardDutyFinding.OldPolicy.getPasswordReusePrevention()requireLowercaseCharacters(List<String> requireLowercaseCharacters) Sets the value ofGuardDutyFinding.OldPolicy.getRequireLowercaseCharacters()requireNumbers(List<String> requireNumbers) Sets the value ofGuardDutyFinding.OldPolicy.getRequireNumbers()requireSymbols(List<String> requireSymbols) Sets the value ofGuardDutyFinding.OldPolicy.getRequireSymbols()requireUppercaseCharacters(List<String> requireUppercaseCharacters) Sets the value ofGuardDutyFinding.OldPolicy.getRequireUppercaseCharacters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowUsersToChangePassword
@Stability(Experimental) public GuardDutyFinding.OldPolicy.Builder allowUsersToChangePassword(List<String> allowUsersToChangePassword) Sets the value ofGuardDutyFinding.OldPolicy.getAllowUsersToChangePassword()- 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 GuardDutyFinding.OldPolicy.Builder hardExpiry(List<String> hardExpiry) Sets the value ofGuardDutyFinding.OldPolicy.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 GuardDutyFinding.OldPolicy.Builder maxPasswordAge(List<String> maxPasswordAge) Sets the value ofGuardDutyFinding.OldPolicy.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 GuardDutyFinding.OldPolicy.Builder minimumPasswordLength(List<String> minimumPasswordLength) Sets the value ofGuardDutyFinding.OldPolicy.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 GuardDutyFinding.OldPolicy.Builder passwordReusePrevention(List<String> passwordReusePrevention) Sets the value ofGuardDutyFinding.OldPolicy.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 GuardDutyFinding.OldPolicy.Builder requireLowercaseCharacters(List<String> requireLowercaseCharacters) Sets the value ofGuardDutyFinding.OldPolicy.getRequireLowercaseCharacters()- 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 GuardDutyFinding.OldPolicy.Builder requireNumbers(List<String> requireNumbers) Sets the value ofGuardDutyFinding.OldPolicy.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 GuardDutyFinding.OldPolicy.Builder requireSymbols(List<String> requireSymbols) Sets the value ofGuardDutyFinding.OldPolicy.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 GuardDutyFinding.OldPolicy.Builder requireUppercaseCharacters(List<String> requireUppercaseCharacters) Sets the value ofGuardDutyFinding.OldPolicy.getRequireUppercaseCharacters()- 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<GuardDutyFinding.OldPolicy>- Returns:
- a new instance of
GuardDutyFinding.OldPolicy - Throws:
NullPointerException- if any required attribute was not provided
-