Class ZoneOperationsImpl

java.lang.Object
codes.thischwa.cf.fluent.ZoneOperationsImpl
All Implemented Interfaces:
ZoneOperations

public class ZoneOperationsImpl extends Object implements ZoneOperations
Implementation of ZoneOperations for fluent API access to zone-level operations.
  • Constructor Details

    • ZoneOperationsImpl

      public ZoneOperationsImpl(CfDnsClient client, ZoneEntity zone)
      Constructs a ZoneOperationsImpl instance.
      Parameters:
      client - the CfDnsClient instance to use for operations
      zone - the ZoneEntity representing the DNS zone
  • Method Details

    • getRecord

      public RecordOperations getRecord(String subdomain) throws CloudflareApiException
      Description copied from interface: ZoneOperations
      Selects a record (subdomain) within the zone for further operations.
      Specified by:
      getRecord in interface ZoneOperations
      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

      public RecordOperations getRecord(String subdomain, @Nullable @Nullable RecordType... types) throws CloudflareApiException
      Description copied from interface: ZoneOperations
      Selects a record with specific types within the zone for further operations.
      Specified by:
      getRecord in interface ZoneOperations
      Parameters:
      subdomain - the subdomain relative to the zone (e.g. "www"), or "@" for the zone apex
      types - 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: ZoneOperations
      Lists all DNS records within the zone, optionally filtered by types.
      Specified by:
      list in interface ZoneOperations
      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