SubscriptionPolicies Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.SubscriptionPolicies

Implements

public final class SubscriptionPolicies
implements JsonSerializable<SubscriptionPolicies>

Subscription policies.

Constructor Summary

Constructor Description
SubscriptionPolicies()

Creates an instance of SubscriptionPolicies class.

Method Summary

Modifier and Type Method and Description
static SubscriptionPolicies fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionPolicies from the JsonReader.

String locationPlacementId()

Get the locationPlacementId property: The subscription location placement ID.

String quotaId()

Get the quotaId property: The subscription quota ID.

SpendingLimit spendingLimit()

Get the spendingLimit property: The subscription spending limit.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SubscriptionPolicies

public SubscriptionPolicies()

Creates an instance of SubscriptionPolicies class.

Method Details

fromJson

public static SubscriptionPolicies fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionPolicies from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SubscriptionPolicies.

locationPlacementId

public String locationPlacementId()

Get the locationPlacementId property: The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.

Returns:

the locationPlacementId value.

quotaId

public String quotaId()

Get the quotaId property: The subscription quota ID.

Returns:

the quotaId value.

spendingLimit

public SpendingLimit spendingLimit()

Get the spendingLimit property: The subscription spending limit.

Returns:

the spendingLimit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to