Package codes.thischwa.cf.fluent
Interface ZoneOperations
- All Known Implementing Classes:
ZoneOperationsImpl
public interface ZoneOperations
Fluent interface for zone-level operations.
Provides a chainable API for accessing and manipulating DNS records within a specific zone.
-
Method Summary
Modifier and TypeMethodDescriptionlist(@Nullable RecordType... types) Lists all DNS records within the zone, optionally filtered by types.Selects a record (subdomain) within the zone for further operations.record(String sld, @Nullable RecordType... types) Selects a record with specific types within the zone for further operations.
-
Method Details
-
record
Selects a record (subdomain) within the zone for further operations.- Parameters:
sld- the second-level domain (subdomain) name- Returns:
- a RecordOperations instance for chaining record-specific operations
- Throws:
CloudflareApiException- if the zone cannot be found or accessed
-
record
RecordOperations record(String sld, @Nullable @Nullable RecordType... types) throws CloudflareApiException Selects a record with specific types within the zone for further operations.- Parameters:
sld- the second-level domain (subdomain) nametypes- optional DNS record types to filter by- Returns:
- a RecordOperations instance for chaining record-specific operations
- Throws:
CloudflareApiException- if the zone cannot be found or accessed
-
list
Lists all DNS records within the zone, optionally filtered by types.- Parameters:
types- optional DNS record types to filter by- Returns:
- a list of RecordEntity objects matching the criteria
- Throws:
CloudflareApiException- if an error occurs while retrieving records
-