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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get the enabled property: Is the lab support banner active/enabled at this time?.static LabSupportProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LabSupportProperties from the JsonReader.markdown()
Get the markdown property: The markdown text (if any) that this lab displays in the UI.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withEnabled
(EnableStatus enabled) Set the enabled property: Is the lab support banner active/enabled at this time?.withMarkdown
(String markdown) Set the markdown property: The markdown text (if any) that this lab displays in the UI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LabSupportProperties
public LabSupportProperties()Creates an instance of LabSupportProperties class.
-
-
Method Details
-
enabled
Get the enabled property: Is the lab support banner active/enabled at this time?.- Returns:
- the enabled value.
-
withEnabled
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
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
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
- Specified by:
toJson
in interfacecom.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.
-