Class UpdateAlertPolicyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.alerts.v1.model.UpdateAlertPolicyOptions.Builder
-
- Enclosing class:
- UpdateAlertPolicyOptions
public static class UpdateAlertPolicyOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAlertPolicyOptions.Builder
alertType(String alertType)
Set the alertType.UpdateAlertPolicyOptions
build()
Builds a UpdateAlertPolicyOptions.UpdateAlertPolicyOptions.Builder
conditions(Map<String,Object> conditions)
Set the conditions.UpdateAlertPolicyOptions.Builder
description(String description)
Set the description.UpdateAlertPolicyOptions.Builder
enabled(Boolean enabled)
Set the enabled.UpdateAlertPolicyOptions.Builder
filters(Map<String,Object> filters)
Set the filters.UpdateAlertPolicyOptions.Builder
mechanisms(UpdateAlertPolicyInputMechanisms mechanisms)
Set the mechanisms.UpdateAlertPolicyOptions.Builder
name(String name)
Set the name.UpdateAlertPolicyOptions.Builder
policyId(String policyId)
Set the policyId.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String policyId)
Instantiates a new builder with required properties.- Parameters:
policyId
- the policyId
-
-
Method Detail
-
build
public UpdateAlertPolicyOptions build()
Builds a UpdateAlertPolicyOptions.- Returns:
- the new UpdateAlertPolicyOptions instance
-
policyId
public UpdateAlertPolicyOptions.Builder policyId(String policyId)
Set the policyId.- Parameters:
policyId
- the policyId- Returns:
- the UpdateAlertPolicyOptions builder
-
name
public UpdateAlertPolicyOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the UpdateAlertPolicyOptions builder
-
description
public UpdateAlertPolicyOptions.Builder description(String description)
Set the description.- Parameters:
description
- the description- Returns:
- the UpdateAlertPolicyOptions builder
-
enabled
public UpdateAlertPolicyOptions.Builder enabled(Boolean enabled)
Set the enabled.- Parameters:
enabled
- the enabled- Returns:
- the UpdateAlertPolicyOptions builder
-
alertType
public UpdateAlertPolicyOptions.Builder alertType(String alertType)
Set the alertType.- Parameters:
alertType
- the alertType- Returns:
- the UpdateAlertPolicyOptions builder
-
mechanisms
public UpdateAlertPolicyOptions.Builder mechanisms(UpdateAlertPolicyInputMechanisms mechanisms)
Set the mechanisms.- Parameters:
mechanisms
- the mechanisms- Returns:
- the UpdateAlertPolicyOptions builder
-
conditions
public UpdateAlertPolicyOptions.Builder conditions(Map<String,Object> conditions)
Set the conditions.- Parameters:
conditions
- the conditions- Returns:
- the UpdateAlertPolicyOptions builder
-
filters
public UpdateAlertPolicyOptions.Builder filters(Map<String,Object> filters)
Set the filters.- Parameters:
filters
- the filters- Returns:
- the UpdateAlertPolicyOptions builder
-
-