LabSupportProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.LabSupportProperties

Implements

public final class LabSupportProperties
implements JsonSerializable<LabSupportProperties>

Properties of a lab's support banner.

Constructor Summary

Constructor Description
LabSupportProperties()

Creates an instance of LabSupportProperties class.

Method Summary

Modifier and Type Method and Description
EnableStatus enabled()

Get the enabled property: Is the lab support banner active/enabled at this time?.

static LabSupportProperties fromJson(JsonReader jsonReader)

Reads an instance of LabSupportProperties from the JsonReader.

String markdown()

Get the markdown property: The markdown text (if any) that this lab displays in the UI.

JsonWriter toJson(JsonWriter jsonWriter)
LabSupportProperties withEnabled(EnableStatus enabled)

Set the enabled property: Is the lab support banner active/enabled at this time?.

LabSupportProperties withMarkdown(String markdown)

Set the markdown property: The markdown text (if any) that this lab displays in the UI.

Methods inherited from java.lang.Object

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.

fromJson

public static LabSupportProperties fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

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.

Applies to