@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-08-19") public class HostnameRuleset extends Object implements org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>, Serializable, Cloneable, Comparable<HostnameRuleset>
Modifier and Type | Class and Description |
---|---|
static class |
HostnameRuleset._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
Set<String> |
blacklistHosts |
static Map<HostnameRuleset._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Set<String> |
whitelistHosts |
Constructor and Description |
---|
HostnameRuleset() |
HostnameRuleset(HostnameRuleset other)
Performs a deep copy on other.
|
HostnameRuleset(Set<String> blacklistHosts,
Set<String> whitelistHosts) |
Modifier and Type | Method and Description |
---|---|
void |
addToBlacklistHosts(String elem) |
void |
addToWhitelistHosts(String elem) |
void |
clear() |
int |
compareTo(HostnameRuleset other) |
HostnameRuleset |
deepCopy() |
boolean |
equals(HostnameRuleset that) |
boolean |
equals(Object that) |
HostnameRuleset._Fields |
fieldForId(int fieldId) |
Set<String> |
getBlacklistHosts() |
Iterator<String> |
getBlacklistHostsIterator() |
int |
getBlacklistHostsSize() |
Object |
getFieldValue(HostnameRuleset._Fields field) |
Set<String> |
getWhitelistHosts() |
Iterator<String> |
getWhitelistHostsIterator() |
int |
getWhitelistHostsSize() |
int |
hashCode() |
boolean |
isSet(HostnameRuleset._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBlacklistHosts()
Returns true if field blacklistHosts is set (has been assigned a value) and false otherwise
|
boolean |
isSetWhitelistHosts()
Returns true if field whitelistHosts is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
HostnameRuleset |
setBlacklistHosts(Set<String> blacklistHosts) |
void |
setBlacklistHostsIsSet(boolean value) |
void |
setFieldValue(HostnameRuleset._Fields field,
Object value) |
HostnameRuleset |
setWhitelistHosts(Set<String> whitelistHosts) |
void |
setWhitelistHostsIsSet(boolean value) |
String |
toString() |
void |
unsetBlacklistHosts() |
void |
unsetWhitelistHosts() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<HostnameRuleset._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public HostnameRuleset()
public HostnameRuleset(HostnameRuleset other)
public HostnameRuleset deepCopy()
deepCopy
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>
public int getBlacklistHostsSize()
public void addToBlacklistHosts(String elem)
public HostnameRuleset setBlacklistHosts(Set<String> blacklistHosts)
public void unsetBlacklistHosts()
public boolean isSetBlacklistHosts()
public void setBlacklistHostsIsSet(boolean value)
public int getWhitelistHostsSize()
public void addToWhitelistHosts(String elem)
public HostnameRuleset setWhitelistHosts(Set<String> whitelistHosts)
public void unsetWhitelistHosts()
public boolean isSetWhitelistHosts()
public void setWhitelistHostsIsSet(boolean value)
public void setFieldValue(HostnameRuleset._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>
public Object getFieldValue(HostnameRuleset._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>
public boolean isSet(HostnameRuleset._Fields field)
isSet
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>
public boolean equals(HostnameRuleset that)
public int compareTo(HostnameRuleset other)
compareTo
in interface Comparable<HostnameRuleset>
public HostnameRuleset._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<HostnameRuleset,HostnameRuleset._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<HostnameRuleset,HostnameRuleset._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2016. All Rights Reserved.