public DetachInstancesResult withActivities(java.util.Collection<Activity> activities) {
        setActivities(activities);
        return this;
    }
<p>
The activities related to detaching the instances from the Auto Scaling group.
</p>

@param activities
       The activities related to detaching the instances from the Auto Scaling group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/DetachInstancesResult.java