PricingProperties Class
- java.
lang. Object - com.
azure. resourcemanager. security. fluent. models. PricingProperties
- com.
Implements
public final class PricingProperties
implements JsonSerializable<PricingProperties>
Pricing properties for the relevant scope.
Constructor | Description |
---|---|
Pricing |
Creates an instance of Pricing |
Modifier and Type | Method and Description |
---|---|
Boolean |
deprecated()
Get the deprecated property: Optional. |
Offset |
enablement Get the enablement |
Enforce |
enforce()
Get 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"). |
List<Extension> |
extensions()
Get the extensions property: Optional. |
Duration |
free Get the free |
static
Pricing |
from Reads an instance of Pricing |
Inherited |
inherited()
Get the inherited property: "inherited" = "True" indicates that the current scope inherits its pricing configuration from its parent. |
String |
inherited Get the inherited |
Pricing |
pricing Get the pricing |
List<String> |
replaced Get the replaced |
Resources |
resources Get the resources |
String |
sub Get the sub |
Json |
to |
void |
validate()
Validates the instance. |
Pricing |
with Set 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"). |
Pricing |
with Set the extensions property: Optional. |
Pricing |
with Set the pricing |
Pricing |
with Set the sub |
Methods inherited from java.lang.Object
PricingProperties
public PricingProperties()
Creates an instance of PricingProperties class.
deprecated
public Boolean deprecated()
Get the deprecated property: Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property.
Returns:
enablementTime
public OffsetDateTime enablementTime()
Get 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:
enforce
public Enforce enforce()
Get 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:
extensions
public List
Get the extensions property: Optional. List of extensions offered under a plan.
Returns:
freeTrialRemainingTime
public Duration freeTrialRemainingTime()
Get the freeTrialRemainingTime property: The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S).
Returns:
fromJson
public static PricingProperties fromJson(JsonReader jsonReader)
Reads an instance of PricingProperties from the JsonReader.
Parameters:
Returns:
Throws:
inherited
public Inherited inherited()
Get 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:
inheritedFrom
public String inheritedFrom()
Get the inheritedFrom property: The id of the scope inherited from. "Null" if not inherited. This field is only available for resource-level pricing.
Returns:
pricingTier
public PricingTier pricingTier()
Get 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:
replacedBy
public List
Get the replacedBy property: Optional. List of plans that replace this plan. This property exists only if this plan is deprecated.
Returns:
resourcesCoverageStatus
public ResourcesCoverageStatus resourcesCoverageStatus()
Get 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:
subPlan
public String subPlan()
Get 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:
toJson
validate
public void validate()
Validates the instance.
withEnforce
public PricingProperties withEnforce(Enforce enforce)
Set 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.
Parameters:
Returns:
withExtensions
public PricingProperties withExtensions(List
Set the extensions property: Optional. List of extensions offered under a plan.
Parameters:
Returns:
withPricingTier
public PricingProperties withPricingTier(PricingTier pricingTier)
Set 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.
Parameters:
Returns:
withSubPlan
public PricingProperties withSubPlan(String subPlan)
Set 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.
Parameters:
Returns:
Azure SDK for Java geri bildirimi
Azure SDK for Java, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: