Interface AzureTrafficCollectors


public interface AzureTrafficCollectors
Resource collection API of AzureTrafficCollectors.
  • Method Details

    • getByResourceGroup

      AzureTrafficCollector getByResourceGroup(String resourceGroupName, String azureTrafficCollectorName)
      Gets the specified Azure Traffic Collector in a specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      Returns:
      the specified Azure Traffic Collector in a specified resource group.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<AzureTrafficCollector> getByResourceGroupWithResponse(String resourceGroupName, String azureTrafficCollectorName, com.azure.core.util.Context context)
      Gets the specified Azure Traffic Collector in a specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      context - The context to associate with this operation.
      Returns:
      the specified Azure Traffic Collector in a specified resource group along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String azureTrafficCollectorName)
      Deletes a specified Azure Traffic Collector resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String azureTrafficCollectorName, com.azure.core.util.Context context)
      Deletes a specified Azure Traffic Collector resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getById

      Gets the specified Azure Traffic Collector in a specified resource group.
      Parameters:
      id - the resource ID.
      Returns:
      the specified Azure Traffic Collector in a specified resource group along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<AzureTrafficCollector> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the specified Azure Traffic Collector in a specified resource group.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the specified Azure Traffic Collector in a specified resource group along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteById

      void deleteById(String id)
      Deletes a specified Azure Traffic Collector resource.
      Parameters:
      id - the resource ID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a specified Azure Traffic Collector resource.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • define

      Begins definition for a new AzureTrafficCollector resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new AzureTrafficCollector definition.