de.id4i.api.model.ApiKeyCreationRequest Maven / Gradle / Ivy
/*
* ID4i API
* ID4i HTTP API
*
* OpenAPI spec version: 0.9.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.id4i.api.model;
import java.util.Objects;
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;
/**
* ApiKeyCreationRequest
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-11-21T14:03:07.356Z")
public class ApiKeyCreationRequest {
@SerializedName("label")
private String label = null;
@SerializedName("organizationId")
private String organizationId = null;
@SerializedName("secret")
private String secret = null;
public ApiKeyCreationRequest label(String label) {
this.label = label;
return this;
}
/**
* Get label
* @return label
**/
@ApiModelProperty(required = true, value = "")
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public ApiKeyCreationRequest organizationId(String organizationId) {
this.organizationId = organizationId;
return this;
}
/**
* Get organizationId
* @return organizationId
**/
@ApiModelProperty(example = "de.acme", required = true, value = "")
public String getOrganizationId() {
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public ApiKeyCreationRequest secret(String secret) {
this.secret = secret;
return this;
}
/**
* Get secret
* @return secret
**/
@ApiModelProperty(required = true, value = "")
public String getSecret() {
return secret;
}
public void setSecret(String secret) {
this.secret = secret;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApiKeyCreationRequest apiKeyCreationRequest = (ApiKeyCreationRequest) o;
return Objects.equals(this.label, apiKeyCreationRequest.label) &&
Objects.equals(this.organizationId, apiKeyCreationRequest.organizationId) &&
Objects.equals(this.secret, apiKeyCreationRequest.secret);
}
@Override
public int hashCode() {
return Objects.hash(label, organizationId, secret);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApiKeyCreationRequest {\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
sb.append(" secret: ").append(toIndentedString(secret)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy