public BuildTaskInner create(String resourceGroupName, String registryName, String buildTaskName, BuildTaskInner buildTaskCreateParameters) {
        return createWithServiceResponseAsync(resourceGroupName, registryName, buildTaskName, buildTaskCreateParameters).toBlocking().last().body();
    }
public BuildTaskInner create ( String resourceGroupName , String registryName , String buildTaskName , BuildTaskInner buildTaskCreateParameters ) { return createWithServiceResponseAsync ( resourceGroupName , registryName , buildTaskName , buildTaskCreateParameters ) . toBlocking ( ) . last ( ) . body ( ) ; }
Creates a build task for a container registry with the specified parameters.

@param resourceGroupName The name of the resource group to which the container registry belongs.
@param registryName The name of the container registry.
@param buildTaskName The name of the container registry build task.
@param buildTaskCreateParameters The parameters for creating a build task.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the BuildTaskInner object if successful.