Notion-hosted file details. Present when type is "file". These URLs expire after one hour.
This model accepts additional fields of type Object.
File1
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
Url |
String |
Optional | The authenticated S3 URL for the file. | String getUrl() | setUrl(String url) |
ExpiryTime |
LocalDateTime |
Optional | The expiration time of the URL. | LocalDateTime getExpiryTime() | setExpiryTime(LocalDateTime expiryTime) |
AdditionalProperties |
Map<String, Object> |
Optional | - | Object getAdditionalProperty(String key) | additionalProperty(String key, Object value) |
import com.notion.api.ApiHelper;
import com.notion.api.DateTimeHelper;
import com.notion.api.models.File1;
import java.io.IOException;
File1 file1 = new File1.Builder()
.url("url4")
.expiryTime(DateTimeHelper.fromRfc8601DateTime("2016-03-13T12:52:32.123Z"))
.additionalProperty("exampleAdditionalProperty", ApiHelper.deserialize("{\"key1\":\"val1\",\"key2\":\"val2\"}"))
.build();