sh.ory.hydra.model.PluginConfigLinux Maven / Gradle / Ivy
/*
* ORY Hydra
* Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
*
* The version of the OpenAPI document: v1.9.0-alpha.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package sh.ory.hydra.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import sh.ory.hydra.model.PluginDevice;
/**
* PluginConfigLinux plugin config linux
*/
@ApiModel(description = "PluginConfigLinux plugin config linux")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-29T17:18:58.591596Z[GMT]")
public class PluginConfigLinux {
public static final String SERIALIZED_NAME_ALLOW_ALL_DEVICES = "AllowAllDevices";
@SerializedName(SERIALIZED_NAME_ALLOW_ALL_DEVICES)
private Boolean allowAllDevices;
public static final String SERIALIZED_NAME_CAPABILITIES = "Capabilities";
@SerializedName(SERIALIZED_NAME_CAPABILITIES)
private List capabilities = new ArrayList();
public static final String SERIALIZED_NAME_DEVICES = "Devices";
@SerializedName(SERIALIZED_NAME_DEVICES)
private List devices = new ArrayList();
public PluginConfigLinux allowAllDevices(Boolean allowAllDevices) {
this.allowAllDevices = allowAllDevices;
return this;
}
/**
* allow all devices
* @return allowAllDevices
**/
@ApiModelProperty(required = true, value = "allow all devices")
public Boolean getAllowAllDevices() {
return allowAllDevices;
}
public void setAllowAllDevices(Boolean allowAllDevices) {
this.allowAllDevices = allowAllDevices;
}
public PluginConfigLinux capabilities(List capabilities) {
this.capabilities = capabilities;
return this;
}
public PluginConfigLinux addCapabilitiesItem(String capabilitiesItem) {
this.capabilities.add(capabilitiesItem);
return this;
}
/**
* capabilities
* @return capabilities
**/
@ApiModelProperty(required = true, value = "capabilities")
public List getCapabilities() {
return capabilities;
}
public void setCapabilities(List capabilities) {
this.capabilities = capabilities;
}
public PluginConfigLinux devices(List devices) {
this.devices = devices;
return this;
}
public PluginConfigLinux addDevicesItem(PluginDevice devicesItem) {
this.devices.add(devicesItem);
return this;
}
/**
* devices
* @return devices
**/
@ApiModelProperty(required = true, value = "devices")
public List getDevices() {
return devices;
}
public void setDevices(List devices) {
this.devices = devices;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PluginConfigLinux pluginConfigLinux = (PluginConfigLinux) o;
return Objects.equals(this.allowAllDevices, pluginConfigLinux.allowAllDevices) &&
Objects.equals(this.capabilities, pluginConfigLinux.capabilities) &&
Objects.equals(this.devices, pluginConfigLinux.devices);
}
@Override
public int hashCode() {
return Objects.hash(allowAllDevices, capabilities, devices);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PluginConfigLinux {\n");
sb.append(" allowAllDevices: ").append(toIndentedString(allowAllDevices)).append("\n");
sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" devices: ").append(toIndentedString(devices)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}