public EcsClusterDetails withTaskDetails(EcsTaskDetails taskDetails) {
        setTaskDetails(taskDetails);
        return this;
    }
<p>
Contains information about the details of the ECS Task.
</p>

@param taskDetails
       Contains information about the details of the ECS Task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/EcsClusterDetails.java