
com.tencent.ads.model.UserAction Maven / Gradle / Ivy
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* 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 com.tencent.ads.model;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** 行为上报数据 */
@ApiModel(description = "行为上报数据")
public class UserAction {
@SerializedName("action_time")
private Long actionTime = null;
@SerializedName("user_id")
private ActionsUserId userId = null;
@SerializedName("action_type")
private ActionType actionType = null;
@SerializedName("action_param")
private JsonObject actionParam = null;
@SerializedName("custom_action")
private String customAction = null;
@SerializedName("trace")
private Trace trace = null;
@SerializedName("url")
private String url = null;
@SerializedName("product_inform")
private ProductInform productInform = null;
@SerializedName("channel")
private ActionChannelType channel = null;
@SerializedName("external_action_id")
private String externalActionId = null;
public UserAction actionTime(Long actionTime) {
this.actionTime = actionTime;
return this;
}
/**
* Get actionTime
*
* @return actionTime
*/
@ApiModelProperty(value = "")
public Long getActionTime() {
return actionTime;
}
public void setActionTime(Long actionTime) {
this.actionTime = actionTime;
}
public UserAction userId(ActionsUserId userId) {
this.userId = userId;
return this;
}
/**
* Get userId
*
* @return userId
*/
@ApiModelProperty(value = "")
public ActionsUserId getUserId() {
return userId;
}
public void setUserId(ActionsUserId userId) {
this.userId = userId;
}
public UserAction actionType(ActionType actionType) {
this.actionType = actionType;
return this;
}
/**
* Get actionType
*
* @return actionType
*/
@ApiModelProperty(value = "")
public ActionType getActionType() {
return actionType;
}
public void setActionType(ActionType actionType) {
this.actionType = actionType;
}
public UserAction actionParam(JsonObject actionParam) {
this.actionParam = actionParam;
return this;
}
/**
* Get actionParam
*
* @return actionParam
*/
@ApiModelProperty(value = "")
public JsonObject getActionParam() {
return actionParam;
}
public void setActionParam(JsonObject actionParam) {
this.actionParam = actionParam;
}
public UserAction customAction(String customAction) {
this.customAction = customAction;
return this;
}
/**
* Get customAction
*
* @return customAction
*/
@ApiModelProperty(value = "")
public String getCustomAction() {
return customAction;
}
public void setCustomAction(String customAction) {
this.customAction = customAction;
}
public UserAction trace(Trace trace) {
this.trace = trace;
return this;
}
/**
* Get trace
*
* @return trace
*/
@ApiModelProperty(value = "")
public Trace getTrace() {
return trace;
}
public void setTrace(Trace trace) {
this.trace = trace;
}
public UserAction url(String url) {
this.url = url;
return this;
}
/**
* Get url
*
* @return url
*/
@ApiModelProperty(value = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public UserAction productInform(ProductInform productInform) {
this.productInform = productInform;
return this;
}
/**
* Get productInform
*
* @return productInform
*/
@ApiModelProperty(value = "")
public ProductInform getProductInform() {
return productInform;
}
public void setProductInform(ProductInform productInform) {
this.productInform = productInform;
}
public UserAction channel(ActionChannelType channel) {
this.channel = channel;
return this;
}
/**
* Get channel
*
* @return channel
*/
@ApiModelProperty(value = "")
public ActionChannelType getChannel() {
return channel;
}
public void setChannel(ActionChannelType channel) {
this.channel = channel;
}
public UserAction externalActionId(String externalActionId) {
this.externalActionId = externalActionId;
return this;
}
/**
* Get externalActionId
*
* @return externalActionId
*/
@ApiModelProperty(value = "")
public String getExternalActionId() {
return externalActionId;
}
public void setExternalActionId(String externalActionId) {
this.externalActionId = externalActionId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserAction userAction = (UserAction) o;
return Objects.equals(this.actionTime, userAction.actionTime)
&& Objects.equals(this.userId, userAction.userId)
&& Objects.equals(this.actionType, userAction.actionType)
&& Objects.equals(this.actionParam, userAction.actionParam)
&& Objects.equals(this.customAction, userAction.customAction)
&& Objects.equals(this.trace, userAction.trace)
&& Objects.equals(this.url, userAction.url)
&& Objects.equals(this.productInform, userAction.productInform)
&& Objects.equals(this.channel, userAction.channel)
&& Objects.equals(this.externalActionId, userAction.externalActionId);
}
@Override
public int hashCode() {
return Objects.hash(
actionTime,
userId,
actionType,
actionParam,
customAction,
trace,
url,
productInform,
channel,
externalActionId);
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
/**
* 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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy