Class SubscriptionPolicies
java.lang.Object
com.azure.resourcemanager.resources.models.SubscriptionPolicies
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubscriptionPolicies>
public final class SubscriptionPolicies
extends Object
implements com.azure.json.JsonSerializable<SubscriptionPolicies>
Subscription policies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionPoliciesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SubscriptionPolicies from the JsonReader.Get the locationPlacementId property: The subscription location placement ID.quotaId()Get the quotaId property: The subscription quota ID.Get the spendingLimit property: The subscription spending limit.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SubscriptionPolicies
public SubscriptionPolicies()Creates an instance of SubscriptionPolicies class.
-
-
Method Details
-
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
Get the quotaId property: The subscription quota ID.- Returns:
- the quotaId value.
-
spendingLimit
Get the spendingLimit property: The subscription spending limit.- Returns:
- the spendingLimit value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SubscriptionPolicies>- Throws:
IOException
-
fromJson
public static SubscriptionPolicies fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-