Class LabAnnouncementProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.LabAnnouncementProperties
Properties of a lab's announcement banner.
-
Constructor Summary
ConstructorDescriptionCreates an instance of LabAnnouncementProperties class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get the enabled property: Is the lab announcement active/enabled at this time?.Get the expirationDate property: The time at which the announcement expires (null for never).expired()
Get the expired property: Has this announcement expired?.markdown()
Get the markdown property: The markdown text (if any) that this lab displays in the UI.Get the provisioningState property: The provisioning status of the resource.title()
Get the title property: The plain text title for the lab announcement.Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).void
validate()
Validates the instance.withEnabled
(EnableStatus enabled) Set the enabled property: Is the lab announcement active/enabled at this time?.withExpirationDate
(OffsetDateTime expirationDate) Set the expirationDate property: The time at which the announcement expires (null for never).withExpired
(Boolean expired) Set the expired property: Has this announcement expired?.withMarkdown
(String markdown) Set the markdown property: The markdown text (if any) that this lab displays in the UI.Set the title property: The plain text title for the lab announcement.
-
Constructor Details
-
LabAnnouncementProperties
public LabAnnouncementProperties()Creates an instance of LabAnnouncementProperties class.
-
-
Method Details
-
title
Get the title property: The plain text title for the lab announcement.- Returns:
- the title value.
-
withTitle
Set the title property: The plain text title for the lab announcement.- Parameters:
title
- the title value to set.- Returns:
- the LabAnnouncementProperties 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 LabAnnouncementProperties object itself.
-
enabled
Get the enabled property: Is the lab announcement active/enabled at this time?.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Is the lab announcement active/enabled at this time?.- Parameters:
enabled
- the enabled value to set.- Returns:
- the LabAnnouncementProperties object itself.
-
expirationDate
Get the expirationDate property: The time at which the announcement expires (null for never).- Returns:
- the expirationDate value.
-
withExpirationDate
Set the expirationDate property: The time at which the announcement expires (null for never).- Parameters:
expirationDate
- the expirationDate value to set.- Returns:
- the LabAnnouncementProperties object itself.
-
expired
Get the expired property: Has this announcement expired?.- Returns:
- the expired value.
-
withExpired
Set the expired property: Has this announcement expired?.- Parameters:
expired
- the expired value to set.- Returns:
- the LabAnnouncementProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-