code: @BetaApi
    public final Policy setIamPolicyLicense(
        String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource) {
  
      SetIamPolicyLicenseHttpRequest request =
          SetIamPolicyLicenseHttpRequest.newBuilder()
              .setResource(resource)
              .setGlobalSetPolicyRequestResource(globalSetPolicyRequestResource)
              .build();
      return setIamPolicyLicense(request);
    }
docs: Sets the access control policy on the specified resource. Replaces any existing policy.
  
  <p>Sample code:
  
  <pre><code>
  try (LicenseClient licenseClient = LicenseClient.create()) {
  ProjectGlobalLicenseResourceName resource = ProjectGlobalLicenseResourceName.of("[PROJECT]", "[RESOURCE]");
  GlobalSetPolicyRequest globalSetPolicyRequestResource = GlobalSetPolicyRequest.newBuilder().build();
  Policy response = licenseClient.setIamPolicyLicense(resource.toString(), globalSetPolicyRequestResource);
  }
  </code></pre>
  
  @param resource Name or id of the resource for this request.
  @param globalSetPolicyRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails