java.lang.Object
com.azure.resourcemanager.reservations.models.CatalogMsrp
All Implemented Interfaces:
com.azure.json.JsonSerializable<CatalogMsrp>

public final class CatalogMsrp extends Object implements com.azure.json.JsonSerializable<CatalogMsrp>
Pricing information about the sku.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of CatalogMsrp class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CatalogMsrp from the JsonReader.
    p1Y()
    Get the p1Y property: Amount in pricing currency.
    p3Y()
    Get the p3Y property: Amount in pricing currency.
    p5Y()
    Get the p5Y property: Amount in pricing currency.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the p1Y property: Amount in pricing currency.
    Set the p3Y property: Amount in pricing currency.
    Set the p5Y property: Amount in pricing currency.

    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

    • CatalogMsrp

      public CatalogMsrp()
      Creates an instance of CatalogMsrp class.
  • Method Details

    • p1Y

      public Price p1Y()
      Get the p1Y property: Amount in pricing currency. Tax not included.
      Returns:
      the p1Y value.
    • withP1Y

      public CatalogMsrp withP1Y(Price p1Y)
      Set the p1Y property: Amount in pricing currency. Tax not included.
      Parameters:
      p1Y - the p1Y value to set.
      Returns:
      the CatalogMsrp object itself.
    • p3Y

      public Price p3Y()
      Get the p3Y property: Amount in pricing currency. Tax not included.
      Returns:
      the p3Y value.
    • withP3Y

      public CatalogMsrp withP3Y(Price p3Y)
      Set the p3Y property: Amount in pricing currency. Tax not included.
      Parameters:
      p3Y - the p3Y value to set.
      Returns:
      the CatalogMsrp object itself.
    • p5Y

      public Price p5Y()
      Get the p5Y property: Amount in pricing currency. Tax not included.
      Returns:
      the p5Y value.
    • withP5Y

      public CatalogMsrp withP5Y(Price p5Y)
      Set the p5Y property: Amount in pricing currency. Tax not included.
      Parameters:
      p5Y - the p5Y value to set.
      Returns:
      the CatalogMsrp object itself.
    • 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<CatalogMsrp>
      Throws:
      IOException
    • fromJson

      public static CatalogMsrp fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CatalogMsrp from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CatalogMsrp 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 CatalogMsrp.