org.projectodd.openwhisk.model.EntityBrief Maven / Gradle / Ivy
/*
* OpenWhisk REST API
* API for OpenWhisk
*
* OpenAPI spec version: 0.1.0
*
*
* 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 org.projectodd.openwhisk.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* EntityBrief
*/
public class EntityBrief {
@JsonProperty("namespace")
private String namespace = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("version")
private String version = null;
@JsonProperty("publish")
private Boolean publish = null;
public EntityBrief namespace(String namespace) {
this.namespace = namespace;
return this;
}
/**
* Namespace of the item
* @return namespace
**/
@ApiModelProperty(required = true, value = "Namespace of the item")
public String getNamespace() {
return namespace;
}
public void setNamespace(String namespace) {
this.namespace = namespace;
}
public EntityBrief name(String name) {
this.name = name;
return this;
}
/**
* Name of the item
* @return name
**/
@ApiModelProperty(required = true, value = "Name of the item")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public EntityBrief version(String version) {
this.version = version;
return this;
}
/**
* Semantic version of the item
* @return version
**/
@ApiModelProperty(required = true, value = "Semantic version of the item")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public EntityBrief publish(Boolean publish) {
this.publish = publish;
return this;
}
/**
* Whether to publish the item or not
* @return publish
**/
@ApiModelProperty(required = true, value = "Whether to publish the item or not")
public Boolean isPublish() {
return publish;
}
public void setPublish(Boolean publish) {
this.publish = publish;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityBrief entityBrief = (EntityBrief) o;
return Objects.equals(this.namespace, entityBrief.namespace) &&
Objects.equals(this.name, entityBrief.name) &&
Objects.equals(this.version, entityBrief.version) &&
Objects.equals(this.publish, entityBrief.publish);
}
@Override
public int hashCode() {
return Objects.hash(namespace, name, version, publish);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityBrief {\n");
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" publish: ").append(toIndentedString(publish)).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 ");
}
}