com.baidubce.services.cdn.model
Class CacheTTL

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

public class CacheTTL
extends JsonObject

Author:
yixing Cache TTL policy

Constructor Summary
CacheTTL()
           
 
Method Summary
 Integer getTtl()
           
 String getType()
           
 String getValue()
           
 Integer getWeight()
           
 void setTtl(Integer ttl)
           
 void setType(String type)
           
 void setValue(String value)
           
 void setWeight(Integer weight)
           
 CacheTTL withTtl(Integer ttl)
           
 CacheTTL withType(String type)
           
 CacheTTL withValue(String value)
           
 CacheTTL withWeigth(Integer weight)
           
 
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

CacheTTL

public CacheTTL()
Method Detail

getType

public String getType()
Returns:
type

setType

public void setType(String type)
Parameters:
type -

withType

public CacheTTL withType(String type)
Parameters:
type -
Returns:
returns this object

getValue

public String getValue()
Returns:
value

setValue

public void setValue(String value)
Parameters:
value -

withValue

public CacheTTL withValue(String value)
Parameters:
value -
Returns:
returns this object

getTtl

public Integer getTtl()
Returns:
ttl

setTtl

public void setTtl(Integer ttl)
Parameters:
ttl -

withTtl

public CacheTTL withTtl(Integer ttl)
Parameters:
ttl -
Returns:
returns this object

getWeight

public Integer getWeight()
Returns:
weigh

setWeight

public void setWeight(Integer weight)
Parameters:
weight -

withWeigth

public CacheTTL withWeigth(Integer weight)
Parameters:
weight -
Returns:
returns this object


Copyright © 2018. All rights reserved.