Email and SMS customization

How to manage the below console operations through API/ Java SDK

Security → General → Security Notification Emails
Settings → Emails and SMS → SMS → MFA Verfification → Default (Custom)

This is required to automate the Okta setup.

Thank you!