CompressionSettings Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. CompressionSettings
- com.
Implements
public final class CompressionSettings
implements JsonSerializable<CompressionSettings>
settings for compression.
Constructor Summary
Constructor | Description |
---|---|
CompressionSettings() |
Creates an instance of Compression |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
contentTypesToCompress()
Get the content |
static
Compression |
fromJson(JsonReader jsonReader)
Reads an instance of Compression |
Boolean |
isCompressionEnabled()
Get the is |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Compression |
withContentTypesToCompress(List<String> contentTypesToCompress)
Set the content |
Compression |
withIsCompressionEnabled(Boolean isCompressionEnabled)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
CompressionSettings
public CompressionSettings()
Creates an instance of CompressionSettings class.
Method Details
contentTypesToCompress
public List<String> contentTypesToCompress()
Get the contentTypesToCompress property: List of content types on which compression applies. The value should be a valid MIME type.
Returns:
fromJson
public static CompressionSettings fromJson(JsonReader jsonReader)
Reads an instance of CompressionSettings from the JsonReader.
Parameters:
Returns:
Throws:
isCompressionEnabled
public Boolean isCompressionEnabled()
Get the isCompressionEnabled property: 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:
toJson
validate
public void validate()
Validates the instance.
withContentTypesToCompress
public CompressionSettings withContentTypesToCompress(List<String> contentTypesToCompress)
Set the contentTypesToCompress property: List of content types on which compression applies. The value should be a valid MIME type.
Parameters:
Returns:
withIsCompressionEnabled
public CompressionSettings withIsCompressionEnabled(Boolean isCompressionEnabled)
Set the isCompressionEnabled property: 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:
Returns: