use of com.google.cloud.securitycenter.v1.GetBigQueryExportRequest in project java-securitycenter by googleapis.
the class GetBigQueryExport method getBigQueryExport.
// Retrieve an existing BigQuery export.
public static void getBigQueryExport(String parent, String bigQueryExportId) throws IOException {
// the "close" method on the client to safely clean up any remaining background resources.
try (SecurityCenterClient client = SecurityCenterClient.create()) {
GetBigQueryExportRequest bigQueryExportRequest = GetBigQueryExportRequest.newBuilder().setName(String.format("%s/bigQueryExports/%s", parent, bigQueryExportId)).build();
BigQueryExport response = client.getBigQueryExport(bigQueryExportRequest);
System.out.printf("Retrieved the BigQuery export: %s", response.getName());
}
}
Aggregations