code: public ServiceFuture<AgentPoolInner> createOrUpdateAsync(String resourceGroupName, String managedClusterName, String agentPoolName, AgentPoolInner parameters, final ServiceCallback<AgentPoolInner> serviceCallback) {
          return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, managedClusterName, agentPoolName, parameters), serviceCallback);
      }
docs: Creates or updates an agent pool.
  Creates or updates an agent pool in the specified managed cluster.
  
  @param resourceGroupName The name of the resource group.
  @param managedClusterName The name of the managed cluster resource.
  @param agentPoolName The name of the agent pool.
  @param parameters Parameters supplied to the Create or Update an agent pool operation.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object