共用方式為


HasHostname Interface

public interface HasHostname

An interface representing a model's ability to reference a host name. The hostname supports wildcard format, e.g. "*.contoso.com", but is available only for STANDARD_V2 and WAF_V2 SKU

Method Summary

Modifier and Type Method and Description
abstract String hostname()

Gets the associated host name, or the first one if there exists multiple host names.

abstract List<String> hostnames()

Gets the associated host names.

Method Details

hostname

public abstract String hostname()

Gets the associated host name, or the first one if there exists multiple host names.

Returns:

the associated host name, or the first one if there exists multiple host names

hostnames

public abstract List hostnames()

Gets the associated host names.

Returns:

the associated host names

Applies to