public VolumeStatusItem withAttachmentStatuses(VolumeStatusAttachmentStatus... attachmentStatuses) {
        if (this.attachmentStatuses == null) {
            setAttachmentStatuses(new com.amazonaws.internal.SdkInternalList<VolumeStatusAttachmentStatus>(attachmentStatuses.length));
        }
        for (VolumeStatusAttachmentStatus ele : attachmentStatuses) {
            this.attachmentStatuses.add(ele);
        }
        return this;
    }
<p>
Information about the instances to which the volume is attached.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttachmentStatuses(java.util.Collection)} or {@link #withAttachmentStatuses(java.util.Collection)} if
you want to override the existing values.
</p>

@param attachmentStatuses
       Information about the instances to which the volume is attached.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/VolumeStatusItem.java