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.BuilderalertType(String alertType)Set the alertType.UpdateAlertPolicyOptionsbuild()Builds a UpdateAlertPolicyOptions.UpdateAlertPolicyOptions.Builderconditions(Map<String,Object> conditions)Set the conditions.UpdateAlertPolicyOptions.Builderdescription(String description)Set the description.UpdateAlertPolicyOptions.Builderenabled(Boolean enabled)Set the enabled.UpdateAlertPolicyOptions.Builderfilters(Map<String,Object> filters)Set the filters.UpdateAlertPolicyOptions.Buildermechanisms(UpdateAlertPolicyInputMechanisms mechanisms)Set the mechanisms.UpdateAlertPolicyOptions.Buildername(String name)Set the name.UpdateAlertPolicyOptions.BuilderpolicyId(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
-
-