code: @BetaApi
    public final Policy setIamPolicyNodeTemplate(
        ProjectRegionNodeTemplateResourceName resource,
        RegionSetPolicyRequest regionSetPolicyRequestResource) {
  
      SetIamPolicyNodeTemplateHttpRequest request =
          SetIamPolicyNodeTemplateHttpRequest.newBuilder()
              .setResource(resource == null ? null : resource.toString())
              .setRegionSetPolicyRequestResource(regionSetPolicyRequestResource)
              .build();
      return setIamPolicyNodeTemplate(request);
    }
docs: Sets the access control policy on the specified resource. Replaces any existing policy.
  
  <p>Sample code:
  
  <pre><code>
  try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) {
  ProjectRegionNodeTemplateResourceName resource = ProjectRegionNodeTemplateResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]");
  RegionSetPolicyRequest regionSetPolicyRequestResource = RegionSetPolicyRequest.newBuilder().build();
  Policy response = nodeTemplateClient.setIamPolicyNodeTemplate(resource, regionSetPolicyRequestResource);
  }
  </code></pre>
  
  @param resource Name or id of the resource for this request.
  @param regionSetPolicyRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails