类 Condition
- java.lang.Object
-
- com.baidubce.services.bos.model.Condition
-
public class Condition extends Object
The Conditon For Bucket Acl and Bucket Lifecycle. conditonTime for Bucket Lifecycle, the time restrictions, Implemented by the defined dateGreaterThan. referer for Bucket Acl, Identifies the referer that is granted access permission. ipAddress for Bucket Acl, Identifies the ip that is granted access permission.
-
-
构造器概要
构造器 构造器 说明 Condition()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<String>getIpAddress()Gets ipAddress of Bucket Acl, just for Bucket Acl jsonReferergetReferer()Gets referer of Bucket Acl.TimegetTime()Gets time of Bucket Lifecycle.booleanisSecureTransport()Gets secureTransport of Bucket Acl.voidsetIpAddress(List<String> ipAddress)Sets ipAddress of Bucket Acl, just for Bucket Acl jsonvoidsetReferer(Referer referer)Sets referer of Bucket Acl.voidsetSecureTransport(boolean secureTransport)Sets secureTransport of Bucket Acl.voidsetTime(Time time)Sets time of Bucket Lifecycle.StringtoString()ConditionwithIpAddress(List<String> ipAddress)Sets ipAddress of Bucket Acl, just for Bucket Acl jsonConditionwithReferer(Referer referer)Sets referer of Bucket Acl.ConditionwithSecureTransport(boolean secureTransport)Sets secureTransport of Bucket Acl.ConditionwithTime(Time time)Sets time of Bucket Lifecycle.
-
-
-
方法详细资料
-
getTime
public Time getTime()
Gets time of Bucket Lifecycle.- 返回:
- time of Bucket Lifecycle.
-
setTime
public void setTime(Time time)
Sets time of Bucket Lifecycle.- 参数:
time- The time of Bucket Lifecycle.
-
withTime
public Condition withTime(Time time)
Sets time of Bucket Lifecycle.- 参数:
time- The time of Bucket Lifecycle.- 返回:
- this object.
-
getIpAddress
public List<String> getIpAddress()
Gets ipAddress of Bucket Acl, just for Bucket Acl json- 返回:
- ipAddress of Bucket Acl.
-
setIpAddress
public void setIpAddress(List<String> ipAddress)
Sets ipAddress of Bucket Acl, just for Bucket Acl json- 参数:
ipAddress- The ipAddress of Bucket Acl.
-
withIpAddress
public Condition withIpAddress(List<String> ipAddress)
Sets ipAddress of Bucket Acl, just for Bucket Acl json- 参数:
ipAddress- The ipAddress of Bucket Acl.- 返回:
- this object.
-
getReferer
public Referer getReferer()
Gets referer of Bucket Acl.- 返回:
- referer of Bucket Acl.
-
setReferer
public void setReferer(Referer referer)
Sets referer of Bucket Acl.- 参数:
referer- The referer of Bucket Acl.
-
withReferer
public Condition withReferer(Referer referer)
Sets referer of Bucket Acl.- 参数:
referer- The referer of Bucket Acl.- 返回:
- this object.
-
isSecureTransport
public boolean isSecureTransport()
Gets secureTransport of Bucket Acl.- 返回:
- secureTransport of Bucket Acl
-
setSecureTransport
public void setSecureTransport(boolean secureTransport)
Sets secureTransport of Bucket Acl.- 参数:
secureTransport-
-
withSecureTransport
public Condition withSecureTransport(boolean secureTransport)
Sets secureTransport of Bucket Acl.- 参数:
secureTransport- The secureTransport of Bucket Acl- 返回:
- this object.
-
-