PricingInner Class

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 PricingInner class.

Method Summary

Modifier and Type Method and Description
Boolean deprecated()

Get the deprecated property: Optional.

OffsetDateTime enablementTime()

Get the enablementTime property: Optional.

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 freeTrialRemainingTime property: The duration left for the subscriptions free trial period - in ISO 8601 format (e.g.

static PricingInner fromJson(JsonReader jsonReader)

Reads an instance of PricingInner from the JsonReader.

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 inheritedFrom property: The id of the scope inherited from.

String name()

Get the name property: The name of the resource.

PricingTier pricingTier()

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

List<String> replacedBy()

Get the replacedBy property: Optional.

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.

String subPlan()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

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").

PricingInner withExtensions(List<Extension> extensions)

Set the extensions property: Optional.

PricingInner withPricingTier(PricingTier pricingTier)

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

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.

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:

the deprecated value.

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:

the enablementTime value.

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:

the enforce value.

extensions

public List<Extension> extensions()

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

Returns:

the extensions value.

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:

the freeTrialRemainingTime value.

fromJson

public static PricingInner fromJson(JsonReader jsonReader)

Reads an instance of PricingInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PricingInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

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

Overrides:

PricingInner.id()

Returns:

the id value.

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:

the inherited value.

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:

the inheritedFrom value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PricingInner.name()

Returns:

the name value.

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:

the pricingTier value.

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:

the replacedBy value.

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:

the resourcesCoverageStatus value.

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:

the subPlan value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PricingInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PricingInner.type()

Returns:

the type value.

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:

enforce - the enforce value to set.

Returns:

the PricingInner object itself.

withExtensions

public PricingInner withExtensions(List<Extension> extensions)

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

Parameters:

extensions - the extensions value to set.

Returns:

the PricingInner object itself.

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:

pricingTier - the pricingTier value to set.

Returns:

the PricingInner object itself.

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:

subPlan - the subPlan value to set.

Returns:

the PricingInner object itself.

Applies to