public CreateSampleFindingsRequest withFindingTypes(FindingType... findingTypes) {
        java.util.ArrayList<String> findingTypesCopy = new java.util.ArrayList<String>(findingTypes.length);
        for (FindingType value : findingTypes) {
            findingTypesCopy.add(value.toString());
        }
        if (getFindingTypes() == null) {
            setFindingTypes(findingTypesCopy);
        } else {
            getFindingTypes().addAll(findingTypesCopy);
        }
        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