Class LabAnnouncementProperties

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.LabAnnouncementProperties

public final class LabAnnouncementProperties extends Object
Properties of a lab's announcement banner.
  • Constructor Details

    • LabAnnouncementProperties

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

    • title

      public String title()
      Get the title property: The plain text title for the lab announcement.
      Returns:
      the title value.
    • withTitle

      public LabAnnouncementProperties withTitle(String title)
      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

      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 LabAnnouncementProperties 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 LabAnnouncementProperties object itself.
    • enabled

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

      public LabAnnouncementProperties withEnabled(EnableStatus enabled)
      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

      public OffsetDateTime expirationDate()
      Get the expirationDate property: The time at which the announcement expires (null for never).
      Returns:
      the expirationDate value.
    • withExpirationDate

      public LabAnnouncementProperties withExpirationDate(OffsetDateTime expirationDate)
      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

      public Boolean expired()
      Get the expired property: Has this announcement expired?.
      Returns:
      the expired value.
    • withExpired

      public LabAnnouncementProperties withExpired(Boolean expired)
      Set the expired property: Has this announcement expired?.
      Parameters:
      expired - the expired value to set.
      Returns:
      the LabAnnouncementProperties object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning status of the resource.
      Returns:
      the provisioningState value.
    • uniqueIdentifier

      public String 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.