Interface CdnEndpoint.UpdateStandardEndpoint
- All Superinterfaces:
CdnEndpoint.Update
,Settable<CdnProfile.Update>
- Enclosing interface:
- CdnEndpoint
The stage of an CDN profile endpoint update allowing to specify endpoint properties.
-
Method Summary
Modifier and TypeMethodDescriptionwithCompressionEnabled
(boolean compressionEnabled) Sets the compression state.withContentTypesToCompress
(Set<String> contentTypesToCompress) Specifies the content types to compress.withContentTypeToCompress
(String contentTypeToCompress) Specifies a single content type to compress.withCustomDomain
(String hostName) Adds a new CDN custom domain within an endpoint.withGeoFilter
(String relativePath, GeoFilterActions action, CountryIsoCode countryCode) Adds a single entry to the Geo filters list.withGeoFilter
(String relativePath, GeoFilterActions action, Collection<CountryIsoCode> countryCodes) Sets the geo filters list for the specified countries list.withGeoFilters
(Collection<GeoFilter> geoFilters) Specifies the geo filters to use.withHostHeader
(String hostHeader) Specifies the host header.withHttpAllowed
(boolean httpAllowed) Specifies if HTTP traffic is allowed.withHttpPort
(int httpPort) Specifies the port for HTTP traffic.withHttpsAllowed
(boolean httpsAllowed) Specifies if HTTPS traffic is allowed.withHttpsPort
(int httpsPort) Specifies the port for HTTP traffic.withOriginPath
(String originPath) Specifies the origin path.Clears entire list of content types to compress.withoutContentTypeToCompress
(String contentTypeToCompress) Removes the content type to compress from the list.withoutCustomDomain
(String hostName) Removes CDN custom domain within an endpoint.withoutGeoFilter
(String relativePath) Removes an entry from the geo filters list.Clears entire geo filters list.withQueryStringCachingBehavior
(QueryStringCachingBehavior cachingBehavior) Sets the query string caching behavior.
-
Method Details
-
withOriginPath
Specifies the origin path.- Parameters:
originPath
- an origin path- Returns:
- the next stage of the endpoint update
-
withHostHeader
Specifies the host header.- Parameters:
hostHeader
- a host header.- Returns:
- the next stage of the endpoint update
-
withHttpAllowed
Specifies if HTTP traffic is allowed.- Parameters:
httpAllowed
- if true then HTTP traffic will be allowed- Returns:
- the next stage of the endpoint update
-
withHttpsAllowed
Specifies if HTTPS traffic is allowed.- Parameters:
httpsAllowed
- if true then HTTPS traffic will be allowed.- Returns:
- the next stage of the endpoint update
-
withHttpPort
Specifies the port for HTTP traffic.- Parameters:
httpPort
- a port number.- Returns:
- the next stage of the endpoint update
-
withHttpsPort
Specifies the port for HTTP traffic.- Parameters:
httpsPort
- a port number.- Returns:
- the next stage of the endpoint update
-
withContentTypesToCompress
Specifies the content types to compress.- Parameters:
contentTypesToCompress
- content types to compress to set- Returns:
- the next stage of the definition
-
withoutContentTypesToCompress
CdnEndpoint.UpdateStandardEndpoint withoutContentTypesToCompress()Clears entire list of content types to compress.- Returns:
- the next stage of the endpoint update
-
withContentTypeToCompress
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
-
withoutContentTypeToCompress
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
-
withCompressionEnabled
Sets the compression state.- Parameters:
compressionEnabled
- if true then compression will be enabled- Returns:
- the next stage of the definition
-
withQueryStringCachingBehavior
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
-
withGeoFilters
Specifies the geo filters to use.- Parameters:
geoFilters
- geo filters- Returns:
- the next stage of the definition
-
withoutGeoFilters
CdnEndpoint.UpdateStandardEndpoint withoutGeoFilters()Clears entire geo filters list.- Returns:
- the next stage of the endpoint update
-
withGeoFilter
CdnEndpoint.UpdateStandardEndpoint withGeoFilter(String relativePath, GeoFilterActions action, CountryIsoCode countryCode) Adds a single entry to the Geo filters list.- Parameters:
relativePath
- a relative pathaction
- an actioncountryCode
- an ISO 2 letter country code- Returns:
- the next stage of the definition
-
withGeoFilter
CdnEndpoint.UpdateStandardEndpoint withGeoFilter(String relativePath, GeoFilterActions action, Collection<CountryIsoCode> countryCodes) Sets the geo filters list for the specified countries list.- Parameters:
relativePath
- a relative pathaction
- an actioncountryCodes
- a list of ISO 2 letter country codes- Returns:
- the next stage of the definition
-
withoutGeoFilter
Removes an entry from the geo filters list.- Parameters:
relativePath
- a relative path- Returns:
- the next stage of the endpoint update
-
withCustomDomain
Adds a new CDN custom domain within an endpoint.- Parameters:
hostName
- custom domain host name- Returns:
- the next stage of the endpoint update
-
withoutCustomDomain
Removes CDN custom domain within an endpoint.- Parameters:
hostName
- a custom domain host name- Returns:
- the next stage of the endpoint update
-