Class SuppressionProperties

java.lang.Object
com.azure.resourcemanager.advisor.fluent.models.SuppressionProperties

public final class SuppressionProperties extends Object
The properties of the suppression.
  • Constructor Details

    • SuppressionProperties

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

    • suppressionId

      public String suppressionId()
      Get the suppressionId property: The GUID of the suppression.
      Returns:
      the suppressionId value.
    • withSuppressionId

      public SuppressionProperties withSuppressionId(String suppressionId)
      Set the suppressionId property: The GUID of the suppression.
      Parameters:
      suppressionId - the suppressionId value to set.
      Returns:
      the SuppressionProperties object itself.
    • ttl

      public String ttl()
      Get the ttl property: The duration for which the suppression is valid.
      Returns:
      the ttl value.
    • withTtl

      public SuppressionProperties withTtl(String ttl)
      Set the ttl property: The duration for which the suppression is valid.
      Parameters:
      ttl - the ttl value to set.
      Returns:
      the SuppressionProperties object itself.
    • expirationTimestamp

      public OffsetDateTime expirationTimestamp()
      Get the expirationTimestamp property: Gets or sets the expiration time stamp.
      Returns:
      the expirationTimestamp value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.