public GetLogGroupFieldsResult withLogGroupFields(LogGroupField... logGroupFields) {
        if (this.logGroupFields == null) {
            setLogGroupFields(new com.amazonaws.internal.SdkInternalList<LogGroupField>(logGroupFields.length));
        }
        for (LogGroupField ele : logGroupFields) {
            this.logGroupFields.add(ele);
        }
        return this;
    }
<p>
The array of fields found in the query. Each object in the array contains the name of the field, along with the
percentage of time it appeared in the log events that were queried.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLogGroupFields(java.util.Collection)} or {@link #withLogGroupFields(java.util.Collection)} if you want
to override the existing values.
</p>

@param logGroupFields
       The array of fields found in the query. Each object in the array contains the name of the field, along
       with the percentage of time it appeared in the log events that were queried.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/GetLogGroupFieldsResult.java