public final Operation setAddonsConfig(
      String projectId, String zone, String clusterId, AddonsConfig addonsConfig) {

    SetAddonsConfigRequest request =
        SetAddonsConfigRequest.newBuilder()
            .setProjectId(projectId)
            .setZone(zone)
            .setClusterId(clusterId)
            .setAddonsConfig(addonsConfig)
            .build();
    return setAddonsConfig(request);
  }
public final Operation setAddonsConfig ( String projectId , String zone , String clusterId , AddonsConfig addonsConfig ) { SetAddonsConfigRequest request = SetAddonsConfigRequest . newBuilder ( ) . setProjectId ( projectId ) . setZone ( zone ) . setClusterId ( clusterId ) . setAddonsConfig ( addonsConfig ) . build ( ) ; return setAddonsConfig ( request ) ; }
Sets the addons for a specific cluster.

<p>Sample code:

<pre><code>
try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
String projectId = "";
String zone = "";
String clusterId = "";
AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
Operation response = clusterManagerClient.setAddonsConfig(projectId, zone, clusterId, addonsConfig);
}
</code></pre>

@param projectId Deprecated. The Google Developers Console [project ID or project
number](https://support.google.com/cloud/answer/6158840). This field has been deprecated
and replaced by the name field.
@param zone Deprecated. The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster resides. This field has been
deprecated and replaced by the name field.
@param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated
and replaced by the name field.
@param addonsConfig The desired configurations for the various addons available to run in the
cluster.
@throws com.google.api.gax.rpc.ApiException if the remote call fails