com.mypurecloud.sdk.model.PropertyIndexRequest 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.AnalyticsProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.io.Serializable;
/**
* PropertyIndexRequest
*/
public class PropertyIndexRequest implements Serializable {
private String sessionId = null;
private Date targetDate = null;
private List properties = new ArrayList();
/**
* Attach properties to a segment in the indicated session
**/
public PropertyIndexRequest sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "Attach properties to a segment in the indicated session")
@JsonProperty("sessionId")
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
/**
* Attach properties to a segment covering a specific point in time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public PropertyIndexRequest targetDate(Date targetDate) {
this.targetDate = targetDate;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "Attach properties to a segment covering a specific point in time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("targetDate")
public Date getTargetDate() {
return targetDate;
}
public void setTargetDate(Date targetDate) {
this.targetDate = targetDate;
}
/**
* The list of properties to index
**/
public PropertyIndexRequest properties(List properties) {
this.properties = properties;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The list of properties to index")
@JsonProperty("properties")
public List getProperties() {
return properties;
}
public void setProperties(List properties) {
this.properties = properties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PropertyIndexRequest propertyIndexRequest = (PropertyIndexRequest) o;
return Objects.equals(this.sessionId, propertyIndexRequest.sessionId) &&
Objects.equals(this.targetDate, propertyIndexRequest.targetDate) &&
Objects.equals(this.properties, propertyIndexRequest.properties);
}
@Override
public int hashCode() {
return Objects.hash(sessionId, targetDate, properties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PropertyIndexRequest {\n");
sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n");
sb.append(" targetDate: ").append(toIndentedString(targetDate)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).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 ");
}
}