Class CatalogMsrp
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogMsrp
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
validate()
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
Get the p1Y property: Amount in pricing currency. Tax not included.- Returns:
- the p1Y value.
-
withP1Y
Set the p1Y property: Amount in pricing currency. Tax not included.- Parameters:
p1Y
- the p1Y value to set.- Returns:
- the CatalogMsrp object itself.
-
p3Y
Get the p3Y property: Amount in pricing currency. Tax not included.- Returns:
- the p3Y value.
-
withP3Y
Set the p3Y property: Amount in pricing currency. Tax not included.- Parameters:
p3Y
- the p3Y value to set.- Returns:
- the CatalogMsrp object itself.
-
p5Y
Get the p5Y property: Amount in pricing currency. Tax not included.- Returns:
- the p5Y value.
-
withP5Y
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CatalogMsrp>
- Throws:
IOException
-
fromJson
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.
-