io.swagger.client.model.EnvironmentBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client-java Show documentation
Show all versions of api-client-java Show documentation
Official LaunchDarkly API Client for Java
The newest version!
/*
* LaunchDarkly REST API
* Build custom integrations with the LaunchDarkly REST API
*
* OpenAPI spec version: 2.0.0
* 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 io.swagger.client.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;
import java.math.BigDecimal;
/**
* EnvironmentBody
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-02T18:49:13.486-05:00")
public class EnvironmentBody {
@SerializedName("name")
private String name = null;
@SerializedName("key")
private String key = null;
@SerializedName("color")
private String color = null;
@SerializedName("defaultTtl")
private BigDecimal defaultTtl = null;
public EnvironmentBody name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public EnvironmentBody key(String key) {
this.key = key;
return this;
}
/**
* Get key
* @return key
**/
@ApiModelProperty(required = true, value = "")
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public EnvironmentBody color(String color) {
this.color = color;
return this;
}
/**
* A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8)
* @return color
**/
@ApiModelProperty(required = true, value = "A color swatch (as an RGB hex value with no leading '#', e.g. C8C8C8)")
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public EnvironmentBody defaultTtl(BigDecimal defaultTtl) {
this.defaultTtl = defaultTtl;
return this;
}
/**
* Get defaultTtl
* @return defaultTtl
**/
@ApiModelProperty(value = "")
public BigDecimal getDefaultTtl() {
return defaultTtl;
}
public void setDefaultTtl(BigDecimal defaultTtl) {
this.defaultTtl = defaultTtl;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EnvironmentBody environmentBody = (EnvironmentBody) o;
return Objects.equals(this.name, environmentBody.name) &&
Objects.equals(this.key, environmentBody.key) &&
Objects.equals(this.color, environmentBody.color) &&
Objects.equals(this.defaultTtl, environmentBody.defaultTtl);
}
@Override
public int hashCode() {
return Objects.hash(name, key, color, defaultTtl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnvironmentBody {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" color: ").append(toIndentedString(color)).append("\n");
sb.append(" defaultTtl: ").append(toIndentedString(defaultTtl)).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 ");
}
}