public DataCaptureConfig withCaptureOptions(CaptureOption... captureOptions) {
        if (this.captureOptions == null) {
            setCaptureOptions(new java.util.ArrayList<CaptureOption>(captureOptions.length));
        }
        for (CaptureOption ele : captureOptions) {
            this.captureOptions.add(ele);
        }
        return this;
    }
<p>
Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCaptureOptions(java.util.Collection)} or {@link #withCaptureOptions(java.util.Collection)} if you want
to override the existing values.
</p>

@param captureOptions
       Specifies data Model Monitor will capture. You can configure whether to collect only input, only output,
       or both
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/DataCaptureConfig.java