CdnEndpoint.UpdateStandardEndpoint Interface

Implements

public static interface CdnEndpoint.UpdateStandardEndpoint
extends Update

The stage of an CDN profile endpoint update allowing to specify endpoint properties.

Method Summary

Modifier and Type Method and Description
abstract UpdateStandardEndpoint withCompressionEnabled(boolean compressionEnabled)

Sets the compression state.

abstract UpdateStandardEndpoint withContentTypeToCompress(String contentTypeToCompress)

Specifies a single content type to compress.

abstract UpdateStandardEndpoint withContentTypesToCompress(Set<String> contentTypesToCompress)

Specifies the content types to compress.

abstract UpdateStandardEndpoint withCustomDomain(String hostName)

Adds a new CDN custom domain within an endpoint.

abstract UpdateStandardEndpoint withGeoFilter(String relativePath, GeoFilterActions action, CountryIsoCode countryCode)

Adds a single entry to the Geo filters list.

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

Sets the geo filters list for the specified countries list.

abstract UpdateStandardEndpoint withGeoFilters(Collection<GeoFilter> geoFilters)

Specifies the geo filters to use.

abstract UpdateStandardEndpoint withHostHeader(String hostHeader)

Specifies the host header.

abstract UpdateStandardEndpoint withHttpAllowed(boolean httpAllowed)

Specifies if HTTP traffic is allowed.

abstract UpdateStandardEndpoint withHttpPort(int httpPort)

Specifies the port for HTTP traffic.

abstract UpdateStandardEndpoint withHttpsAllowed(boolean httpsAllowed)

Specifies if HTTPS traffic is allowed.

abstract UpdateStandardEndpoint withHttpsPort(int httpsPort)

Specifies the port for HTTP traffic.

abstract UpdateStandardEndpoint withOriginPath(String originPath)

Specifies the origin path.

abstract UpdateStandardEndpoint withQueryStringCachingBehavior(QueryStringCachingBehavior cachingBehavior)

Sets the query string caching behavior.

abstract UpdateStandardEndpoint withoutContentTypeToCompress(String contentTypeToCompress)

Removes the content type to compress from the list.

abstract UpdateStandardEndpoint withoutContentTypesToCompress()

Clears entire list of content types to compress.

abstract UpdateStandardEndpoint withoutCustomDomain(String hostName)

Removes CDN custom domain within an endpoint.

abstract UpdateStandardEndpoint withoutGeoFilter(String relativePath)

Removes an entry from the geo filters list.

abstract UpdateStandardEndpoint withoutGeoFilters()

Clears entire geo filters list.

Method Details

withCompressionEnabled

public abstract CdnEndpoint.UpdateStandardEndpoint withCompressionEnabled(boolean compressionEnabled)

Sets the compression state.

Parameters:

compressionEnabled - if true then compression will be enabled

Returns:

the next stage of the definition

withContentTypeToCompress

public abstract CdnEndpoint.UpdateStandardEndpoint withContentTypeToCompress(String contentTypeToCompress)

Specifies a single content type to compress.

Parameters:

contentTypeToCompress - a single content type to compress to add to the list

Returns:

the next stage of the definition

withContentTypesToCompress

public abstract CdnEndpoint.UpdateStandardEndpoint withContentTypesToCompress(Set contentTypesToCompress)

Specifies the content types to compress.

Parameters:

contentTypesToCompress - content types to compress to set

Returns:

the next stage of the definition

withCustomDomain

public abstract CdnEndpoint.UpdateStandardEndpoint withCustomDomain(String hostName)

Adds a new CDN custom domain within an endpoint.

Parameters:

hostName - custom domain host name

Returns:

the next stage of the endpoint update

withGeoFilter

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

Adds a single entry to the Geo filters list.

Parameters:

relativePath - a relative path
action - an action
countryCode - an ISO 2 letter country code

Returns:

the next stage of the definition

withGeoFilter

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

Sets the geo filters list for the specified countries list.

Parameters:

relativePath - a relative path
action - an action
countryCodes - a list of ISO 2 letter country codes

Returns:

the next stage of the definition

withGeoFilters

public abstract CdnEndpoint.UpdateStandardEndpoint withGeoFilters(Collection geoFilters)

Specifies the geo filters to use.

Parameters:

geoFilters - geo filters

Returns:

the next stage of the definition

withHostHeader

public abstract CdnEndpoint.UpdateStandardEndpoint withHostHeader(String hostHeader)

Specifies the host header.

Parameters:

hostHeader - a host header.

Returns:

the next stage of the endpoint update

withHttpAllowed

public abstract CdnEndpoint.UpdateStandardEndpoint withHttpAllowed(boolean httpAllowed)

Specifies if HTTP traffic is allowed.

Parameters:

httpAllowed - if true then HTTP traffic will be allowed

Returns:

the next stage of the endpoint update

withHttpPort

public abstract CdnEndpoint.UpdateStandardEndpoint withHttpPort(int httpPort)

Specifies the port for HTTP traffic.

Parameters:

httpPort - a port number.

Returns:

the next stage of the endpoint update

withHttpsAllowed

public abstract CdnEndpoint.UpdateStandardEndpoint withHttpsAllowed(boolean httpsAllowed)

Specifies if HTTPS traffic is allowed.

Parameters:

httpsAllowed - if true then HTTPS traffic will be allowed.

Returns:

the next stage of the endpoint update

withHttpsPort

public abstract CdnEndpoint.UpdateStandardEndpoint withHttpsPort(int httpsPort)

Specifies the port for HTTP traffic.

Parameters:

httpsPort - a port number.

Returns:

the next stage of the endpoint update

withOriginPath

public abstract CdnEndpoint.UpdateStandardEndpoint withOriginPath(String originPath)

Specifies the origin path.

Parameters:

originPath - an origin path

Returns:

the next stage of the endpoint update

withQueryStringCachingBehavior

public abstract CdnEndpoint.UpdateStandardEndpoint withQueryStringCachingBehavior(QueryStringCachingBehavior cachingBehavior)

Sets the query string caching behavior.

Parameters:

cachingBehavior - the query string caching behavior value to set

Returns:

the next stage of the definition

withoutContentTypeToCompress

public abstract CdnEndpoint.UpdateStandardEndpoint withoutContentTypeToCompress(String contentTypeToCompress)

Removes the content type to compress from the list.

Parameters:

contentTypeToCompress - a single content type to remove from the list

Returns:

the next stage of the endpoint update

withoutContentTypesToCompress

public abstract CdnEndpoint.UpdateStandardEndpoint withoutContentTypesToCompress()

Clears entire list of content types to compress.

Returns:

the next stage of the endpoint update

withoutCustomDomain

public abstract CdnEndpoint.UpdateStandardEndpoint withoutCustomDomain(String hostName)

Removes CDN custom domain within an endpoint.

Parameters:

hostName - a custom domain host name

Returns:

the next stage of the endpoint update

withoutGeoFilter

public abstract CdnEndpoint.UpdateStandardEndpoint withoutGeoFilter(String relativePath)

Removes an entry from the geo filters list.

Parameters:

relativePath - a relative path

Returns:

the next stage of the endpoint update

withoutGeoFilters

public abstract CdnEndpoint.UpdateStandardEndpoint withoutGeoFilters()

Clears entire geo filters list.

Returns:

the next stage of the endpoint update

Applies to