@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-08-19") public class IpRuleset extends Object implements org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>, Serializable, Cloneable, Comparable<IpRuleset>
Modifier and Type | Class and Description |
---|---|
static class |
IpRuleset._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
Set<ByteBuffer> |
blacklistIps |
static Map<IpRuleset._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Set<ByteBuffer> |
whitelistIps |
Constructor and Description |
---|
IpRuleset() |
IpRuleset(IpRuleset other)
Performs a deep copy on other.
|
IpRuleset(Set<ByteBuffer> blacklistIps,
Set<ByteBuffer> whitelistIps) |
Modifier and Type | Method and Description |
---|---|
void |
addToBlacklistIps(ByteBuffer elem) |
void |
addToWhitelistIps(ByteBuffer elem) |
void |
clear() |
int |
compareTo(IpRuleset other) |
IpRuleset |
deepCopy() |
boolean |
equals(IpRuleset that) |
boolean |
equals(Object that) |
IpRuleset._Fields |
fieldForId(int fieldId) |
Set<ByteBuffer> |
getBlacklistIps() |
Iterator<ByteBuffer> |
getBlacklistIpsIterator() |
int |
getBlacklistIpsSize() |
Object |
getFieldValue(IpRuleset._Fields field) |
Set<ByteBuffer> |
getWhitelistIps() |
Iterator<ByteBuffer> |
getWhitelistIpsIterator() |
int |
getWhitelistIpsSize() |
int |
hashCode() |
boolean |
isSet(IpRuleset._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBlacklistIps()
Returns true if field blacklistIps is set (has been assigned a value) and false otherwise
|
boolean |
isSetWhitelistIps()
Returns true if field whitelistIps is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
IpRuleset |
setBlacklistIps(Set<ByteBuffer> blacklistIps) |
void |
setBlacklistIpsIsSet(boolean value) |
void |
setFieldValue(IpRuleset._Fields field,
Object value) |
IpRuleset |
setWhitelistIps(Set<ByteBuffer> whitelistIps) |
void |
setWhitelistIpsIsSet(boolean value) |
String |
toString() |
void |
unsetBlacklistIps() |
void |
unsetWhitelistIps() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public Set<ByteBuffer> blacklistIps
public Set<ByteBuffer> whitelistIps
public static final Map<IpRuleset._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public IpRuleset()
public IpRuleset(Set<ByteBuffer> blacklistIps, Set<ByteBuffer> whitelistIps)
public IpRuleset(IpRuleset other)
public IpRuleset deepCopy()
deepCopy
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
public int getBlacklistIpsSize()
public Iterator<ByteBuffer> getBlacklistIpsIterator()
public void addToBlacklistIps(ByteBuffer elem)
public Set<ByteBuffer> getBlacklistIps()
public IpRuleset setBlacklistIps(Set<ByteBuffer> blacklistIps)
public void unsetBlacklistIps()
public boolean isSetBlacklistIps()
public void setBlacklistIpsIsSet(boolean value)
public int getWhitelistIpsSize()
public Iterator<ByteBuffer> getWhitelistIpsIterator()
public void addToWhitelistIps(ByteBuffer elem)
public Set<ByteBuffer> getWhitelistIps()
public IpRuleset setWhitelistIps(Set<ByteBuffer> whitelistIps)
public void unsetWhitelistIps()
public boolean isSetWhitelistIps()
public void setWhitelistIpsIsSet(boolean value)
public void setFieldValue(IpRuleset._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
public Object getFieldValue(IpRuleset._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
public boolean isSet(IpRuleset._Fields field)
isSet
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
public boolean equals(IpRuleset that)
public int compareTo(IpRuleset other)
compareTo
in interface Comparable<IpRuleset>
public IpRuleset._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<IpRuleset,IpRuleset._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2016. All Rights Reserved.