com.openshift.cloud.api.kas.models.ServiceAccountRequest Maven / Gradle / Ivy
/*
* Kafka Management API
* Kafka Management API is a REST API to manage Kafka instances
*
* The version of the OpenAPI document: 1.14.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.openshift.cloud.api.kas.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Schema for the request to create a service account
*/
@ApiModel(description = "Schema for the request to create a service account")
@JsonPropertyOrder({
ServiceAccountRequest.JSON_PROPERTY_NAME,
ServiceAccountRequest.JSON_PROPERTY_DESCRIPTION
})
@JsonTypeName("ServiceAccountRequest")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ServiceAccountRequest {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public ServiceAccountRequest() {
}
public ServiceAccountRequest name(String name) {
this.name = name;
return this;
}
/**
* The name of the service account
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The name of the service account")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public ServiceAccountRequest description(String description) {
this.description = description;
return this;
}
/**
* A description for the service account
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A description for the service account")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ServiceAccountRequest serviceAccountRequest = (ServiceAccountRequest) o;
return Objects.equals(this.name, serviceAccountRequest.name) &&
Objects.equals(this.description, serviceAccountRequest.description);
}
@Override
public int hashCode() {
return Objects.hash(name, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServiceAccountRequest {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}