public final class LabAnnouncementProperties extends Object
Constructor and Description |
---|
LabAnnouncementProperties() |
Modifier and Type | Method and Description |
---|---|
EnableStatus |
enabled()
Get the enabled property: Is the lab announcement active/enabled at this time?.
|
OffsetDateTime |
expirationDate()
Get the expirationDate property: The time at which the announcement expires (null for never).
|
Boolean |
expired()
Get the expired property: Has this announcement expired?.
|
String |
markdown()
Get the markdown property: The markdown text (if any) that this lab displays in the UI.
|
String |
provisioningState()
Get the provisioningState property: The provisioning status of the resource.
|
String |
title()
Get the title property: The plain text title for the lab announcement.
|
String |
uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
|
void |
validate()
Validates the instance.
|
LabAnnouncementProperties |
withEnabled(EnableStatus enabled)
Set the enabled property: Is the lab announcement active/enabled at this time?.
|
LabAnnouncementProperties |
withExpirationDate(OffsetDateTime expirationDate)
Set the expirationDate property: The time at which the announcement expires (null for never).
|
LabAnnouncementProperties |
withExpired(Boolean expired)
Set the expired property: Has this announcement expired?.
|
LabAnnouncementProperties |
withMarkdown(String markdown)
Set the markdown property: The markdown text (if any) that this lab displays in the UI.
|
LabAnnouncementProperties |
withTitle(String title)
Set the title property: The plain text title for the lab announcement.
|
public String title()
public LabAnnouncementProperties withTitle(String title)
title
- the title value to set.public String markdown()
public LabAnnouncementProperties withMarkdown(String markdown)
markdown
- the markdown value to set.public EnableStatus enabled()
public LabAnnouncementProperties withEnabled(EnableStatus enabled)
enabled
- the enabled value to set.public OffsetDateTime expirationDate()
public LabAnnouncementProperties withExpirationDate(OffsetDateTime expirationDate)
expirationDate
- the expirationDate value to set.public Boolean expired()
public LabAnnouncementProperties withExpired(Boolean expired)
expired
- the expired value to set.public String provisioningState()
public String uniqueIdentifier()
public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.