public GetInvestigationResult withEntityType(String entityType) {
        setEntityType(entityType);
        return this;
    }
<p>
Type of entity. For example, Amazon Web Services accounts, such as an IAM user and/or IAM role.
</p>

@param entityType
       Type of entity. For example, Amazon Web Services accounts, such as an IAM user and/or IAM role.
@return Returns a reference to this object so that method calls can be chained together.
@see EntityType
aws-java-sdk-detective/src/main/java/com/amazonaws/services/detective/model/GetInvestigationResult.java