public UpdateStreamProcessorRequest withDataSharingPreferenceForUpdate(StreamProcessorDataSharingPreference dataSharingPreferenceForUpdate) {
        setDataSharingPreferenceForUpdate(dataSharingPreferenceForUpdate);
        return this;
    }
<p>
Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at
the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored
on individual streams.
</p>

@param dataSharingPreferenceForUpdate
       Shows whether you are sharing data with Rekognition to improve model performance. You can choose this
       option at the account level or on a per-stream basis. Note that if you opt out at the account level this
       setting is ignored on individual streams.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/UpdateStreamProcessorRequest.java