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.GenericModelThe createAlertPolicy options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateAlertPolicyOptions.AlertTypeCondition for the alert.static classCreateAlertPolicyOptions.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringalertType()Gets the alertType.Map<String,Object>conditions()Gets the conditions.Stringdescription()Gets the description.Booleanenabled()Gets the enabled.Map<String,Object>filters()Gets the filters.CreateAlertPolicyInputMechanismsmechanisms()Gets the mechanisms.Stringname()Gets the name.CreateAlertPolicyOptions.BuildernewBuilder()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
-
-