Interface FindingsOutput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FindingsOutput.Builder,,FindingsOutput> SdkBuilder<FindingsOutput.Builder,,FindingsOutput> SdkPojo
- Enclosing class:
FindingsOutput
-
Method Summary
Modifier and TypeMethodDescriptiondefault FindingsOutput.Builderfilters(Consumer<OcsfFindingFilters.Builder> filters) An optional set of OCSF finding filters that restrict which findings are exported.filters(OcsfFindingFilters filters) An optional set of OCSF finding filters that restrict which findings are exported.The output format of the export.format(FindingsExportFormat format) The output format of the export.selectedFields(Collection<FindingsSelectableField> selectedFields) The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity).selectedFields(FindingsSelectableField... selectedFields) The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity).selectedFieldsWithStrings(String... selectedFields) The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity).selectedFieldsWithStrings(Collection<String> selectedFields) The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
format
The output format of the export.
CSVproduces comma-separated rows that are suitable for spreadsheets and analysis tools.OCSF_JSONproduces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub.- Parameters:
format- The output format of the export.CSVproduces comma-separated rows that are suitable for spreadsheets and analysis tools.OCSF_JSONproduces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
The output format of the export.
CSVproduces comma-separated rows that are suitable for spreadsheets and analysis tools.OCSF_JSONproduces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub.- Parameters:
format- The output format of the export.CSVproduces comma-separated rows that are suitable for spreadsheets and analysis tools.OCSF_JSONproduces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
filters
An optional set of OCSF finding filters that restrict which findings are exported. The filter structure is the same as the one used by
GetFindingsV2. If you omit this member, Security Hub exports all findings available to the caller. When echoed byGetExportJobV2, relative date ranges are returned unresolved.- Parameters:
filters- An optional set of OCSF finding filters that restrict which findings are exported. The filter structure is the same as the one used byGetFindingsV2. If you omit this member, Security Hub exports all findings available to the caller. When echoed byGetExportJobV2, relative date ranges are returned unresolved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
An optional set of OCSF finding filters that restrict which findings are exported. The filter structure is the same as the one used by
This is a convenience method that creates an instance of theGetFindingsV2. If you omit this member, Security Hub exports all findings available to the caller. When echoed byGetExportJobV2, relative date ranges are returned unresolved.OcsfFindingFilters.Builderavoiding the need to create one manually viaOcsfFindingFilters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(OcsfFindingFilters).- Parameters:
filters- a consumer that will call methods onOcsfFindingFilters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectedFieldsWithStrings
The OCSF finding fields to include in the export, specified as OCSF field paths (for example,
finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
- Parameters:
selectedFields- The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
selectedFieldsWithStrings
The OCSF finding fields to include in the export, specified as OCSF field paths (for example,
finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
- Parameters:
selectedFields- The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
selectedFields
The OCSF finding fields to include in the export, specified as OCSF field paths (for example,
finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
- Parameters:
selectedFields- The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
selectedFields
The OCSF finding fields to include in the export, specified as OCSF field paths (for example,
finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
- Parameters:
selectedFields- The OCSF finding fields to include in the export, specified as OCSF field paths (for example,finding_info.titleorseverity). You can specify from 1 to 50 fields.Whether this parameter is required depends on the value of
Format:-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-