com.baidubce.services.bos.model
Class Condition

java.lang.Object
  extended by 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.


Constructor Summary
Condition()
           
 
Method Summary
 List<String> getIpAddress()
          Gets ipAddress of Bucket Acl, just for Bucket Acl json
 Referer getReferer()
          Gets referer of Bucket Acl.
 Time getTime()
          Gets time of Bucket Lifecycle.
 void setIpAddress(List<String> ipAddress)
          Sets ipAddress of Bucket Acl, just for Bucket Acl json
 void setReferer(Referer referer)
          Sets referer of Bucket Acl.
 void setTime(Time time)
          Sets time of Bucket Lifecycle.
 String toString()
           
 Condition withIpAddress(List<String> ipAddress)
          Sets ipAddress of Bucket Acl, just for Bucket Acl json
 Condition withReferer(Referer referer)
          Sets referer of Bucket Acl.
 Condition withTime(Time time)
          Sets time of Bucket Lifecycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()
Method Detail

getTime

public Time getTime()
Gets time of Bucket Lifecycle.

Returns:
time of Bucket Lifecycle.

setTime

public void setTime(Time time)
Sets time of Bucket Lifecycle.

Parameters:
time - The time of Bucket Lifecycle.

withTime

public Condition withTime(Time time)
Sets time of Bucket Lifecycle.

Parameters:
time - The time of Bucket Lifecycle.
Returns:
this object.

getIpAddress

public List<String> getIpAddress()
Gets ipAddress of Bucket Acl, just for Bucket Acl json

Returns:
ipAddress of Bucket Acl.

setIpAddress

public void setIpAddress(List<String> ipAddress)
Sets ipAddress of Bucket Acl, just for Bucket Acl json

Parameters:
ipAddress - The ipAddress of Bucket Acl.

withIpAddress

public Condition withIpAddress(List<String> ipAddress)
Sets ipAddress of Bucket Acl, just for Bucket Acl json

Parameters:
ipAddress - The ipAddress of Bucket Acl.
Returns:
this object.

getReferer

public Referer getReferer()
Gets referer of Bucket Acl.

Returns:
referer of Bucket Acl.

setReferer

public void setReferer(Referer referer)
Sets referer of Bucket Acl.

Parameters:
referer - The referer of Bucket Acl.

withReferer

public Condition withReferer(Referer referer)
Sets referer of Bucket Acl.

Parameters:
referer - The referer of Bucket Acl.
Returns:
this object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.