return ecsParametersBuilder.build();
/** * <p> * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. * For more information about Amazon ECS tasks, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> * in the <i>Amazon EC2 Container Service Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to * create one manually via {@link EcsParameters#builder()}. * * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its * result is passed to {@link #ecsParameters(EcsParameters)}. * * @param ecsParameters * a consumer that will call methods on {@link EcsParameters.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ecsParameters(EcsParameters) */ default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) { return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build()); } }
/** * <p> * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. * For more information about Amazon ECS tasks, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> * in the <i>Amazon EC2 Container Service Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to * create one manually via {@link EcsParameters#builder()}. * * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its * result is passed to {@link #ecsParameters(EcsParameters)}. * * @param ecsParameters * a consumer that will call methods on {@link EcsParameters.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ecsParameters(EcsParameters) */ default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) { return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build()); }
/** * <p> * Contains the Amazon ECS task definition and task count to be used, if the event target is an Amazon ECS task. * For more information about Amazon ECS tasks, see <a * href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task Definitions </a> * in the <i>Amazon EC2 Container Service Developer Guide</i>. * </p> * This is a convenience that creates an instance of the {@link EcsParameters.Builder} avoiding the need to * create one manually via {@link EcsParameters#builder()}. * * When the {@link Consumer} completes, {@link EcsParameters.Builder#build()} is called immediately and its * result is passed to {@link #ecsParameters(EcsParameters)}. * * @param ecsParameters * a consumer that will call methods on {@link EcsParameters.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ecsParameters(EcsParameters) */ default Builder ecsParameters(Consumer<EcsParameters.Builder> ecsParameters) { return ecsParameters(EcsParameters.builder().applyMutation(ecsParameters).build()); }