mirror of https://github.com/MISP/misp-bump
238 lines
5.5 KiB
Java
238 lines
5.5 KiB
Java
package lu.circl.mispbump.models.restModels;
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
|
public class Server {
|
|
|
|
private Integer id;
|
|
private String name;
|
|
private String url;
|
|
private String authkey;
|
|
private Integer org_id;
|
|
private Boolean push;
|
|
private Boolean pull;
|
|
private Object lastpulledid;
|
|
private Object lastpushedid;
|
|
private Object organization;
|
|
private Integer remote_org_id;
|
|
private Boolean publish_without_email;
|
|
private Boolean unpublish_event;
|
|
private Boolean self_signed;
|
|
private String pull_rules;
|
|
private String push_rules;
|
|
private Object cert_file;
|
|
private Object client_cert_file;
|
|
private Boolean internal;
|
|
private Boolean skip_proxy;
|
|
private Boolean caching_enabled;
|
|
private Boolean cache_timestamp;
|
|
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
public String getAuthkey() {
|
|
return authkey;
|
|
}
|
|
|
|
public void setAuthkey(String authkey) {
|
|
this.authkey = authkey;
|
|
}
|
|
|
|
public Integer getOrg_id() {
|
|
return org_id;
|
|
}
|
|
|
|
public void setOrg_id(Integer org_id) {
|
|
this.org_id = org_id;
|
|
}
|
|
|
|
public Boolean getPush() {
|
|
return push;
|
|
}
|
|
|
|
public void setPush(Boolean push) {
|
|
this.push = push;
|
|
}
|
|
|
|
public Boolean getPull() {
|
|
return pull;
|
|
}
|
|
|
|
public void setPull(Boolean pull) {
|
|
this.pull = pull;
|
|
}
|
|
|
|
public Object getLastpulledid() {
|
|
return lastpulledid;
|
|
}
|
|
|
|
public void setLastpulledid(Object lastpulledid) {
|
|
this.lastpulledid = lastpulledid;
|
|
}
|
|
|
|
public Object getLastpushedid() {
|
|
return lastpushedid;
|
|
}
|
|
|
|
public void setLastpushedid(Object lastpushedid) {
|
|
this.lastpushedid = lastpushedid;
|
|
}
|
|
|
|
public Object getOrganization() {
|
|
return organization;
|
|
}
|
|
|
|
public void setOrganization(Object organization) {
|
|
this.organization = organization;
|
|
}
|
|
|
|
public Integer getRemote_org_id() {
|
|
return remote_org_id;
|
|
}
|
|
|
|
public void setRemote_org_id(Integer remote_org_id) {
|
|
this.remote_org_id = remote_org_id;
|
|
}
|
|
|
|
public Boolean getPublish_without_email() {
|
|
return publish_without_email;
|
|
}
|
|
|
|
public void setPublish_without_email(Boolean publish_without_email) {
|
|
this.publish_without_email = publish_without_email;
|
|
}
|
|
|
|
public Boolean getUnpublish_event() {
|
|
return unpublish_event;
|
|
}
|
|
|
|
public void setUnpublish_event(Boolean unpublish_event) {
|
|
this.unpublish_event = unpublish_event;
|
|
}
|
|
|
|
public Boolean getSelf_signed() {
|
|
return self_signed;
|
|
}
|
|
|
|
public void setSelf_signed(Boolean self_signed) {
|
|
this.self_signed = self_signed;
|
|
}
|
|
|
|
public String getPull_rules() {
|
|
return pull_rules;
|
|
}
|
|
|
|
public void setPull_rules(String pull_rules) {
|
|
this.pull_rules = pull_rules;
|
|
}
|
|
|
|
public String getPush_rules() {
|
|
return push_rules;
|
|
}
|
|
|
|
public void setPush_rules(String push_rules) {
|
|
this.push_rules = push_rules;
|
|
}
|
|
|
|
public Object getCert_file() {
|
|
return cert_file;
|
|
}
|
|
|
|
public void setCert_file(Object cert_file) {
|
|
this.cert_file = cert_file;
|
|
}
|
|
|
|
public Object getClient_cert_file() {
|
|
return client_cert_file;
|
|
}
|
|
|
|
public void setClient_cert_file(Object client_cert_file) {
|
|
this.client_cert_file = client_cert_file;
|
|
}
|
|
|
|
public Boolean getInternal() {
|
|
return internal;
|
|
}
|
|
|
|
public void setInternal(Boolean internal) {
|
|
this.internal = internal;
|
|
}
|
|
|
|
public Boolean getSkip_proxy() {
|
|
return skip_proxy;
|
|
}
|
|
|
|
public void setSkip_proxy(Boolean skip_proxy) {
|
|
this.skip_proxy = skip_proxy;
|
|
}
|
|
|
|
public Boolean getCaching_enabled() {
|
|
return caching_enabled;
|
|
}
|
|
|
|
public void setCaching_enabled(Boolean caching_enabled) {
|
|
this.caching_enabled = caching_enabled;
|
|
}
|
|
|
|
public Boolean getCache_timestamp() {
|
|
return cache_timestamp;
|
|
}
|
|
|
|
public void setCache_timestamp(Boolean cache_timestamp) {
|
|
this.cache_timestamp = cache_timestamp;
|
|
}
|
|
|
|
@NonNull
|
|
@Override
|
|
public String toString() {
|
|
return "Server{" +
|
|
"id=" + id +
|
|
", name='" + name + '\'' +
|
|
", url='" + url + '\'' +
|
|
", authkey='" + authkey + '\'' +
|
|
", org_id=" + org_id +
|
|
", push=" + push +
|
|
", pull=" + pull +
|
|
", lastpulledid=" + lastpulledid +
|
|
", lastpushedid=" + lastpushedid +
|
|
", organization=" + organization +
|
|
", remote_org_id=" + remote_org_id +
|
|
", publish_without_email=" + publish_without_email +
|
|
", unpublish_event=" + unpublish_event +
|
|
", self_signed=" + self_signed +
|
|
", pull_rules='" + pull_rules + '\'' +
|
|
", push_rules='" + push_rules + '\'' +
|
|
", cert_file=" + cert_file +
|
|
", client_cert_file=" + client_cert_file +
|
|
", internal=" + internal +
|
|
", skip_proxy=" + skip_proxy +
|
|
", caching_enabled=" + caching_enabled +
|
|
", cache_timestamp=" + cache_timestamp +
|
|
'}';
|
|
}
|
|
}
|