Package com.mxraven.admin.client
Class SmtpRelaysClient
java.lang.Object
com.mxraven.admin.client.SmtpRelaysClient
Tenant SMTP relay collection. Reads and creation return hydrated
SmtpRelay entities.-
Constructor Summary
ConstructorsConstructorDescriptionSmtpRelaysClient(AdminClient client, String tenantSlug) Creates a client bound to the given tenant. -
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateSmtpRelayRequest request) Creates an SMTP relay described by the given request.create(Consumer<CreateSmtpRelayRequest.Builder> configure) Creates an SMTP relay configured through the given builder consumer.Gets an SMTP relay by its identifier.Gets an SMTP relay by its immutablerelay_ref.list()Lists SMTP relays for the tenant.
-
Constructor Details
-
SmtpRelaysClient
Creates a client bound to the given tenant.- Parameters:
client- underlying admin clienttenantSlug- tenant slug
-
-
Method Details
-
list
Lists SMTP relays for the tenant.- Returns:
- a lazily paginated collection of SMTP relays
- Throws:
IOException- if the request fails or is interrupted
-
create
Creates an SMTP relay configured through the given builder consumer.- Parameters:
configure- consumer that populates the creation request builder- Returns:
- the created SMTP relay
- Throws:
IOException- if the request fails or is interrupted
-
create
Creates an SMTP relay described by the given request.- Parameters:
request- SMTP relay creation request- Returns:
- the created SMTP relay
- Throws:
IOException- if the request fails or is interrupted
-
get
Gets an SMTP relay by its identifier.- Parameters:
relayId- SMTP relay identifier- Returns:
- the SMTP relay
- Throws:
IOException- if the request fails or is interrupted
-
getByRef
Gets an SMTP relay by its immutablerelay_ref.- Parameters:
relayRef- immutable SMTP relay reference- Returns:
- the SMTP relay
- Throws:
IOException- if the request fails or is interrupted
-