// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 package com.amazonaws.urlshortener.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.Date; @ApiModel(description = "Request object for POST method") public class ShortenerDTO { @ApiModelProperty(required = true, notes = "Url to convert to short") private String longUrl; @ApiModelProperty(notes = "Expiration datetime of url") private Date expiresDate; public String getLongUrl() { return longUrl; } public void setLongUrl(String longUrl) { this.longUrl = longUrl; } public Date getExpiresDate() { return expiresDate; } public void setExpiresDate(Date expiresDate) { this.expiresDate = expiresDate; } }