/** * <p> * A container for the policies associated with a user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * A container with the policies you wish to update in a user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * The policies associated with the user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * The policies associated with the new user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * A container with the policies you wish to update in a user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }
/** * <p> * The policies associated with the new user pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolPolicyType.Builder} avoiding the need to * create one manually via {@link UserPoolPolicyType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolPolicyType.Builder#build()} is called immediately and its * result is passed to {@link #policies(UserPoolPolicyType)}. * * @param policies * a consumer that will call methods on {@link UserPoolPolicyType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #policies(UserPoolPolicyType) */ default Builder policies(Consumer<UserPoolPolicyType.Builder> policies) { return policies(UserPoolPolicyType.builder().applyMutation(policies).build()); }