@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getLogGroupName() != null)
            sb.append("LogGroupName: ").append(getLogGroupName()).append(",");
        if (getDatetimeFormat() != null)
            sb.append("DatetimeFormat: ").append(getDatetimeFormat()).append(",");
        if (getTimeZone() != null)
            sb.append("TimeZone: ").append(getTimeZone()).append(",");
        if (getFile() != null)
            sb.append("File: ").append(getFile()).append(",");
        if (getFileFingerprintLines() != null)
            sb.append("FileFingerprintLines: ").append(getFileFingerprintLines()).append(",");
        if (getMultiLineStartPattern() != null)
            sb.append("MultiLineStartPattern: ").append(getMultiLineStartPattern()).append(",");
        if (getInitialPosition() != null)
            sb.append("InitialPosition: ").append(getInitialPosition()).append(",");
        if (getEncoding() != null)
            sb.append("Encoding: ").append(getEncoding()).append(",");
        if (getBufferDuration() != null)
            sb.append("BufferDuration: ").append(getBufferDuration()).append(",");
        if (getBatchCount() != null)
            sb.append("BatchCount: ").append(getBatchCount()).append(",");
        if (getBatchSize() != null)
            sb.append("BatchSize: ").append(getBatchSize());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/CloudWatchLogsLogStream.java