DnsRecordSet.UpdateStages.WithSrvRecordEntry Interface
public static interface DnsRecordSet.UpdateStages.WithSrvRecordEntry
The stage of the SRV record definition allowing to add or remove service record.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Update |
withRecord(String target, int port, int priority, int weight)
Specifies a service record for a service. |
abstract
Update |
withoutRecord(String target, int port, int priority, int weight)
Removes a service record for a service. |
Method Details
withRecord
public abstract DnsRecordSet.UpdateSrvRecordSet 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 record set update
withoutRecord
public abstract DnsRecordSet.UpdateSrvRecordSet withoutRecord(String target, int port, int priority, int weight)
Removes 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
weight
- the relative weight (preference) of the records
Returns:
the next stage of the record set update
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應