Interface PricingsClient
public interface PricingsClient
An instance of this class provides access to all the operations defined in PricingsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets a provided Microsoft Defender for Cloud pricing configuration in the subscription.com.azure.core.http.rest.Response<PricingInner>
getWithResponse
(String pricingName, com.azure.core.util.Context context) Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.list()
Lists Microsoft Defender for Cloud pricing configurations in the subscription.com.azure.core.http.rest.Response<PricingListInner>
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<PricingInner>
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
PricingListInner 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<PricingListInner> 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
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<PricingInner> 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
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<PricingInner> 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.
-