Interface Trend.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Trend.Builder,,Trend> SdkBuilder<Trend.Builder,,Trend> SdkPojo
- Enclosing class:
Trend
@Mutable
@NotThreadSafe
public static interface Trend.Builder
extends SdkPojo, CopyableBuilder<Trend.Builder,Trend>
-
Method Summary
Modifier and TypeMethodDescriptionbyTimeWindow(Collection<TimeWindowGroup> byTimeWindow) The number of findings in each time window.byTimeWindow(Consumer<TimeWindowGroup.Builder>... byTimeWindow) The number of findings in each time window.byTimeWindow(TimeWindowGroup... byTimeWindow) The number of findings in each time window.The timestamp at which the period of the trend ends.granularity(String granularity) The length of each time window in the trend.granularity(TimeGranularity granularity) The length of each time window in the trend.The timestamp at which the period of the trend starts.totalFindings(Long totalFindings) The total number of findings in the period.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
-
granularity
The length of each time window in the trend. Possible values are
DAY,WEEK, andMONTH.- Parameters:
granularity- The length of each time window in the trend. Possible values areDAY,WEEK, andMONTH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
granularity
The length of each time window in the trend. Possible values are
DAY,WEEK, andMONTH.- Parameters:
granularity- The length of each time window in the trend. Possible values areDAY,WEEK, andMONTH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startedAt
The timestamp at which the period of the trend starts.
- Parameters:
startedAt- The timestamp at which the period of the trend starts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endedAt
The timestamp at which the period of the trend ends.
- Parameters:
endedAt- The timestamp at which the period of the trend ends.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalFindings
The total number of findings in the period.
- Parameters:
totalFindings- The total number of findings in the period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
byTimeWindow
The number of findings in each time window.
- Parameters:
byTimeWindow- The number of findings in each time window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
byTimeWindow
The number of findings in each time window.
- Parameters:
byTimeWindow- The number of findings in each time window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
byTimeWindow
The number of findings in each time window.
This is a convenience method that creates an instance of theTimeWindowGroup.Builderavoiding the need to create one manually viaTimeWindowGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobyTimeWindow(List<TimeWindowGroup>).- Parameters:
byTimeWindow- a consumer that will call methods onTimeWindowGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-