Class EmailNotificationToolParams.Builder
java.lang.Object
com.oracle.database.selectai.model.agent.EmailNotificationToolParams.Builder
- Enclosing class:
EmailNotificationToolParams
Builder for immutable
EmailNotificationToolParams.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadditionalParameter(String name, Object value) Snapshots an additional database parameter.build()Builds an immutable snapshot without database-specific validation.credentialName(String credentialName) Sets the database credential name.Sets the email recipient.Sets the email sender.Sets the SMTP host.Sets the optional email subject.
-
Method Details
-
credentialName
Sets the database credential name.- Parameters:
credentialName- database credential name, or null to omit it- Returns:
- this builder
- See Also:
-
recipient
Sets the email recipient.- Parameters:
recipient- email recipient, or null to omit it- Returns:
- this builder
- See Also:
-
sender
Sets the email sender.- Parameters:
sender- email sender, or null to omit it- Returns:
- this builder
- See Also:
-
smtpHost
Sets the SMTP host.- Parameters:
smtpHost- SMTP host, or null to omit it- Returns:
- this builder
- See Also:
-
subject
Sets the optional email subject.- Parameters:
subject- optional email subject, or null to omit it- Returns:
- this builder
- See Also:
-
additionalParameter
Snapshots an additional database parameter.- Parameters:
name- database JSON parameter namevalue- JSON-compatible value, including null- Returns:
- this builder
- Throws:
IllegalArgumentException- when the name is blank, is a known parameter name, or the value is not JSON-compatible- See Also:
-
build
Builds an immutable snapshot without database-specific validation.- Returns:
- immutable parameters
- See Also:
-