CdnEndpoint.UpdateStandardEndpoint Interface

public interface UpdateStandardEndpoint extends CdnEndpoint.Update

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

Method Summary

Modifier and Type Method and Description
CdnEndpoint.UpdateStandardEndpoint withCompressionEnabled(boolean compressionEnabled)

Sets the compression state.

CdnEndpoint.UpdateStandardEndpoint withContentTypesToCompress(Set<String> contentTypesToCompress)

Specifies the content types to compress.

CdnEndpoint.UpdateStandardEndpoint withContentTypeToCompress(String contentTypeToCompress)

Specifies a single content type to compress.

CdnEndpoint.UpdateStandardEndpoint withCustomDomain(String hostName)

Adds a new CDN custom domain within an endpoint.

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

Sets the geo filters list for the specified countries list.

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

Adds a single entry to the Geo filters list.

CdnEndpoint.UpdateStandardEndpoint withGeoFilters(Collection<GeoFilter> geoFilters)

Specifies the geo filters to use.

CdnEndpoint.UpdateStandardEndpoint withHostHeader(String hostHeader)

Specifies the host header.

CdnEndpoint.UpdateStandardEndpoint withHttpAllowed(boolean httpAllowed)

Specifies if HTTP traffic is allowed.

CdnEndpoint.UpdateStandardEndpoint withHttpPort(int httpPort)

Specifies the port for HTTP traffic.

CdnEndpoint.UpdateStandardEndpoint withHttpsAllowed(boolean httpsAllowed)

Specifies if HTTPS traffic is allowed.

CdnEndpoint.UpdateStandardEndpoint withHttpsPort(int httpsPort)

Specifies the port for HTTP traffic.

CdnEndpoint.UpdateStandardEndpoint withOriginPath(String originPath)

Specifies the origin path.

CdnEndpoint.UpdateStandardEndpoint withoutContentTypesToCompress()

Clears entire list of content types to compress.

CdnEndpoint.UpdateStandardEndpoint withoutContentTypeToCompress(String contentTypeToCompress)

Removes the content type to compress from the list.

CdnEndpoint.UpdateStandardEndpoint withoutCustomDomain(String hostName)

Removes CDN custom domain within an endpoint.

CdnEndpoint.UpdateStandardEndpoint withoutGeoFilter(String relativePath)

Removes an entry from the geo filters list.

CdnEndpoint.UpdateStandardEndpoint withoutGeoFilters()

Clears entire geo filters list.

CdnEndpoint.UpdateStandardEndpoint withQueryStringCachingBehavior(QueryStringCachingBehavior cachingBehavior)

Sets the query string caching behavior.

Inherited Members

Method Details

withCompressionEnabled

public UpdateStandardEndpoint withCompressionEnabled(boolean compressionEnabled)

Sets the compression state.

Parameters:

compressionEnabled - if true then compression will be enabled

Returns:

the next stage of the definition

withContentTypesToCompress

public 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

withContentTypeToCompress

public 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

withCustomDomain

public 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 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

withGeoFilter

public 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

withGeoFilters

public UpdateStandardEndpoint withGeoFilters(Collection geoFilters)

Specifies the geo filters to use.

Parameters:

geoFilters - geo filters

Returns:

the next stage of the definition

withHostHeader

public UpdateStandardEndpoint withHostHeader(String hostHeader)

Specifies the host header.

Parameters:

hostHeader - a host header.

Returns:

the next stage of the endpoint update

withHttpAllowed

public 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 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 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 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 UpdateStandardEndpoint withOriginPath(String originPath)

Specifies the origin path.

Parameters:

originPath - an origin path

Returns:

the next stage of the endpoint update

withoutContentTypesToCompress

public UpdateStandardEndpoint withoutContentTypesToCompress()

Clears entire list of content types to compress.

Returns:

the next stage of the endpoint update

withoutContentTypeToCompress

public 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

withoutCustomDomain

public 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 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 UpdateStandardEndpoint withoutGeoFilters()

Clears entire geo filters list.

Returns:

the next stage of the endpoint update

withQueryStringCachingBehavior

public 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

Applies to