Interface RouteFerrySpan.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteFerrySpan.Builder,
,RouteFerrySpan> SdkBuilder<RouteFerrySpan.Builder,
,RouteFerrySpan> SdkPojo
- Enclosing class:
RouteFerrySpan
-
Method Summary
Modifier and TypeMethodDescription3 letter Country code corresponding to the Span.Distance of the computed span.Duration of the computed span.geometryOffset
(Integer geometryOffset) Offset in the leg geometry corresponding to the start of this span.names
(Collection<LocalizedString> names) Provides an array of names of the ferry span in available languages.names
(Consumer<LocalizedString.Builder>... names) Provides an array of names of the ferry span in available languages.names
(LocalizedString... names) Provides an array of names of the ferry span in available languages.2-3 letter Region code corresponding to the Span.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, sdkFieldNameToField, sdkFields
-
Method Details
-
country
3 letter Country code corresponding to the Span.
- Parameters:
country
- 3 letter Country code corresponding to the Span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distance
Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
Unit:
meters
- Parameters:
distance
- Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.Unit:
meters
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
Unit:
seconds
- Parameters:
duration
- Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.Unit:
seconds
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometryOffset
Offset in the leg geometry corresponding to the start of this span.
- Parameters:
geometryOffset
- Offset in the leg geometry corresponding to the start of this span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
names
Provides an array of names of the ferry span in available languages.
- Parameters:
names
- Provides an array of names of the ferry span in available languages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
names
Provides an array of names of the ferry span in available languages.
- Parameters:
names
- Provides an array of names of the ferry span in available languages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
names
Provides an array of names of the ferry span in available languages.
This is a convenience method that creates an instance of theLocalizedString.Builder
avoiding the need to create one manually viaLocalizedString.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonames(List<LocalizedString>)
.- Parameters:
names
- a consumer that will call methods onLocalizedString.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
region
2-3 letter Region code corresponding to the Span. This is either a province or a state.
- Parameters:
region
- 2-3 letter Region code corresponding to the Span. This is either a province or a state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-