public AttemptDetail withTaskProperties(AttemptEcsTaskDetails... taskProperties) {
        if (this.taskProperties == null) {
            setTaskProperties(new java.util.ArrayList<AttemptEcsTaskDetails>(taskProperties.length));
        }
        for (AttemptEcsTaskDetails ele : taskProperties) {
            this.taskProperties.add(ele);
        }
        return this;
    }
<p>
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTaskProperties(java.util.Collection)} or {@link #withTaskProperties(java.util.Collection)} if you want
to override the existing values.
</p>

@param taskProperties
       The properties for a task definition that describes the container and volume definitions of an Amazon ECS
       task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/AttemptDetail.java