code: @BetaApi
    public final TargetInstance getTargetInstance(String targetInstance) {
  
      GetTargetInstanceHttpRequest request =
          GetTargetInstanceHttpRequest.newBuilder().setTargetInstance(targetInstance).build();
      return getTargetInstance(request);
    }
docs: Returns the specified TargetInstance resource. Gets a list of available target instances by
  making a list() request.
  
  <p>Sample code:
  
  <pre><code>
  try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) {
  ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]");
  TargetInstance response = targetInstanceClient.getTargetInstance(targetInstance.toString());
  }
  </code></pre>
  
  @param targetInstance Name of the TargetInstance resource to return.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails