Interface StatisticAnnotation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<StatisticAnnotation.Builder,,StatisticAnnotation> SdkBuilder<StatisticAnnotation.Builder,,StatisticAnnotation> SdkPojo
- Enclosing class:
StatisticAnnotation
@Mutable
@NotThreadSafe
public static interface StatisticAnnotation.Builder
extends SdkPojo, CopyableBuilder<StatisticAnnotation.Builder,StatisticAnnotation>
-
Method Summary
Modifier and TypeMethodDescriptiondefault StatisticAnnotation.BuilderinclusionAnnotation(Consumer<TimestampedInclusionAnnotation.Builder> inclusionAnnotation) The inclusion annotation applied to the statistic.inclusionAnnotation(TimestampedInclusionAnnotation inclusionAnnotation) The inclusion annotation applied to the statistic.The Profile ID.statisticId(String statisticId) The Statistic ID.statisticRecordedOn(Instant statisticRecordedOn) The timestamp when the annotated statistic was recorded.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
-
profileId
The Profile ID.
- Parameters:
profileId- The Profile ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticId
The Statistic ID.
- Parameters:
statisticId- The Statistic ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticRecordedOn
The timestamp when the annotated statistic was recorded.
- Parameters:
statisticRecordedOn- The timestamp when the annotated statistic was recorded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionAnnotation
The inclusion annotation applied to the statistic.
- Parameters:
inclusionAnnotation- The inclusion annotation applied to the statistic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionAnnotation
default StatisticAnnotation.Builder inclusionAnnotation(Consumer<TimestampedInclusionAnnotation.Builder> inclusionAnnotation) The inclusion annotation applied to the statistic.
This is a convenience method that creates an instance of theTimestampedInclusionAnnotation.Builderavoiding the need to create one manually viaTimestampedInclusionAnnotation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinclusionAnnotation(TimestampedInclusionAnnotation).- Parameters:
inclusionAnnotation- a consumer that will call methods onTimestampedInclusionAnnotation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-