objectStorageClient.getNamespace(GetNamespaceRequest.builder().build()).getValue();
client.getNamespace(GetNamespaceRequest.builder().build()); final String namespaceName = namespaceResponse.getValue(); System.out.println("Using namespace: " + namespaceName);
client.getNamespace(GetNamespaceRequest.builder().build()); String namespaceName = namespaceResponse.getValue();
.getNamespace(GetNamespaceRequest.builder().build()) .getValue(); System.out.println("Using namespace: " + namespace); GetNamespaceRequest.builder().build(), null); namespace = getNamespaceResponseFuture.get().getValue(); System.out.println("Using namespace: " + namespace); new ResponseHandler<>(); objectStorageAsyncClient.getNamespace( GetNamespaceRequest.builder().build(), getNamespaceHandler); getNamespaceHandler.waitForCompletion();
objectStorageClient.getNamespace(GetNamespaceRequest.builder().build()).getValue();
client.getNamespace(GetNamespaceRequest.builder().build()); String namespaceName = namespaceResponse.getValue();
client.getNamespace(GetNamespaceRequest.builder().build()); String namespaceName = namespaceResponse.getValue(); System.out.println("Using namespace: " + namespaceName);
client.getNamespace(GetNamespaceRequest.builder().build(), namespaceHandler); GetNamespaceResponse namespaceResponse = namespaceHandler.waitForCompletion();
/** * Build the instance of GetNamespaceRequest 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 GetNamespaceRequest */ public GetNamespaceRequest build() { GetNamespaceRequest 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(GetNamespaceRequest o) { opcClientRequestId(o.getOpcClientRequestId()); invocationCallback(o.getInvocationCallback()); return this; }