com.tencent.ads.model.v3.UserAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marketing-api-java-sdk Show documentation
Show all versions of marketing-api-java-sdk Show documentation
Tencent Ads Mareting-Api Java Sdk
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 3.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 com.tencent.ads.model.v3;
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 UserIdDn userId = null;
@SerializedName("action_type")
private ActionType actionType = null;
@SerializedName("outer_action_id")
private String outerActionId = 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("ext_info")
private DeviceInfo extInfo = 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(UserIdDn userId) {
this.userId = userId;
return this;
}
/**
* Get userId
*
* @return userId
*/
@ApiModelProperty(value = "")
public UserIdDn getUserId() {
return userId;
}
public void setUserId(UserIdDn 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 outerActionId(String outerActionId) {
this.outerActionId = outerActionId;
return this;
}
/**
* Get outerActionId
*
* @return outerActionId
*/
@ApiModelProperty(value = "")
public String getOuterActionId() {
return outerActionId;
}
public void setOuterActionId(String outerActionId) {
this.outerActionId = outerActionId;
}
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 extInfo(DeviceInfo extInfo) {
this.extInfo = extInfo;
return this;
}
/**
* Get extInfo
*
* @return extInfo
*/
@ApiModelProperty(value = "")
public DeviceInfo getExtInfo() {
return extInfo;
}
public void setExtInfo(DeviceInfo extInfo) {
this.extInfo = extInfo;
}
@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.outerActionId, userAction.outerActionId)
&& 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.extInfo, userAction.extInfo);
}
@Override
public int hashCode() {
return Objects.hash(
actionTime,
userId,
actionType,
outerActionId,
actionParam,
customAction,
trace,
url,
productInform,
channel,
extInfo);
}
@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 ");
}
}