code: @BetaApi
    public final Policy setIamPolicyInstance(
        String resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource) {
  
      SetIamPolicyInstanceHttpRequest request =
          SetIamPolicyInstanceHttpRequest.newBuilder()
              .setResource(resource)
              .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
              .build();
      return setIamPolicyInstance(request);
    }
docs: Sets the access control policy on the specified resource. Replaces any existing policy.
  
  <p>Sample code:
  
  <pre><code>
  try (InstanceClient instanceClient = InstanceClient.create()) {
  ProjectZoneInstanceResourceName resource = ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
  ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
  Policy response = instanceClient.setIamPolicyInstance(resource.toString(), zoneSetPolicyRequestResource);
  }
  </code></pre>
  
  @param resource Name or id of the resource for this request.
  @param zoneSetPolicyRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails