Interface DnsRecordSet.DefinitionStages.WithSrvRecordEntry<ParentT>

Type Parameters:
ParentT - the stage of the parent definition to return to after attaching this definition
All Known Subinterfaces:
DnsRecordSet.Definition<ParentT>, DnsRecordSet.DefinitionStages.SrvRecordSetBlank<ParentT>, DnsRecordSet.DefinitionStages.WithSrvRecordEntryOrAttachable<ParentT>
Enclosing interface:
DnsRecordSet.DefinitionStages

public static interface DnsRecordSet.DefinitionStages.WithSrvRecordEntry<ParentT>
The stage of the SRV record definition allowing to add first service record.
  • Method Details

    • withRecord

      DnsRecordSet.DefinitionStages.WithSrvRecordEntryOrAttachable<ParentT> withRecord(String target, int port, int priority, int weight)
      Specifies a service record for a service.
      Parameters:
      target - the canonical name of the target host running the service
      port - the port on which the service is bounded
      priority - the priority of the target host, lower the value higher the priority
      weight - the relative weight (preference) of the records with the same priority, higher the value more the preference
      Returns:
      the next stage of the definition