io.castle.client.model.CastleDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of castle-java Show documentation
Show all versions of castle-java Show documentation
Castle adds real-time monitoring of your authentication stack, instantly notifying you and your users
on potential account hijacks.
package io.castle.client.model;
public class CastleDevice {
private String id;
private String manufacturer;
private String model;
private String name;
private String type;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getManufacturer() {
return manufacturer;
}
public void setManufacturer(String manufacturer) {
this.manufacturer = manufacturer;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static Builder builder() {
return new Builder(new CastleDevice());
}
public static class Builder {
private CastleDevice device;
public Builder(CastleDevice device) {
this.device = device;
}
public Builder id(String id) {
device.setId(id);
return self();
}
public Builder manufacturer(String manufacturer) {
device.setManufacturer(manufacturer);
return self();
}
public Builder model(String model) {
device.setModel(model);
return self();
}
public Builder name(String name) {
device.setName(name);
return self();
}
public Builder type(String type) {
device.setType(type);
return self();
}
Builder self() {
return this;
}
}
@Override
public String toString() {
return "CastleDevice{" +
"id='" + id + '\'' +
", manufacturer='" + manufacturer + '\'' +
", model='" + model + '\'' +
", name='" + name + '\'' +
", type='" + type + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy