com.mypurecloud.sdk.model.SystemPrompt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.SystemPromptAsset;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* SystemPrompt
*/
public class SystemPrompt implements Serializable {
private String id = null;
private String name = null;
private String description = null;
private List resources = new ArrayList();
private String selfUri = null;
@ApiModelProperty(example = "null", value = "The globally unique identifier for the object.")
@JsonProperty("id")
public String getId() {
return id;
}
/**
**/
public SystemPrompt name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public SystemPrompt description(String description) {
this.description = description;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
**/
public SystemPrompt resources(List resources) {
this.resources = resources;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("resources")
public List getResources() {
return resources;
}
public void setResources(List resources) {
this.resources = resources;
}
@ApiModelProperty(example = "null", value = "The URI for this object")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SystemPrompt systemPrompt = (SystemPrompt) o;
return Objects.equals(this.id, systemPrompt.id) &&
Objects.equals(this.name, systemPrompt.name) &&
Objects.equals(this.description, systemPrompt.description) &&
Objects.equals(this.resources, systemPrompt.resources) &&
Objects.equals(this.selfUri, systemPrompt.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, resources, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SystemPrompt {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).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 ");
}
}