Class CompressionSettings
java.lang.Object
com.microsoft.azure.management.cdn.CompressionSettings
settings for compression.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet list of content types on which compression applies.Get indicates whether content compression is enabled on AzureFrontDoor.withContentTypesToCompress
(List<String> contentTypesToCompress) Set list of content types on which compression applies.withIsCompressionEnabled
(Boolean isCompressionEnabled) Set indicates whether content compression is enabled on AzureFrontDoor.
-
Constructor Details
-
CompressionSettings
public CompressionSettings()
-
-
Method Details
-
contentTypesToCompress
Get list of content types on which compression applies. The value should be a valid MIME type.- Returns:
- the contentTypesToCompress value
-
withContentTypesToCompress
Set list of content types on which compression applies. The value should be a valid MIME type.- Parameters:
contentTypesToCompress
- the contentTypesToCompress value to set- Returns:
- the CompressionSettings object itself.
-
isCompressionEnabled
Get indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.- Returns:
- the isCompressionEnabled value
-
withIsCompressionEnabled
Set indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.- Parameters:
isCompressionEnabled
- the isCompressionEnabled value to set- Returns:
- the CompressionSettings object itself.
-