你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CdnEndpoint.UpdateDefinitionStages.WithStandardAttach<ParentT> 接口

类型参数

ParentT

父 CDN 配置文件更新的阶段,在附加此定义后要返回到

实现

public static interface CdnEndpoint.UpdateDefinitionStages.WithStandardAttach
extends AttachableStandard<ParentT>

CDN 配置文件标准 Akamai 或标准 Verizon 终结点定义的最后阶段。

在此阶段,可以指定任何剩余的可选设置,也可以将 CDN 配置文件终结点定义附加到父 CDN 配置文件定义

方法摘要

修饰符和类型 方法和描述
abstract WithStandardAttach<ParentT> withCompressionEnabled(boolean compressionEnabled)

设置压缩状态。

abstract WithStandardAttach<ParentT> withContentTypeToCompress(String contentTypeToCompress)

指定要压缩的单个内容类型。

abstract WithStandardAttach<ParentT> withContentTypesToCompress(Set<String> contentTypesToCompress)

指定要压缩的内容类型。

abstract WithStandardAttach<ParentT> withCustomDomain(String hostName)

在终结点中添加新的 CDN 自定义域。

abstract WithStandardAttach<ParentT> withGeoFilter(String relativePath, GeoFilterActions action, CountryIsoCode countryCode)

将单个条目添加到地理筛选器列表。

abstract WithStandardAttach<ParentT> withGeoFilter(String relativePath, GeoFilterActions action, Collection<CountryIsoCode> countryCodes)

设置指定国家/地区列表的地理筛选器列表。

abstract WithStandardAttach<ParentT> withGeoFilters(Collection<GeoFilter> geoFilters)

指定要使用的地理筛选器。

abstract WithStandardAttach<ParentT> withHostHeader(String hostHeader)

指定主机标头。

abstract WithStandardAttach<ParentT> withHttpAllowed(boolean httpAllowed)

指定是否允许 HTTP 流量。

abstract WithStandardAttach<ParentT> withHttpPort(int httpPort)

指定 HTTP 流量的端口。

abstract WithStandardAttach<ParentT> withHttpsAllowed(boolean httpsAllowed)

指定是否允许 HTTPS 流量。

abstract WithStandardAttach<ParentT> withHttpsPort(int httpsPort)

指定 HTTPS 流量的端口。

abstract WithStandardAttach<ParentT> withOriginPath(String originPath)

指定源路径。

abstract WithStandardAttach<ParentT> withQueryStringCachingBehavior(QueryStringCachingBehavior cachingBehavior)

设置查询字符串缓存行为。

方法详细信息

withCompressionEnabled

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withCompressionEnabled(boolean compressionEnabled)

设置压缩状态。

Parameters:

compressionEnabled - 如果为 true,则将启用压缩,否则将禁用

Returns:

定义的下一阶段

withContentTypeToCompress

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withContentTypeToCompress(String contentTypeToCompress)

指定要压缩的单个内容类型。

Parameters:

contentTypeToCompress - 要压缩以添加到列表的单个内容类型

Returns:

定义的下一阶段

withContentTypesToCompress

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withContentTypesToCompress(Set contentTypesToCompress)

指定要压缩的内容类型。

Parameters:

contentTypesToCompress - 要压缩以设置的内容类型

Returns:

定义的下一阶段

withCustomDomain

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withCustomDomain(String hostName)

在终结点中添加新的 CDN 自定义域。

Parameters:

hostName - 自定义域主机名

Returns:

定义的下一阶段

withGeoFilter

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withGeoFilter(String relativePath, GeoFilterActions action, CountryIsoCode countryCode)

将单个条目添加到地理筛选器列表。

Parameters:

relativePath - 相对路径
action - 操作
countryCode - ISO 2 字母国家/地区代码

Returns:

定义的下一阶段

withGeoFilter

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withGeoFilter(String relativePath, GeoFilterActions action, Collection countryCodes)

设置指定国家/地区列表的地理筛选器列表。

Parameters:

relativePath - 相对路径
action - 操作
countryCodes - ISO 2 字母国家/地区代码的列表

Returns:

定义的下一阶段

withGeoFilters

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withGeoFilters(Collection geoFilters)

指定要使用的地理筛选器。

Parameters:

geoFilters - 地理筛选器

Returns:

定义的下一阶段

withHostHeader

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withHostHeader(String hostHeader)

指定主机标头。

Parameters:

hostHeader - 主机标头

Returns:

定义的下一阶段

withHttpAllowed

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withHttpAllowed(boolean httpAllowed)

指定是否允许 HTTP 流量。

Parameters:

httpAllowed - 如果为 true,则允许 HTTP 流量

Returns:

定义的下一阶段

withHttpPort

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withHttpPort(int httpPort)

指定 HTTP 流量的端口。

Parameters:

httpPort - 端口号

Returns:

定义的下一阶段

withHttpsAllowed

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withHttpsAllowed(boolean httpsAllowed)

指定是否允许 HTTPS 流量。

Parameters:

httpsAllowed - 如果为 true,则允许 HTTPS 流量

Returns:

定义的下一阶段

withHttpsPort

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withHttpsPort(int httpsPort)

指定 HTTPS 流量的端口。

Parameters:

httpsPort - 端口号。

Returns:

定义的下一阶段

withOriginPath

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withOriginPath(String originPath)

指定源路径。

Parameters:

originPath - 源路径

Returns:

定义的下一阶段

withQueryStringCachingBehavior

public abstract CdnEndpoint.UpdateDefinitionStages.WithStandardAttach withQueryStringCachingBehavior(QueryStringCachingBehavior cachingBehavior)

设置查询字符串缓存行为。

Parameters:

cachingBehavior - 查询字符串缓存行为

Returns:

定义的下一阶段

适用于