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
    Constructor
    Description
    Creates an instance of SubscriptionPolicies class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SubscriptionPolicies from the JsonReader.
    Get the locationPlacementId property: The subscription location placement ID.
    Get the quotaId property: The subscription quota ID.
    Get the spendingLimit property: The subscription spending limit.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.