Pricing Interface

public interface Pricing

An immutable client-side representation of Pricing.

Method Summary

Modifier and Type Method and Description
abstract Boolean deprecated()

Gets the deprecated property: Optional.

abstract OffsetDateTime enablementTime()

Gets the enablementTime property: Optional.

abstract Enforce enforce()

Gets the enforce property: If set to "False", it allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False").

abstract List<Extension> extensions()

Gets the extensions property: Optional.

abstract Duration freeTrialRemainingTime()

Gets the freeTrialRemainingTime property: The duration left for the subscriptions free trial period - in ISO 8601 format (e.g.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract Inherited inherited()

Gets the inherited property: "inherited" = "True" indicates that the current scope inherits its pricing configuration from its parent.

abstract String inheritedFrom()

Gets the inheritedFrom property: The id of the scope inherited from.

abstract PricingInner innerModel()

Gets the inner com.azure.resourcemanager.security.fluent.models.PricingInner object.

abstract String name()

Gets the name property: The name of the resource.

abstract PricingTier pricingTier()

Gets the pricingTier property: Indicates whether the Defender plan is enabled on the selected scope.

abstract List<String> replacedBy()

Gets the replacedBy property: Optional.

abstract ResourcesCoverageStatus resourcesCoverageStatus()

Gets the resourcesCoverageStatus property: This field is available for subscription-level only, and reflects the coverage status of the resources under the subscription.

abstract String subPlan()

Gets the subPlan property: The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available.

abstract String type()

Gets the type property: The type of the resource.

Method Details

deprecated

public abstract Boolean deprecated()

Gets the deprecated property: Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property.

Returns:

the deprecated value.

enablementTime

public abstract OffsetDateTime enablementTime()

Gets the enablementTime property: Optional. If `pricingTier` is `Standard` then this property holds the date of the last time the `pricingTier` was set to `Standard`, when available (e.g 2023-03-01T12:42:42.1921106Z).

Returns:

the enablementTime value.

enforce

public abstract Enforce enforce()

Gets the enforce property: If set to "False", it allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False"). If set to "True", it prevents overrides and forces this pricing configuration on all the descendants of this scope. This field is only available for subscription-level pricing.

Returns:

the enforce value.

extensions

public abstract List extensions()

Gets the extensions property: Optional. List of extensions offered under a plan.

Returns:

the extensions value.

freeTrialRemainingTime

public abstract Duration freeTrialRemainingTime()

Gets the freeTrialRemainingTime property: The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S).

Returns:

the freeTrialRemainingTime value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

inherited

public abstract Inherited inherited()

Gets the inherited property: "inherited" = "True" indicates that the current scope inherits its pricing configuration from its parent. The ID of the parent scope that provides the inherited configuration is displayed in the "inheritedFrom" field. On the other hand, "inherited" = "False" indicates that the current scope has its own pricing configuration explicitly set, and does not inherit from its parent. This field is read only and available only for resource-level pricing.

Returns:

the inherited value.

inheritedFrom

public abstract String inheritedFrom()

Gets the inheritedFrom property: The id of the scope inherited from. "Null" if not inherited. This field is only available for resource-level pricing.

Returns:

the inheritedFrom value.

innerModel

public abstract PricingInner innerModel()

Gets the inner com.azure.resourcemanager.security.fluent.models.PricingInner object.

Returns:

the inner object.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

pricingTier

public abstract PricingTier pricingTier()

Gets the pricingTier property: Indicates whether the Defender plan is enabled on the selected scope. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features.

Returns:

the pricingTier value.

replacedBy

public abstract List replacedBy()

Gets the replacedBy property: Optional. List of plans that replace this plan. This property exists only if this plan is deprecated.

Returns:

the replacedBy value.

resourcesCoverageStatus

public abstract ResourcesCoverageStatus resourcesCoverageStatus()

Gets the resourcesCoverageStatus property: This field is available for subscription-level only, and reflects the coverage status of the resources under the subscription. Please note: The "pricingTier" field reflects the plan status of the subscription. However, since the plan status can also be defined at the resource level, there might be misalignment between the subscription's plan status and the resource status. This field helps indicate the coverage status of the resources.

Returns:

the resourcesCoverageStatus value.

subPlan

public abstract String subPlan()

Gets the subPlan property: The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. For VirtualMachines plan, available sub plans are 'P1' & 'P2', where for resource level only 'P1' sub plan is supported.

Returns:

the subPlan value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

Applies to