code: public ServiceFuture<AgentRegistrationInner> regenerateKeyAsync(String resourceGroupName, String automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, final ServiceCallback<AgentRegistrationInner> serviceCallback) {
          return ServiceFuture.fromResponse(regenerateKeyWithServiceResponseAsync(resourceGroupName, automationAccountName, parameters), serviceCallback);
      }
docs: Regenerate a primary or secondary agent registration key.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param parameters The name of the agent registration key to be regenerated
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object