objectStorageClient.createBucket( CreateBucketRequest.builder() .namespaceName(namespace) .createBucketDetails( CreateBucketDetails.builder() .name(bucketName) .definedTags(definedTags) .build()) .build()); System.out.println("Created a bucket with tags:\n " + createBucketResponse.getBucket()); System.out.println("=========================\n");
final CreateBucketRequest createBucketRequest = CreateBucketRequest.builder() .namespaceName(namespaceName) .createBucketDetails(createBucketDetails) .build(); System.out.println("Creating bucket: " + bucketName); try {
.namespaceName(namespace) .createBucketDetails( CreateBucketDetails.builder() .compartmentId(compartmentId) .name(bucketName) .build()) .build();
CreateBucketRequest createSourceBucketRequest = CreateBucketRequest.builder() .namespaceName(namespaceName) .createBucketDetails(createSourceBucketDetails) .build(); client.createBucket(createSourceBucketRequest); CreateBucketRequest createDestBucketRequest = CreateBucketRequest.builder() .namespaceName(namespaceName) .createBucketDetails(createDestBucketDetails) .build(); client.createBucket(createDestBucketRequest);
objectStorageClient.createBucket( CreateBucketRequest.builder() .namespaceName(namespace) .createBucketDetails(createBucketDetails) .build()); System.out.println("Created a bucket with kmsKey:\n " + createResponse.getBucket());
CreateBucketRequest createSourceBucketRequest = CreateBucketRequest.builder() .namespaceName(namespaceName) .createBucketDetails(createSourceBucketDetails) .build(); client.createBucket(createSourceBucketRequest);
/** * Build the instance of CreateBucketRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * * @return instance of CreateBucketRequest */ public CreateBucketRequest build() { CreateBucketRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); return request; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(CreateBucketRequest o) { namespaceName(o.getNamespaceName()); createBucketDetails(o.getCreateBucketDetails()); opcClientRequestId(o.getOpcClientRequestId()); invocationCallback(o.getInvocationCallback()); return this; }