com.tinypass.client.publisher.model.LinkedTermEventRequest Maven / Gradle / Ivy
package com.tinypass.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.publisher.model.LinkedTermConversionParams;
import com.tinypass.client.publisher.model.LinkedTermSharedAccessParams;
import com.tinypass.client.publisher.model.LinkedTermSubscriptionParams;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class LinkedTermEventRequest {
/* The action the end user or the external system takes on the external subscription: create_subscription, update_subscription, delete_subscription, create_shared_access, delete_shared_access. */
private String action = null;
/* The ID of the session associated with this event. Passed in the \"linkedTermSelected\" JS callback (at Step 4 of the Main scenario). */
private String sessionId = null;
/* The new external subscription. */
private LinkedTermSubscriptionParams subscription = null;
/* The conversion data in the external system to synchronize with. */
private LinkedTermConversionParams conversion = null;
/* The (un)shared access data. */
private LinkedTermSharedAccessParams sharedAccess = null;
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public LinkedTermSubscriptionParams getSubscription() {
return subscription;
}
public void setSubscription(LinkedTermSubscriptionParams subscription) {
this.subscription = subscription;
}
public LinkedTermConversionParams getConversion() {
return conversion;
}
public void setConversion(LinkedTermConversionParams conversion) {
this.conversion = conversion;
}
public LinkedTermSharedAccessParams getSharedAccess() {
return sharedAccess;
}
public void setSharedAccess(LinkedTermSharedAccessParams sharedAccess) {
this.sharedAccess = sharedAccess;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LinkedTermEventRequest {\n");
sb.append(" action: ").append(action).append("\n");
sb.append(" sessionId: ").append(sessionId).append("\n");
sb.append(" subscription: ").append(subscription).append("\n");
sb.append(" conversion: ").append(conversion).append("\n");
sb.append(" sharedAccess: ").append(sharedAccess).append("\n");
sb.append("}\n");
return sb.toString();
}
}