Class UpdateAlertPolicyInputMechanisms.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.alerts.v1.model.UpdateAlertPolicyInputMechanisms.Builder
-
- Enclosing class:
- UpdateAlertPolicyInputMechanisms
public static class UpdateAlertPolicyInputMechanisms.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAlertPolicyInputMechanisms.Builder
addEmail(UpdateAlertPolicyInputMechanismsEmailItem email)
Adds an email to email.UpdateAlertPolicyInputMechanisms.Builder
addWebhooks(UpdateAlertPolicyInputMechanismsWebhooksItem webhooks)
Adds an webhooks to webhooks.UpdateAlertPolicyInputMechanisms
build()
Builds a UpdateAlertPolicyInputMechanisms.UpdateAlertPolicyInputMechanisms.Builder
email(List<UpdateAlertPolicyInputMechanismsEmailItem> email)
Set the email.UpdateAlertPolicyInputMechanisms.Builder
webhooks(List<UpdateAlertPolicyInputMechanismsWebhooksItem> webhooks)
Set the webhooks.
-
-
-
Method Detail
-
build
public UpdateAlertPolicyInputMechanisms build()
Builds a UpdateAlertPolicyInputMechanisms.- Returns:
- the new UpdateAlertPolicyInputMechanisms instance
-
addEmail
public UpdateAlertPolicyInputMechanisms.Builder addEmail(UpdateAlertPolicyInputMechanismsEmailItem email)
Adds an email to email.- Parameters:
email
- the new email- Returns:
- the UpdateAlertPolicyInputMechanisms builder
-
addWebhooks
public UpdateAlertPolicyInputMechanisms.Builder addWebhooks(UpdateAlertPolicyInputMechanismsWebhooksItem webhooks)
Adds an webhooks to webhooks.- Parameters:
webhooks
- the new webhooks- Returns:
- the UpdateAlertPolicyInputMechanisms builder
-
email
public UpdateAlertPolicyInputMechanisms.Builder email(List<UpdateAlertPolicyInputMechanismsEmailItem> email)
Set the email. Existing email will be replaced.- Parameters:
email
- the email- Returns:
- the UpdateAlertPolicyInputMechanisms builder
-
webhooks
public UpdateAlertPolicyInputMechanisms.Builder webhooks(List<UpdateAlertPolicyInputMechanismsWebhooksItem> webhooks)
Set the webhooks. Existing webhooks will be replaced.- Parameters:
webhooks
- the webhooks- Returns:
- the UpdateAlertPolicyInputMechanisms builder
-
-