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 Summary
ConstructorDescriptionCreates an instance of SuppressionContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the expirationTimestamp property: Gets or sets the expiration time stamp.Get the suppressionId property: The GUID of the suppression.ttl()
Get the ttl property: The duration for which the suppression is valid.void
validate()
Validates the instance.withSuppressionId
(String suppressionId) Set the suppressionId property: The GUID of the suppression.Set the ttl property: The duration for which the suppression is valid.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
SuppressionContractInner
public SuppressionContractInner()Creates an instance of SuppressionContractInner class.
-
-
Method Details
-
suppressionId
Get the suppressionId property: The GUID of the suppression.- Returns:
- the suppressionId value.
-
withSuppressionId
Set the suppressionId property: The GUID of the suppression.- Parameters:
suppressionId
- the suppressionId value to set.- Returns:
- the SuppressionContractInner object itself.
-
ttl
Get the ttl property: The duration for which the suppression is valid.- Returns:
- the ttl value.
-
withTtl
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
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.
-