/** * <p> * The password policy. * </p> * This is a convenience that creates an instance of the {@link PasswordPolicyType.Builder} avoiding the need to * create one manually via {@link PasswordPolicyType#builder()}. * * When the {@link Consumer} completes, {@link PasswordPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #passwordPolicy(PasswordPolicyType)}. * * @param passwordPolicy * a consumer that will call methods on {@link PasswordPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #passwordPolicy(PasswordPolicyType) */ default Builder passwordPolicy(Consumer<PasswordPolicyType.Builder> passwordPolicy) { return passwordPolicy(PasswordPolicyType.builder().applyMutation(passwordPolicy).build()); } }
/** * <p> * A container for information about the user pool password policy. * </p> * This is a convenience that creates an instance of the {@link PasswordPolicyType.Builder} avoiding the need to * create one manually via {@link PasswordPolicyType#builder()}. * * When the {@link Consumer} completes, {@link PasswordPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #passwordPolicy(PasswordPolicyType)}. * * @param passwordPolicy * a consumer that will call methods on {@link PasswordPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #passwordPolicy(PasswordPolicyType) */ default Builder passwordPolicy(Consumer<PasswordPolicyType.Builder> passwordPolicy) { return passwordPolicy(PasswordPolicyType.builder().applyMutation(passwordPolicy).build()); } }
public PasswordPolicyType unmarshall(JsonUnmarshallerContext context) throws Exception { PasswordPolicyType.Builder passwordPolicyTypeBuilder = PasswordPolicyType.builder();