Class CreateAlertPolicyInputMechanisms.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.alerts.v1.model.CreateAlertPolicyInputMechanisms.Builder
-
- Enclosing class:
- CreateAlertPolicyInputMechanisms
public static class CreateAlertPolicyInputMechanisms.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 CreateAlertPolicyInputMechanisms.BuilderaddEmail(CreateAlertPolicyInputMechanismsEmailItem email)Adds an email to email.CreateAlertPolicyInputMechanisms.BuilderaddWebhooks(CreateAlertPolicyInputMechanismsWebhooksItem webhooks)Adds an webhooks to webhooks.CreateAlertPolicyInputMechanismsbuild()Builds a CreateAlertPolicyInputMechanisms.CreateAlertPolicyInputMechanisms.Builderemail(List<CreateAlertPolicyInputMechanismsEmailItem> email)Set the email.CreateAlertPolicyInputMechanisms.Builderwebhooks(List<CreateAlertPolicyInputMechanismsWebhooksItem> webhooks)Set the webhooks.
-
-
-
Method Detail
-
build
public CreateAlertPolicyInputMechanisms build()
Builds a CreateAlertPolicyInputMechanisms.- Returns:
- the new CreateAlertPolicyInputMechanisms instance
-
addEmail
public CreateAlertPolicyInputMechanisms.Builder addEmail(CreateAlertPolicyInputMechanismsEmailItem email)
Adds an email to email.- Parameters:
email- the new email- Returns:
- the CreateAlertPolicyInputMechanisms builder
-
addWebhooks
public CreateAlertPolicyInputMechanisms.Builder addWebhooks(CreateAlertPolicyInputMechanismsWebhooksItem webhooks)
Adds an webhooks to webhooks.- Parameters:
webhooks- the new webhooks- Returns:
- the CreateAlertPolicyInputMechanisms builder
-
email
public CreateAlertPolicyInputMechanisms.Builder email(List<CreateAlertPolicyInputMechanismsEmailItem> email)
Set the email. Existing email will be replaced.- Parameters:
email- the email- Returns:
- the CreateAlertPolicyInputMechanisms builder
-
webhooks
public CreateAlertPolicyInputMechanisms.Builder webhooks(List<CreateAlertPolicyInputMechanismsWebhooksItem> webhooks)
Set the webhooks. Existing webhooks will be replaced.- Parameters:
webhooks- the webhooks- Returns:
- the CreateAlertPolicyInputMechanisms builder
-
-