Interface Pricings


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

    Modifier and Type
    Method
    Description
    get(String pricingName)
    Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
    com.azure.core.http.rest.Response<Pricing>
    getWithResponse(String pricingName, com.azure.core.util.Context context)
    Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
    Lists Microsoft Defender for Cloud pricing configurations in the subscription.
    com.azure.core.http.rest.Response<PricingList>
    listWithResponse(com.azure.core.util.Context context)
    Lists Microsoft Defender for Cloud pricing configurations in the subscription.
    update(String pricingName, PricingInner pricing)
    Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
    com.azure.core.http.rest.Response<Pricing>
    updateWithResponse(String pricingName, PricingInner pricing, com.azure.core.util.Context context)
    Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
  • Method Details

    • list

      PricingList list()
      Lists Microsoft Defender for Cloud pricing configurations in the subscription.
      Returns:
      list of pricing configurations response.
      Throws:
      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.
    • listWithResponse

      com.azure.core.http.rest.Response<PricingList> listWithResponse(com.azure.core.util.Context context)
      Lists Microsoft Defender for Cloud pricing configurations in the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of pricing configurations response 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.
    • get

      Pricing get(String pricingName)
      Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
      Parameters:
      pricingName - name of the pricing configuration.
      Returns:
      a provided Microsoft Defender for Cloud pricing configuration in the subscription.
      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<Pricing> getWithResponse(String pricingName, com.azure.core.util.Context context)
      Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
      Parameters:
      pricingName - name of the pricing configuration.
      context - The context to associate with this operation.
      Returns:
      a provided Microsoft Defender for Cloud pricing configuration in the subscription 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.
    • update

      Pricing update(String pricingName, PricingInner pricing)
      Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
      Parameters:
      pricingName - name of the pricing configuration.
      pricing - Pricing object.
      Returns:
      microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<Pricing> updateWithResponse(String pricingName, PricingInner pricing, com.azure.core.util.Context context)
      Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
      Parameters:
      pricingName - name of the pricing configuration.
      pricing - Pricing object.
      context - The context to associate with this operation.
      Returns:
      microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period 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.