public ServiceFuture<ManagedInstanceKeyInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String keyName, ManagedInstanceKeyInner parameters, final ServiceCallback<ManagedInstanceKeyInner> serviceCallback) {
        return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, managedInstanceName, keyName, parameters), serviceCallback);
    }
public ServiceFuture < ManagedInstanceKeyInner > beginCreateOrUpdateAsync ( String resourceGroupName , String managedInstanceName , String keyName , ManagedInstanceKeyInner parameters , final ServiceCallback < ManagedInstanceKeyInner > serviceCallback ) { return ServiceFuture . fromResponse ( beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , keyName , parameters ) , serviceCallback ) ; }
Creates or updates a managed instance key.

@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param managedInstanceName The name of the managed instance.
@param keyName The name of the managed instance key to be operated on (updated or created).
@param parameters The requested managed instance key resource state.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object