Class UrlEndpointResponse
-
- All Implemented Interfaces:
public final class UrlEndpointResponseURL‑endpoint object as returned by the API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUrlEndpointResponse.BuilderA builder for UrlEndpointResponse.
public final classUrlEndpointResponse.UrlRewriterConfiguration for third-party URL rewriting.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the URL-endpoint. final Stringdescription()Description of the URL endpoint. final List<String>origins()Ordered list of origin IDs to try when the file isn’t in the Media Library; ImageKit checks them in the sequence provided. final StringurlPrefix()Path segment appended to your base URL to form the endpoint (letters, digits, and hyphens only — or empty for the default endpoint). final Optional<UrlEndpointResponse.UrlRewriter>urlRewriter()Configuration for third-party URL rewriting. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<List<String>>_origins()Returns the raw JSON value of origins. final JsonField<String>_urlPrefix()Returns the raw JSON value of urlPrefix. final JsonField<UrlEndpointResponse.UrlRewriter>_urlRewriter()Returns the raw JSON value of urlRewriter. final Map<String, JsonValue>_additionalProperties()final UrlEndpointResponse.BuildertoBuilder()final UrlEndpointResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UrlEndpointResponse.Builderbuilder()Returns a mutable builder for constructing an instance of UrlEndpointResponse. -
-
Method Detail
-
id
final String id()
Unique identifier for the URL-endpoint. This is generated by ImageKit when you create a new URL-endpoint. For the default URL-endpoint, this is always
default.
-
description
final String description()
Description of the URL endpoint.
-
origins
final List<String> origins()
Ordered list of origin IDs to try when the file isn’t in the Media Library; ImageKit checks them in the sequence provided. Origin must be created before it can be used in a URL endpoint.
-
urlPrefix
final String urlPrefix()
Path segment appended to your base URL to form the endpoint (letters, digits, and hyphens only — or empty for the default endpoint).
-
urlRewriter
final Optional<UrlEndpointResponse.UrlRewriter> urlRewriter()
Configuration for third-party URL rewriting.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_origins
final JsonField<List<String>> _origins()
Returns the raw JSON value of origins.
Unlike origins, this method doesn't throw if the JSON field has an unexpected type.
-
_urlPrefix
final JsonField<String> _urlPrefix()
Returns the raw JSON value of urlPrefix.
Unlike urlPrefix, this method doesn't throw if the JSON field has an unexpected type.
-
_urlRewriter
final JsonField<UrlEndpointResponse.UrlRewriter> _urlRewriter()
Returns the raw JSON value of urlRewriter.
Unlike urlRewriter, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UrlEndpointResponse.Builder toBuilder()
-
validate
final UrlEndpointResponse validate()
-
builder
final static UrlEndpointResponse.Builder builder()
Returns a mutable builder for constructing an instance of UrlEndpointResponse.
The following fields are required:
.id() .description() .origins() .urlPrefix()
-
-
-
-