/** * Create a proxy implementation of the provided Swagger interface. * @param swaggerInterface The Swagger interface to provide a proxy implementation for. * @param serviceClient The ServiceClient that contains the details to use to create the * RestProxy implementation of the swagger interface. * @param <A> The type of the Swagger interface. * @return A proxy implementation of the provided Swagger interface. */ @SuppressWarnings("unchecked") public static <A> A create(Class<A> swaggerInterface, ServiceClient serviceClient) { return create(swaggerInterface, serviceClient.httpPipeline(), serviceClient.serializerAdapter()); }
@Override public void accept(Throwable throwable) { if (callback != null) { callback.failure(throwable); } serviceFuture.completeExceptionally(throwable); } }, new Action() {
/** * Get the lastModified value. * * @return the lastModified value. */ public OffsetDateTime lastModified() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); }
/** * @return the deserialized response headers. */ @Override public AppendBlobCreateHeaders headers() { return super.headers(); } }
/** * Get the date value. * * @return the date value. */ public OffsetDateTime date() { if (this.date == null) { return null; } return this.date.dateTime(); }
@Override public void accept(Throwable throwable) { if (callback != null) { callback.failure(throwable); } serviceFuture.completeExceptionally(throwable); } });
/** * @return the deserialized response headers. */ @Override public BlobChangeLeaseHeaders headers() { return super.headers(); } }
/** * Get the lastModified value. * * @return the lastModified value. */ public OffsetDateTime lastModified() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); }
@Override public void accept(Throwable throwable) { if (callback != null) { callback.failure(throwable); } serviceFuture.completeExceptionally(throwable); } });
/** * Get the lastModified value. * * @return the lastModified value. */ public OffsetDateTime lastModified() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); }
/** * Get the date value. * * @return the date value. */ public OffsetDateTime date() { if (this.date == null) { return null; } return this.date.dateTime(); }
/** * Get the lastModified value. * * @return the lastModified value. */ public OffsetDateTime lastModified() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); }
/** * Get the date value. * * @return the date value. */ public OffsetDateTime date() { if (this.date == null) { return null; } return this.date.dateTime(); }
/** * Get the lastSyncTime value. * * @return the lastSyncTime value. */ public OffsetDateTime lastSyncTime() { if (this.lastSyncTime == null) { return null; } return this.lastSyncTime.dateTime(); }
/** * Get the date value. * * @return the date value. */ public OffsetDateTime date() { if (this.date == null) { return null; } return this.date.dateTime(); }
/** * Get the ifModifiedSince value. * * @return the ifModifiedSince value. */ public OffsetDateTime ifModifiedSince() { if (this.ifModifiedSince == null) { return null; } return this.ifModifiedSince.dateTime(); }