Class ApiVersionProperties

java.lang.Object
com.azure.resourcemanager.apicenter.models.ApiVersionProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiVersionProperties>

public final class ApiVersionProperties extends Object implements com.azure.json.JsonSerializable<ApiVersionProperties>
API version properties entity.
  • Constructor Details

    • ApiVersionProperties

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

    • title

      public String title()
      Get the title property: API version title.
      Returns:
      the title value.
    • withTitle

      public ApiVersionProperties withTitle(String title)
      Set the title property: API version title.
      Parameters:
      title - the title value to set.
      Returns:
      the ApiVersionProperties object itself.
    • lifecycleStage

      public LifecycleStage lifecycleStage()
      Get the lifecycleStage property: Current lifecycle stage of the API.
      Returns:
      the lifecycleStage value.
    • withLifecycleStage

      public ApiVersionProperties withLifecycleStage(LifecycleStage lifecycleStage)
      Set the lifecycleStage property: Current lifecycle stage of the API.
      Parameters:
      lifecycleStage - the lifecycleStage value to set.
      Returns:
      the ApiVersionProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      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<ApiVersionProperties>
      Throws:
      IOException
    • fromJson

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