AlertsSuppressionRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. fluent. models. AlertsSuppressionRuleInner
- com.
- com.
public final class AlertsSuppressionRuleInner
extends ProxyResource
Describes the suppression rule.
Constructor Summary
| Constructor | Description |
|---|---|
| AlertsSuppressionRuleInner() |
Creates an instance of Alerts |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
alertType()
Get the alert |
| String |
comment()
Get the comment property: Any comment regarding the rule. |
|
Offset |
expirationDateUtc()
Get the expiration |
|
static
Alerts |
fromJson(JsonReader jsonReader)
Reads an instance of Alerts |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Offset |
lastModifiedUtc()
Get the last |
| String |
name()
Get the name property: The name of the resource. |
| String |
reason()
Get the reason property: The reason for dismissing the alert. |
|
Rule |
state()
Get the state property: Possible states of the rule. |
|
Suppression |
suppressionAlertsScope()
Get the suppression |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Alerts |
withAlertType(String alertType)
Set the alert |
|
Alerts |
withComment(String comment)
Set the comment property: Any comment regarding the rule. |
|
Alerts |
withExpirationDateUtc(OffsetDateTime expirationDateUtc)
Set the expiration |
|
Alerts |
withReason(String reason)
Set the reason property: The reason for dismissing the alert. |
|
Alerts |
withState(RuleState state)
Set the state property: Possible states of the rule. |
|
Alerts |
withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)
Set the suppression |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
AlertsSuppressionRuleInner
public AlertsSuppressionRuleInner()
Creates an instance of AlertsSuppressionRuleInner class.
Method Details
alertType
public String alertType()
Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
Returns:
comment
public String comment()
Get the comment property: Any comment regarding the rule.
Returns:
expirationDateUtc
public OffsetDateTime expirationDateUtc()
Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.
Returns:
fromJson
public static AlertsSuppressionRuleInner fromJson(JsonReader jsonReader)
Reads an instance of AlertsSuppressionRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AlertsSuppressionRuleInner.id()Returns:
lastModifiedUtc
public OffsetDateTime lastModifiedUtc()
Get the lastModifiedUtc property: The last time this rule was modified.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AlertsSuppressionRuleInner.name()Returns:
reason
public String reason()
Get the reason property: The reason for dismissing the alert.
Returns:
state
public RuleState state()
Get the state property: Possible states of the rule.
Returns:
suppressionAlertsScope
public SuppressionAlertsScope suppressionAlertsScope()
Get the suppressionAlertsScope property: The suppression conditions.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AlertsSuppressionRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AlertsSuppressionRuleInner.type()Returns:
validate
public void validate()
Validates the instance.
withAlertType
public AlertsSuppressionRuleInner withAlertType(String alertType)
Set the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
Parameters:
Returns:
withComment
public AlertsSuppressionRuleInner withComment(String comment)
Set the comment property: Any comment regarding the rule.
Parameters:
Returns:
withExpirationDateUtc
public AlertsSuppressionRuleInner withExpirationDateUtc(OffsetDateTime expirationDateUtc)
Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.
Parameters:
Returns:
withReason
public AlertsSuppressionRuleInner withReason(String reason)
Set the reason property: The reason for dismissing the alert.
Parameters:
Returns:
withState
public AlertsSuppressionRuleInner withState(RuleState state)
Set the state property: Possible states of the rule.
Parameters:
Returns:
withSuppressionAlertsScope
public AlertsSuppressionRuleInner withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)
Set the suppressionAlertsScope property: The suppression conditions.
Parameters:
Returns: