com.mparticle.sdk.model.audienceprocessing.UserAttributeAudienceEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
mParticle Java SDK used to integrate with mParticle's Firehose API
package com.mparticle.sdk.model.audienceprocessing;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public final class UserAttributeAudienceEvent {
@JsonProperty(value="key", required=true)
private String key;
@JsonProperty(value="value")
private String value;
@JsonProperty(value="action", required=true)
private AttributeAction action;
@JsonProperty(value="list_value")
private List listValue;
/**
*
* @return the key name of this attribute
*/
public String getKey() {
return this.key;
}
/**
*
* @param key the key name of this attribute
*/
public void setKey(String key) {
this.key = key;
}
/**
*
* @return the value of this attribute, can be null if a tag or if using list_value
*/
public String getValue() {
return this.value;
}
/**
*
* @param value the value of this attribute, can be null if a tag or if using list_value
*/
public void setValue(String value) {
this.value = value;
}
/**
*
* @return the value of this attribute if it is a list
*/
public List getListValue() {
return this.listValue;
}
/**
*
* @param listValue the value of this attribute if it is a list
*/
public void setListValue(List listValue) {
this.listValue = listValue;
}
/**
*
* @return action associated with this attribute
*/
public AttributeAction getAction() {
return this.action;
}
/**
*
* @param action action associated with this attribute
*/
public void setAction(AttributeAction action) {
this.action = action;
}
public enum AttributeAction {
UPSERT,
DELETE;
@Override
public String toString() {
return this.name().toLowerCase();
}
}
}