Interface RelatedObservations.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RelatedObservations.Builder,
,RelatedObservations> SdkBuilder<RelatedObservations.Builder,
,RelatedObservations> SdkPojo
- Enclosing class:
RelatedObservations
public static interface RelatedObservations.Builder
extends SdkPojo, CopyableBuilder<RelatedObservations.Builder,RelatedObservations>
-
Method Summary
Modifier and TypeMethodDescriptionobservationList
(Collection<Observation> observationList) The list of observations related to the problem.observationList
(Consumer<Observation.Builder>... observationList) The list of observations related to the problem.observationList
(Observation... observationList) The list of observations related to the problem.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
-
observationList
The list of observations related to the problem.
- Parameters:
observationList
- The list of observations related to the problem.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
observationList
The list of observations related to the problem.
- Parameters:
observationList
- The list of observations related to the problem.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
observationList
The list of observations related to the problem.
This is a convenience method that creates an instance of theObservation.Builder
avoiding the need to create one manually viaObservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toobservationList(List<Observation>)
.- Parameters:
observationList
- a consumer that will call methods onObservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-