Class LabSupportProperties

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

public final class LabSupportProperties extends Object implements com.azure.json.JsonSerializable<LabSupportProperties>
Properties of a lab's support banner.
  • Constructor Details

    • LabSupportProperties

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

    • enabled

      public EnableStatus enabled()
      Get the enabled property: Is the lab support banner active/enabled at this time?.
      Returns:
      the enabled value.
    • withEnabled

      public LabSupportProperties withEnabled(EnableStatus enabled)
      Set the enabled property: Is the lab support banner active/enabled at this time?.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the LabSupportProperties object itself.
    • markdown

      public String markdown()
      Get the markdown property: The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
      Returns:
      the markdown value.
    • withMarkdown

      public LabSupportProperties withMarkdown(String markdown)
      Set the markdown property: The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.
      Parameters:
      markdown - the markdown value to set.
      Returns:
      the LabSupportProperties 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<LabSupportProperties>
      Throws:
      IOException
    • fromJson

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