protected MultipartObjectAssembler createAssembler( PutObjectRequest request, UploadRequest uploadRequest, ExecutorService executorService) { MultipartObjectAssembler assembler = new MultipartObjectAssembler( objectStorage, request.getNamespaceName(), request.getBucketName(), request.getObjectName(), uploadRequest.allowOverwrite, executorService); assembler.setOpcClientRequestId(request.getOpcClientRequestId()); return assembler; }
Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); Validate.notBlank(request.getBucketName(), "bucketName must not be blank"); Validate.notBlank(request.getObjectName(), "objectName must not be blank"); Validate.notNull(request.getPutObjectBody(), "putObjectBody is required"); .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getBucketName())) .path("o") .path(
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(PutObjectRequest o) { namespaceName(o.getNamespaceName()); bucketName(o.getBucketName()); objectName(o.getObjectName()); contentLength(o.getContentLength()); putObjectBody(o.getPutObjectBody()); ifMatch(o.getIfMatch()); ifNoneMatch(o.getIfNoneMatch()); opcClientRequestId(o.getOpcClientRequestId()); expect(o.getExpect()); contentMD5(o.getContentMD5()); contentType(o.getContentType()); contentLanguage(o.getContentLanguage()); contentEncoding(o.getContentEncoding()); opcMeta(o.getOpcMeta()); invocationCallback(o.getInvocationCallback()); return this; }