Package com.duffel.sdk.model
Class OrderChangeSlicesSlice
java.lang.Object
com.duffel.sdk.model.OrderChangeSlicesSlice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class OrderChangeSlicesSlice
extends Object
A slice that is being removed or added
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the destinationstatic enumThe type of the origin -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSegmentsItem(OrderChangeSlicesSliceSegmentsInner segmentsItem) destination(Place3 destination) destinationType(OrderChangeSlicesSlice.DestinationTypeEnum destinationType) boolean@Valid Place3Get destinationThe type of the destinationThe duration of the slice, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) durationorg.openapitools.jackson.nullable.JsonNullable<String>getId()Duffel's unique identifier for the slice.@Valid Place4Get originThe type of the originThe segments - that is, specific flights - that the airline is offering to get the passengers from the `origin` to the `destination`inthashCode()originType(OrderChangeSlicesSlice.OriginTypeEnum originType) segments(List<OrderChangeSlicesSliceSegmentsInner> segments) voidsetDestination(Place3 destination) voidsetDestinationType(OrderChangeSlicesSlice.DestinationTypeEnum destinationType) voidsetDuration(String duration) voidsetDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration) voidvoidvoidsetOriginType(OrderChangeSlicesSlice.OriginTypeEnum originType) voidsetSegments(List<OrderChangeSlicesSliceSegmentsInner> segments) toString()
-
Field Details
-
JSON_PROPERTY_DESTINATION
- See Also:
-
JSON_PROPERTY_DESTINATION_TYPE
- See Also:
-
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_ORIGIN
- See Also:
-
JSON_PROPERTY_ORIGIN_TYPE
- See Also:
-
JSON_PROPERTY_SEGMENTS
- See Also:
-
-
Constructor Details
-
OrderChangeSlicesSlice
public OrderChangeSlicesSlice()
-
-
Method Details
-
destination
-
getDestination
Get destination- Returns:
- destination
-
setDestination
-
destinationType
public OrderChangeSlicesSlice destinationType(OrderChangeSlicesSlice.DestinationTypeEnum destinationType) -
getDestinationType
The type of the destination- Returns:
- destinationType
-
setDestinationType
-
duration
-
getDuration
The duration of the slice, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration- Returns:
- duration
-
getDuration_JsonNullable
-
setDuration_JsonNullable
public void setDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration) -
setDuration
-
id
-
getId
Duffel's unique identifier for the slice. It identifies the slice of an order (i.e. the same slice across orders will have different `id`s.- Returns:
- id
-
setId
-
origin
-
getOrigin
Get origin- Returns:
- origin
-
setOrigin
-
originType
-
getOriginType
The type of the origin- Returns:
- originType
-
setOriginType
-
segments
-
addSegmentsItem
-
getSegments
The segments - that is, specific flights - that the airline is offering to get the passengers from the `origin` to the `destination`- Returns:
- segments
-
setSegments
-
equals
-
hashCode
public int hashCode() -
toString
-