Class CreateAlertPolicyOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.alerts.v1.model.CreateAlertPolicyOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateAlertPolicyOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createAlertPolicy options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CreateAlertPolicyOptions.AlertType
Condition for the alert.static class
CreateAlertPolicyOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alertType()
Gets the alertType.Map<String,Object>
conditions()
Gets the conditions.String
description()
Gets the description.Boolean
enabled()
Gets the enabled.Map<String,Object>
filters()
Gets the filters.CreateAlertPolicyInputMechanisms
mechanisms()
Gets the mechanisms.String
name()
Gets the name.CreateAlertPolicyOptions.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public CreateAlertPolicyOptions.Builder newBuilder()
New builder.- Returns:
- a CreateAlertPolicyOptions builder
-
name
public String name()
Gets the name. Policy name.- Returns:
- the name
-
description
public String description()
Gets the description. Policy description.- Returns:
- the description
-
enabled
public Boolean enabled()
Gets the enabled. Is the alert policy active.- Returns:
- the enabled
-
alertType
public String alertType()
Gets the alertType. Condition for the alert.- Returns:
- the alertType
-
mechanisms
public CreateAlertPolicyInputMechanisms mechanisms()
Gets the mechanisms. Delivery mechanisms for the alert.- Returns:
- the mechanisms
-
filters
public Map<String,Object> filters()
Gets the filters. Optional filters depending for the alert type.- Returns:
- the filters
-
conditions
public Map<String,Object> conditions()
Gets the conditions. Conditions depending on the alert type. HTTP DDOS Attack Alerter does not have any conditions. The Load Balancing Pool Enablement Alerter takes conditions that describe for all pools whether the pool is being enabled, disabled, or both. This field is not required when creating a new alert.- Returns:
- the conditions
-
-