public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, ScheduleVaultDeletionRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getVaultId(), "vaultId must not be blank"); Validate.notNull( request.getScheduleVaultDeletionDetails(), "scheduleVaultDeletionDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() .path("/20180608") .path("vaults") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getVaultId())) .path("actions") .path("scheduleDeletion"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } if (request.getOpcRetryToken() != null) { ib.header("opc-retry-token", request.getOpcRetryToken()); } return ib; }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(ScheduleVaultDeletionRequest o) { vaultId(o.getVaultId()); scheduleVaultDeletionDetails(o.getScheduleVaultDeletionDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); return this; }