net.leanix.api.models.FieldLayout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-sdk-java Show documentation
Show all versions of leanix-sdk-java Show documentation
SDK for Java to access leanIX REST API
/*
* LeanIX Pathfinder REST API
* Core application for storage and analysis of IT landscape data
*
* OpenAPI spec version: 4.0.161-SNAPSHOT
*
*
* 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 net.leanix.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* FieldLayout
*/
public class FieldLayout {
@JsonProperty("name")
private String name = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("size")
private Integer size = null;
@JsonProperty("readonly")
private Boolean readonly = false;
@JsonProperty("profile")
private String profile = null;
@JsonProperty("weight")
private Double weight = null;
public FieldLayout name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(example = "null", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public FieldLayout type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(example = "null", value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public FieldLayout size(Integer size) {
this.size = size;
return this;
}
/**
* Get size
* @return size
**/
@ApiModelProperty(example = "null", value = "")
public Integer getSize() {
return size;
}
public void setSize(Integer size) {
this.size = size;
}
public FieldLayout readonly(Boolean readonly) {
this.readonly = readonly;
return this;
}
/**
* Get readonly
* @return readonly
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getReadonly() {
return readonly;
}
public void setReadonly(Boolean readonly) {
this.readonly = readonly;
}
public FieldLayout profile(String profile) {
this.profile = profile;
return this;
}
/**
* Get profile
* @return profile
**/
@ApiModelProperty(example = "null", value = "")
public String getProfile() {
return profile;
}
public void setProfile(String profile) {
this.profile = profile;
}
public FieldLayout weight(Double weight) {
this.weight = weight;
return this;
}
/**
* Get weight
* @return weight
**/
@ApiModelProperty(example = "null", value = "")
public Double getWeight() {
return weight;
}
public void setWeight(Double weight) {
this.weight = weight;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FieldLayout fieldLayout = (FieldLayout) o;
return Objects.equals(this.name, fieldLayout.name) &&
Objects.equals(this.type, fieldLayout.type) &&
Objects.equals(this.size, fieldLayout.size) &&
Objects.equals(this.readonly, fieldLayout.readonly) &&
Objects.equals(this.profile, fieldLayout.profile) &&
Objects.equals(this.weight, fieldLayout.weight);
}
@Override
public int hashCode() {
return Objects.hash(name, type, size, readonly, profile, weight);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FieldLayout {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" readonly: ").append(toIndentedString(readonly)).append("\n");
sb.append(" profile: ").append(toIndentedString(profile)).append("\n");
sb.append(" weight: ").append(toIndentedString(weight)).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