Interface RouteFerrySpan.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteFerrySpan.Builder,RouteFerrySpan>,SdkBuilder<RouteFerrySpan.Builder,RouteFerrySpan>,SdkPojo
- Enclosing class:
- RouteFerrySpan
public static interface RouteFerrySpan.Builder extends SdkPojo, CopyableBuilder<RouteFerrySpan.Builder,RouteFerrySpan>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteFerrySpan.Buildercountry(String country)3 letter Country code corresponding to the Span.RouteFerrySpan.Builderdistance(Long distance)Distance of the computed span.RouteFerrySpan.Builderduration(Long duration)Duration of the computed span.RouteFerrySpan.BuildergeometryOffset(Integer geometryOffset)Offset in the leg geometry corresponding to the start of this span.RouteFerrySpan.Buildernames(Collection<LocalizedString> names)Provides an array of names of the ferry span in available languages.RouteFerrySpan.Buildernames(Consumer<LocalizedString.Builder>... names)Provides an array of names of the ferry span in available languages.RouteFerrySpan.Buildernames(LocalizedString... names)Provides an array of names of the ferry span in available languages.RouteFerrySpan.Builderregion(String region)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 Detail
-
country
RouteFerrySpan.Builder country(String 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
RouteFerrySpan.Builder distance(Long distance)
Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
RouteFerrySpan.Builder duration(Long 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
RouteFerrySpan.Builder geometryOffset(Integer 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
RouteFerrySpan.Builder names(Collection<LocalizedString> 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
RouteFerrySpan.Builder names(LocalizedString... 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
RouteFerrySpan.Builder names(Consumer<LocalizedString.Builder>... names)
Provides an array of names of the ferry span in available languages.
This is a convenience method that creates an instance of theLocalizedString.Builderavoiding the need to create one manually viaLocalizedString.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#names(List.) - 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:
#names(java.util.Collection)
-
region
RouteFerrySpan.Builder region(String 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.
-
-