Class SuppressionContractInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.advisor.fluent.models.SuppressionContractInner

public final class SuppressionContractInner extends com.azure.core.management.ProxyResource
The details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.
  • Constructor Details

    • SuppressionContractInner

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

    • suppressionId

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

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

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

      public SuppressionContractInner withTtl(String ttl)
      Set the ttl property: The duration for which the suppression is valid.
      Parameters:
      ttl - the ttl value to set.
      Returns:
      the SuppressionContractInner 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.