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 SummaryConstructors Constructor Description Builder()Instantiates a new builder.
 - 
Method SummaryAll 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- 
buildpublic CreateAlertPolicyInputMechanisms build() Builds a CreateAlertPolicyInputMechanisms.- Returns:
- the new CreateAlertPolicyInputMechanisms instance
 
 - 
addEmailpublic CreateAlertPolicyInputMechanisms.Builder addEmail(CreateAlertPolicyInputMechanismsEmailItem email) Adds an email to email.- Parameters:
- email- the new email
- Returns:
- the CreateAlertPolicyInputMechanisms builder
 
 - 
addWebhookspublic CreateAlertPolicyInputMechanisms.Builder addWebhooks(CreateAlertPolicyInputMechanismsWebhooksItem webhooks) Adds an webhooks to webhooks.- Parameters:
- webhooks- the new webhooks
- Returns:
- the CreateAlertPolicyInputMechanisms builder
 
 - 
emailpublic CreateAlertPolicyInputMechanisms.Builder email(List<CreateAlertPolicyInputMechanismsEmailItem> email) Set the email. Existing email will be replaced.- Parameters:
- email- the email
- Returns:
- the CreateAlertPolicyInputMechanisms builder
 
 - 
webhookspublic CreateAlertPolicyInputMechanisms.Builder webhooks(List<CreateAlertPolicyInputMechanismsWebhooksItem> webhooks) Set the webhooks. Existing webhooks will be replaced.- Parameters:
- webhooks- the webhooks
- Returns:
- the CreateAlertPolicyInputMechanisms builder
 
 
- 
 
-