Interface CollectorPolicies


public interface CollectorPolicies
Resource collection API of CollectorPolicies.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new CollectorPolicy resource.
    void
    delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)
    Deletes a specified Collector Policy resource.
    void
    delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.Context context)
    Deletes a specified Collector Policy resource.
    void
    Deletes a specified Collector Policy resource.
    void
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes a specified Collector Policy resource.
    get(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)
    Gets the collector policy in a specified Traffic Collector.
    Gets the collector policy in a specified Traffic Collector.
    com.azure.core.http.rest.Response<CollectorPolicy>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets the collector policy in a specified Traffic Collector.
    com.azure.core.http.rest.Response<CollectorPolicy>
    getWithResponse(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.Context context)
    Gets the collector policy in a specified Traffic Collector.
    com.azure.core.http.rest.PagedIterable<CollectorPolicy>
    list(String resourceGroupName, String azureTrafficCollectorName)
    Return list of Collector policies in a Azure Traffic Collector.
    com.azure.core.http.rest.PagedIterable<CollectorPolicy>
    list(String resourceGroupName, String azureTrafficCollectorName, com.azure.core.util.Context context)
    Return list of Collector policies in a Azure Traffic Collector.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<CollectorPolicy> list(String resourceGroupName, String azureTrafficCollectorName)
      Return list of Collector policies in a Azure Traffic Collector.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      Returns:
      response for the ListCollectorPolicies API service call as paginated response with PagedIterable.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<CollectorPolicy> list(String resourceGroupName, String azureTrafficCollectorName, com.azure.core.util.Context context)
      Return list of Collector policies in a Azure Traffic Collector.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      context - The context to associate with this operation.
      Returns:
      response for the ListCollectorPolicies API service call as paginated response with PagedIterable.
      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.
    • get

      CollectorPolicy get(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)
      Gets the collector policy in a specified Traffic Collector.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      collectorPolicyName - Collector Policy Name.
      Returns:
      the collector policy in a specified Traffic Collector.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<CollectorPolicy> getWithResponse(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.Context context)
      Gets the collector policy in a specified Traffic Collector.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      collectorPolicyName - Collector Policy Name.
      context - The context to associate with this operation.
      Returns:
      the collector policy in a specified Traffic Collector 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.
    • delete

      void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)
      Deletes a specified Collector Policy resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      collectorPolicyName - Collector Policy 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, String collectorPolicyName, com.azure.core.util.Context context)
      Deletes a specified Collector Policy resource.
      Parameters:
      resourceGroupName - The name of the resource group.
      azureTrafficCollectorName - Azure Traffic Collector name.
      collectorPolicyName - Collector Policy 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

      CollectorPolicy getById(String id)
      Gets the collector policy in a specified Traffic Collector.
      Parameters:
      id - the resource ID.
      Returns:
      the collector policy in a specified Traffic Collector 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<CollectorPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the collector policy in a specified Traffic Collector.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the collector policy in a specified Traffic Collector 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 Collector Policy 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 Collector Policy 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 CollectorPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new CollectorPolicy definition.