PricingInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. fluent. models. PricingInner
- com.
- com.
public final class PricingInner
extends ProxyResource
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.
Constructor Summary
| Constructor | Description |
|---|---|
| PricingInner() |
Creates an instance of Pricing |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
deprecated()
Get the deprecated property: Optional. |
|
Offset |
enablementTime()
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 |
freeTrialRemainingTime()
Get the free |
|
static
Pricing |
fromJson(JsonReader jsonReader)
Reads an instance of Pricing |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| Inherited |
inherited()
Get the inherited property: "inherited" = "True" indicates that the current scope inherits its pricing configuration from its parent. |
| String |
inheritedFrom()
Get the inherited |
| String |
name()
Get the name property: The name of the resource. |
|
Pricing |
pricingTier()
Get the pricing |
| List<String> |
replacedBy()
Get the replaced |
|
Resources |
resourcesCoverageStatus()
Get the resources |
| String |
subPlan()
Get the sub |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Pricing |
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"). |
|
Pricing |
withExtensions(List<Extension> extensions)
Set the extensions property: Optional. |
|
Pricing |
withPricingTier(PricingTier pricingTier)
Set the pricing |
|
Pricing |
withSubPlan(String subPlan)
Set the sub |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
PricingInner
public PricingInner()
Creates an instance of PricingInner class.
Method Details
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<Extension> extensions()
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 PricingInner fromJson(JsonReader jsonReader)
Reads an instance of PricingInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
PricingInner.id()Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
PricingInner.name()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<String> replacedBy()
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:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PricingInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
PricingInner.type()Returns:
validate
public void validate()
Validates the instance.
withEnforce
public PricingInner 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 PricingInner withExtensions(List<Extension> extensions)
Set the extensions property: Optional. List of extensions offered under a plan.
Parameters:
Returns:
withPricingTier
public PricingInner 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 PricingInner 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: