Package codes.thischwa.cf.fluent
Class ZoneOperationsImpl
java.lang.Object
codes.thischwa.cf.fluent.ZoneOperationsImpl
- All Implemented Interfaces:
ZoneOperations
Implementation of ZoneOperations for fluent API access to zone-level operations.
-
Constructor Summary
ConstructorsConstructorDescriptionZoneOperationsImpl(CfDnsClient client, ZoneEntity zone) Constructs a ZoneOperationsImpl instance. -
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.
-
Constructor Details
-
ZoneOperationsImpl
Constructs a ZoneOperationsImpl instance.- Parameters:
client- the CfDnsClient instance to use for operationszone- the ZoneEntity representing the DNS zone
-
-
Method Details
-
record
Description copied from interface:ZoneOperationsSelects a record (subdomain) within the zone for further operations.- Specified by:
recordin interfaceZoneOperations- 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
public RecordOperations record(String sld, @Nullable @Nullable RecordType... types) throws CloudflareApiException Description copied from interface:ZoneOperationsSelects a record with specific types within the zone for further operations.- Specified by:
recordin interfaceZoneOperations- 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
public List<RecordEntity> list(@Nullable @Nullable RecordType... types) throws CloudflareApiException Description copied from interface:ZoneOperationsLists all DNS records within the zone, optionally filtered by types.- Specified by:
listin interfaceZoneOperations- 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
-