Class UpgradeNotificationInner
java.lang.Object
com.azure.resourcemanager.redis.fluent.models.UpgradeNotificationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpgradeNotificationInner>
public final class UpgradeNotificationInner
extends Object
implements com.azure.json.JsonSerializable<UpgradeNotificationInner>
Properties of upgrade notification.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UpgradeNotificationInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeNotificationInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of UpgradeNotificationInner from the JsonReader.name()
Get the name property: Name of upgrade notification.Get the timestamp property: Timestamp when upgrade notification occurred.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the upsellNotification property: Details about this upgrade notification.void
validate()
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
-
UpgradeNotificationInner
public UpgradeNotificationInner()Creates an instance of UpgradeNotificationInner class.
-
-
Method Details
-
name
Get the name property: Name of upgrade notification.- Returns:
- the name value.
-
timestamp
Get the timestamp property: Timestamp when upgrade notification occurred.- Returns:
- the timestamp value.
-
upsellNotification
Get the upsellNotification property: Details about this upgrade notification.- Returns:
- the upsellNotification value.
-
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<UpgradeNotificationInner>
- Throws:
IOException
-
fromJson
public static UpgradeNotificationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UpgradeNotificationInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of UpgradeNotificationInner 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 UpgradeNotificationInner.
-