com.baidubce.services.lss.model
Class AntiLeech

java.lang.Object
  extended by com.baidubce.services.lss.model.AntiLeech
All Implemented Interfaces:
Serializable

public class AntiLeech
extends Object
implements Serializable

Reprsents the anti-leech settings. Currently only refer & single ip restriction are supported.

See Also:
Serialized Form

Constructor Summary
AntiLeech()
           
 
Method Summary
 IP getIp()
          Returns the IP
 Refer getRefer()
          Returns the refer
 void setIp(IP ip)
          Sets the IP.
 void setRefer(Refer refer)
          Sets the refer
 String toString()
           
 AntiLeech withIp(IP ip)
          Sets the IP and returns this object
 AntiLeech withRefer(Refer refer)
          Sets the refer and returns this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AntiLeech

public AntiLeech()
Method Detail

getRefer

public Refer getRefer()
Returns the refer

Returns:
the refer

setRefer

public void setRefer(Refer refer)
Sets the refer

Parameters:
refer - the refer

withRefer

public AntiLeech withRefer(Refer refer)
Sets the refer and returns this object.

Parameters:
refer - the refer
Returns:
this object

getIp

public IP getIp()
Returns the IP

Returns:
the IP

setIp

public void setIp(IP ip)
Sets the IP.

Parameters:
ip - the IP

withIp

public AntiLeech withIp(IP ip)
Sets the IP and returns this object

Parameters:
ip - the IP
Returns:
this object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.