Package travel.wink.sdk.extranet.model
Class UpgradeView
java.lang.Object
travel.wink.sdk.extranet.model.UpgradeView
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-05-27T09:29:05.118372+07:00[Asia/Bangkok]")
public class UpgradeView
extends Object
Ancillary inventory to upsell a room booking.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpgradeView(String id, OffsetDateTime createdDate, OffsetDateTime lastUpdate, Long version) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfeaturedImageIdentifier(String featuredImageIdentifier) @Valid OffsetDateTimeDatetime this record was first createdConvenience method to easily access the featured image without having to go through the entire list of images.getId()Unique document identifier@Valid OffsetDateTimeDatetime this record was last updated@Valid AddOnGet upgradeVersion property that shows how many times this document has been persisted.inthashCode()voidsetFeaturedImageIdentifier(String featuredImageIdentifier) voidsetUpgrade(AddOn upgrade) toString()
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_CREATED_DATE
- See Also:
-
JSON_PROPERTY_LAST_UPDATE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_UPGRADE
- See Also:
-
JSON_PROPERTY_FEATURED_IMAGE_IDENTIFIER
- See Also:
-
-
Constructor Details
-
UpgradeView
public UpgradeView() -
UpgradeView
-
-
Method Details
-
getId
Unique document identifier- Returns:
- id
-
getCreatedDate
Datetime this record was first created- Returns:
- createdDate
-
getLastUpdate
Datetime this record was last updated- Returns:
- lastUpdate
-
getVersion
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.- Returns:
- version
-
upgrade
-
getUpgrade
Get upgrade- Returns:
- upgrade
-
setUpgrade
-
featuredImageIdentifier
-
getFeaturedImageIdentifier
Convenience method to easily access the featured image without having to go through the entire list of images. Defaults to placeholder image if no image is present.- Returns:
- featuredImageIdentifier
-
setFeaturedImageIdentifier
-
equals
-
hashCode
public int hashCode() -
toString
-