Interface FindingHistoryRecord.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FindingHistoryRecord.Builder,
,FindingHistoryRecord> SdkBuilder<FindingHistoryRecord.Builder,
,FindingHistoryRecord> SdkPojo
- Enclosing class:
FindingHistoryRecord
-
Method Summary
Modifier and TypeMethodDescriptionfindingCreated
(Boolean findingCreated) Identifies whether the event marks the creation of a new finding.default FindingHistoryRecord.Builder
findingIdentifier
(Consumer<AwsSecurityFindingIdentifier.Builder> findingIdentifier) Sets the value of the FindingIdentifier property for this object.findingIdentifier
(AwsSecurityFindingIdentifier findingIdentifier) Sets the value of the FindingIdentifier property for this object.A token for pagination purposes.updates
(Collection<FindingHistoryUpdate> updates) An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.updates
(Consumer<FindingHistoryUpdate.Builder>... updates) An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.updates
(FindingHistoryUpdate... updates) An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.default FindingHistoryRecord.Builder
updateSource
(Consumer<FindingHistoryUpdateSource.Builder> updateSource) Identifies the source of the event that changed the finding.updateSource
(FindingHistoryUpdateSource updateSource) Identifies the source of the event that changed the finding.updateTime
(Instant updateTime) A timestamp that indicates when Security Hub processed the updated finding record.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
findingIdentifier
Sets the value of the FindingIdentifier property for this object.- Parameters:
findingIdentifier
- The new value for the FindingIdentifier property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingIdentifier
default FindingHistoryRecord.Builder findingIdentifier(Consumer<AwsSecurityFindingIdentifier.Builder> findingIdentifier) Sets the value of the FindingIdentifier property for this object. This is a convenience method that creates an instance of theAwsSecurityFindingIdentifier.Builder
avoiding the need to create one manually viaAwsSecurityFindingIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofindingIdentifier(AwsSecurityFindingIdentifier)
.- Parameters:
findingIdentifier
- a consumer that will call methods onAwsSecurityFindingIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updateTime
A timestamp that indicates when Security Hub processed the updated finding record.
This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
- Parameters:
updateTime
- A timestamp that indicates when Security Hub processed the updated finding record.This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
findingCreated
Identifies whether the event marks the creation of a new finding. A value of
True
means that the finding is newly created. A value ofFalse
means that the finding isn’t newly created.- Parameters:
findingCreated
- Identifies whether the event marks the creation of a new finding. A value ofTrue
means that the finding is newly created. A value ofFalse
means that the finding isn’t newly created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateSource
Identifies the source of the event that changed the finding. For example, an integrated Amazon Web Servicesservice or third-party partner integration may call
BatchImportFindings
, or an Security Hub customer may callBatchUpdateFindings
.- Parameters:
updateSource
- Identifies the source of the event that changed the finding. For example, an integrated Amazon Web Servicesservice or third-party partner integration may callBatchImportFindings
, or an Security Hub customer may callBatchUpdateFindings
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateSource
default FindingHistoryRecord.Builder updateSource(Consumer<FindingHistoryUpdateSource.Builder> updateSource) Identifies the source of the event that changed the finding. For example, an integrated Amazon Web Servicesservice or third-party partner integration may call
This is a convenience method that creates an instance of theBatchImportFindings
, or an Security Hub customer may callBatchUpdateFindings
.FindingHistoryUpdateSource.Builder
avoiding the need to create one manually viaFindingHistoryUpdateSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toupdateSource(FindingHistoryUpdateSource)
.- Parameters:
updateSource
- a consumer that will call methods onFindingHistoryUpdateSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updates
An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.
- Parameters:
updates
- An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.
- Parameters:
updates
- An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
An array of objects that provides details about the finding change event, including the Amazon Web Services Security Finding Format (ASFF) field that changed, the value of the field before the change, and the value of the field after the change.
This is a convenience method that creates an instance of theFindingHistoryUpdate.Builder
avoiding the need to create one manually viaFindingHistoryUpdate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toupdates(List<FindingHistoryUpdate>)
.- Parameters:
updates
- a consumer that will call methods onFindingHistoryUpdate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token for pagination purposes. Provide this token in the subsequent request to
GetFindingsHistory
to get up to an additional 100 results of history for the same finding that you specified in your initial request.- Parameters:
nextToken
- A token for pagination purposes. Provide this token in the subsequent request toGetFindingsHistory
to get up to an additional 100 results of history for the same finding that you specified in your initial request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-