@BetaApi
  public final ListAutoscalersPagedResponse listAutoscalers(ProjectZoneName zone) {
    ListAutoscalersHttpRequest request =
        ListAutoscalersHttpRequest.newBuilder()
            .setZone(zone == null ? null : zone.toString())
            .build();
    return listAutoscalers(request);
  }
@ BetaApi public final ListAutoscalersPagedResponse listAutoscalers ( ProjectZoneName zone ) { ListAutoscalersHttpRequest request = ListAutoscalersHttpRequest . newBuilder ( ) . setZone ( zone == null ? null : zone . toString ( ) ) . build ( ) ; return listAutoscalers ( request ) ; }
Retrieves a list of autoscalers contained within the specified zone.

<p>Sample code:

<pre><code>
try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
for (Autoscaler element : autoscalerClient.listAutoscalers(zone).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param zone Name of the zone for this request.
@throws com.google.api.gax.rpc.ApiException if the remote call fails