io.sphere.sdk.client.JsonEndpoint Maven / Gradle / Ivy
package io.sphere.sdk.client;
import com.fasterxml.jackson.core.type.TypeReference;
import io.sphere.sdk.models.Base;
public class JsonEndpoint extends Base {
private final TypeReference typeReference;
private final String endpoint;
private JsonEndpoint(final TypeReference typeReference, final String endpoint) {
this.typeReference = typeReference;
this.endpoint = endpoint;
}
public TypeReference typeReference() {
return typeReference;
}
public String endpoint() {
return endpoint;
}
public static JsonEndpoint of(final TypeReference typeReference, final String endpoint) {
return new JsonEndpoint<>(typeReference, endpoint);
}
public JsonEndpoint withTypeReference(final TypeReference newTypeReference) {
return of(newTypeReference, endpoint);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy