public CreateSampleFindingsRequest withFindingTypes(java.util.Collection<String> findingTypes) {
        setFindingTypes(findingTypes);
        return this;
    }
<p>
An array of finding types, one for each type of sample finding to create. To create a sample of every type of
finding that Amazon Macie supports, don't include this array in your request.
</p>

@param findingTypes
       An array of finding types, one for each type of sample finding to create. To create a sample of every type
       of finding that Amazon Macie supports, don't include this array in your request.
@return Returns a reference to this object so that method calls can be chained together.
@see FindingType
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/CreateSampleFindingsRequest.java