/** * 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; }
/** * 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; } }
client.getNamespace(GetNamespaceRequest.builder().build()); final String namespaceName = namespaceResponse.getValue(); System.out.println("Using namespace: " + namespaceName);
public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, GetNamespaceRequest request) { Validate.notNull(request, "request instance is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/").path("n"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); if (request.getOpcClientRequestId() != null) { ib.header("opc-client-request-id", request.getOpcClientRequestId()); } return ib; }
client.getNamespace(GetNamespaceRequest.builder().build()); String namespaceName = namespaceResponse.getValue();
objectStorageClient.getNamespace(GetNamespaceRequest.builder().build()).getValue();
client.getNamespace(GetNamespaceRequest.builder().build()); String namespaceName = namespaceResponse.getValue(); System.out.println("Using namespace: " + namespaceName);
.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();
client.getNamespace(GetNamespaceRequest.builder().build(), namespaceHandler); GetNamespaceResponse namespaceResponse = namespaceHandler.waitForCompletion();
client.getNamespace(GetNamespaceRequest.builder().build()); String namespaceName = namespaceResponse.getValue();
objectStorageClient.getNamespace(GetNamespaceRequest.builder().build()).getValue();