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 TypeMethodDescriptionSelects a record (subdomain) within the zone for further operations.getRecord(String subdomain, @Nullable RecordType... types) Selects a record with specific types within the zone for further operations.list(@Nullable RecordType... types) Lists all DNS records within the zone, optionally filtered by types.
-
Method Details
-
getRecord
Selects a record (subdomain) within the zone for further operations.- Parameters:
subdomain- the subdomain relative to the zone (e.g. "www"), or "@" for the zone apex- Returns:
- a RecordOperations instance for chaining record-specific operations
- Throws:
CloudflareApiException- if the zone cannot be found or accessed
-
getRecord
RecordOperations getRecord(String subdomain, @Nullable @Nullable RecordType... types) throws CloudflareApiException Selects a record with specific types within the zone for further operations.The type filter does not restrict a subsequent
RecordOperations.delete(RecordType...)call; that method uses its own type arguments, and calling it without arguments deletes all record types for the selected subdomain. ACloudflareApiExceptionfrom an individual deletion is logged and does not stop later attempts; seeRecordOperations.delete(RecordType...).- Parameters:
subdomain- the subdomain relative to the zone (e.g. "www"), or "@" for the zone apextypes- 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
-