Class GatewayUpdate

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
com.azure.resourcemanager.hybridcompute.models.GatewayUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUpdate>

public final class GatewayUpdate extends ResourceUpdate
Describes a License Update.
  • Constructor Details

    • GatewayUpdate

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

    • withTags

      public GatewayUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class ResourceUpdate
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceUpdate object itself.
    • allowedFeatures

      public List<String> allowedFeatures()
      Get the allowedFeatures property: Specifies the list of features that are enabled for this Gateway.
      Returns:
      the allowedFeatures value.
    • withAllowedFeatures

      public GatewayUpdate withAllowedFeatures(List<String> allowedFeatures)
      Set the allowedFeatures property: Specifies the list of features that are enabled for this Gateway.
      Parameters:
      allowedFeatures - the allowedFeatures value to set.
      Returns:
      the GatewayUpdate object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ResourceUpdate
      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<ResourceUpdate>
      Overrides:
      toJson in class ResourceUpdate
      Throws:
      IOException
    • fromJson

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