com.baidubce.services.cdn.model.domain
Class Cors
java.lang.Object
com.baidubce.services.cdn.model.JsonObject
com.baidubce.services.cdn.model.domain.Cors
public class Cors
- extends JsonObject
|
Constructor Summary |
Cors()
|
Cors
public Cors()
getAllow
public String getAllow()
- o
- Returns:
- allow
setAllow
public void setAllow(String allow)
- Parameters:
allow - whether cross-domain access is allowed
getOriginList
public List<String> getOriginList()
- Returns:
- originList
setOriginList
public void setOriginList(List<String> originList)
- Parameters:
originList - List of domain names allowed across domains
withAllow
public Cors withAllow(String allow)
- Parameters:
allow - whether cross-domain access is allowed
- Returns:
- this object
withOriginList
public Cors withOriginList(List<String> originList)
- Parameters:
originList - List of domain names allowed across domains
- Returns:
- this object
addOriginList
public Cors addOriginList(String origin)
- Parameters:
origin - domain's name
- Returns:
- this object
Copyright © 2020. All rights reserved.