code: public final Operation setMaintenancePolicy(
        String projectId, String zone, String clusterId, MaintenancePolicy maintenancePolicy) {
  
      SetMaintenancePolicyRequest request =
          SetMaintenancePolicyRequest.newBuilder()
              .setProjectId(projectId)
              .setZone(zone)
              .setClusterId(clusterId)
              .setMaintenancePolicy(maintenancePolicy)
              .build();
      return setMaintenancePolicy(request);
    }
docs: Sets the maintenance policy for a cluster.
  
  <p>Sample code:
  
  <pre><code>
  try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
  String projectId = "";
  String zone = "";
  String clusterId = "";
  MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
  Operation response = clusterManagerClient.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy);
  }
  </code></pre>
  
  @param projectId The Google Developers Console [project ID or project
  number](https://support.google.com/cloud/answer/6158840).
  @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
  which the cluster resides.
  @param clusterId The name of the cluster to update.
  @param maintenancePolicy The maintenance policy to be set for the cluster. An empty field
  clears the existing maintenance policy.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails