コード例 #1
0
  /** @return Instance The Instance created in the CreateInstance example. */
  private Instance getInstance() {
    for (Instance instance : instanceApi.list()) {
      if (instance.getName().startsWith(NAME)) {
        return instance;
      }
    }

    throw new RuntimeException(NAME + " not found. Run the CreateInstance example first.");
  }