public final ReportConfig createReportConfig(LocationName parent, ReportConfig reportConfig) {
    CreateReportConfigRequest request =
        CreateReportConfigRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setReportConfig(reportConfig)
            .build();
    return createReportConfig(request);
  }
Creates a new ReportConfig in a given project and location.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (StorageInsightsClient storageInsightsClient = StorageInsightsClient.create()) {
  LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  ReportConfig reportConfig = ReportConfig.newBuilder().build();
  ReportConfig response = storageInsightsClient.createReportConfig(parent, reportConfig);
}
}</pre>

@param parent Required. Value for parent.
@param reportConfig Required. The resource being created
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java