Class UpgradeProfile
java.lang.Object
com.azure.resourcemanager.appnetwork.models.UpgradeProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpgradeProfile>
public final class UpgradeProfile
extends Object
implements com.azure.json.JsonSerializable<UpgradeProfile>
AppLinkMember upgrade profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UpgradeProfile from the JsonReader.Get the fullyManagedUpgradeProfile property: Fully managed upgrade profile.mode()Get the mode property: Upgrade mode.Get the selfManagedUpgradeProfile property: Self managed upgrade profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withFullyManagedUpgradeProfile(FullyManagedUpgradeProfile fullyManagedUpgradeProfile) Set the fullyManagedUpgradeProfile property: Fully managed upgrade profile.withMode(UpgradeMode mode) Set the mode property: Upgrade mode.withSelfManagedUpgradeProfile(SelfManagedUpgradeProfile selfManagedUpgradeProfile) Set the selfManagedUpgradeProfile property: Self managed upgrade profile.Methods inherited from class 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
-
UpgradeProfile
public UpgradeProfile()Creates an instance of UpgradeProfile class.
-
-
Method Details
-
mode
-
withMode
Set the mode property: Upgrade mode.- Parameters:
mode- the mode value to set.- Returns:
- the UpgradeProfile object itself.
-
fullyManagedUpgradeProfile
Get the fullyManagedUpgradeProfile property: Fully managed upgrade profile.- Returns:
- the fullyManagedUpgradeProfile value.
-
withFullyManagedUpgradeProfile
public UpgradeProfile withFullyManagedUpgradeProfile(FullyManagedUpgradeProfile fullyManagedUpgradeProfile) Set the fullyManagedUpgradeProfile property: Fully managed upgrade profile.- Parameters:
fullyManagedUpgradeProfile- the fullyManagedUpgradeProfile value to set.- Returns:
- the UpgradeProfile object itself.
-
selfManagedUpgradeProfile
Get the selfManagedUpgradeProfile property: Self managed upgrade profile.- Returns:
- the selfManagedUpgradeProfile value.
-
withSelfManagedUpgradeProfile
public UpgradeProfile withSelfManagedUpgradeProfile(SelfManagedUpgradeProfile selfManagedUpgradeProfile) Set the selfManagedUpgradeProfile property: Self managed upgrade profile.- Parameters:
selfManagedUpgradeProfile- the selfManagedUpgradeProfile value to set.- Returns:
- the UpgradeProfile object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UpgradeProfile>- Throws:
IOException
-
fromJson
Reads an instance of UpgradeProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UpgradeProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UpgradeProfile.
-