com.baidubce.services.cdn.model.domain
Class Compress

java.lang.Object
  extended by com.baidubce.services.cdn.model.JsonObject
      extended by com.baidubce.services.cdn.model.domain.Compress

public class Compress
extends JsonObject

create by changxing01 on 19/8/28


Constructor Summary
Compress()
           
 
Method Summary
 String getType()
           
 boolean isAllow()
           
 void setAllow(boolean allow)
           
 void setType(String type)
           
 Compress withAllow(boolean allow)
           
 Compress withType(String type)
           
 
Methods inherited from class com.baidubce.services.cdn.model.JsonObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compress

public Compress()
Method Detail

isAllow

public boolean isAllow()
Returns:
allow

setAllow

public void setAllow(boolean allow)
Parameters:
allow - Whether to enable page compression

withAllow

public Compress withAllow(boolean allow)
Parameters:
allow - Whether to enable page compression
Returns:
this object

getType

public String getType()
Returns:
type

setType

public void setType(String type)
Parameters:
type - compress type

withType

public Compress withType(String type)
Parameters:
type - compress type
Returns:
this object


Copyright © 2020. All rights reserved.