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 Details

    • UpgradeProfile

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

    • mode

      public UpgradeMode mode()
      Get the mode property: Upgrade mode.
      Returns:
      the mode value.
    • withMode

      public UpgradeProfile withMode(UpgradeMode mode)
      Set the mode property: Upgrade mode.
      Parameters:
      mode - the mode value to set.
      Returns:
      the UpgradeProfile object itself.
    • fullyManagedUpgradeProfile

      public FullyManagedUpgradeProfile 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

      public SelfManagedUpgradeProfile 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<UpgradeProfile>
      Throws:
      IOException
    • fromJson

      public static UpgradeProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.