public final OperationFuture<UpdateApplicationInstancesResponse, OperationMetadata>
      updateApplicationInstancesAsync(
          ApplicationName name,
          List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances) {
    UpdateApplicationInstancesRequest request =
        UpdateApplicationInstancesRequest.newBuilder()
            .setName(name == null ? null : name.toString())
            .addAllApplicationInstances(applicationInstances)
            .build();
    return updateApplicationInstancesAsync(request);
  }
Adds target stream input to the Application. If the Application is deployed, the corresponding
new Application instance will be created. If the stream has already been in the Application,
the RPC will fail.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
  ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
  List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances =
      new ArrayList<>();
  UpdateApplicationInstancesResponse response =
      appPlatformClient.updateApplicationInstancesAsync(name, applicationInstances).get();
}
}</pre>

@param name Required. the name of the application to retrieve. Format:
    "projects/{project}/locations/{location}/applications/{application}"
@param applicationInstances
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformClient.java