İngilizce dilinde oku

Aracılığıyla paylaş


PricingProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.security.fluent.models.PricingProperties

Implements

public final class PricingProperties
implements JsonSerializable<PricingProperties>

Pricing properties for the relevant scope.

Constructor Summary

Constructor Description
PricingProperties()

Creates an instance of PricingProperties 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 PricingProperties fromJson(JsonReader jsonReader)

Reads an instance of PricingProperties from the JsonReader.

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.

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)
void validate()

Validates the instance.

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

PricingProperties withExtensions(List<Extension> extensions)

Set the extensions property: Optional.

PricingProperties withPricingTier(PricingTier pricingTier)

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

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.

Methods inherited from java.lang.Object

Constructor Details

PricingProperties

public PricingProperties()

Creates an instance of PricingProperties 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 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 PricingProperties fromJson(JsonReader jsonReader)

Reads an instance of PricingProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PricingProperties 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.

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.

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

Parameters:

jsonWriter

Throws:

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:

enforce - the enforce value to set.

Returns:

the PricingProperties object itself.

withExtensions

public PricingProperties withExtensions(List extensions)

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

Parameters:

extensions - the extensions value to set.

Returns:

the PricingProperties object itself.

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:

pricingTier - the pricingTier value to set.

Returns:

the PricingProperties object itself.

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:

subPlan - the subPlan value to set.

Returns:

the PricingProperties object itself.

Applies to

Azure SDK for Java

Preview