mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-02 18:50:21 +01:00
115 lines
3.8 KiB
Java
115 lines
3.8 KiB
Java
package com.amazonaws.services.mobileanalytics.model;
|
|
|
|
import com.amazonaws.AmazonWebServiceRequest;
|
|
import java.io.Serializable;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import org.apache.commons.text.StringSubstitutor;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Deprecated
|
|
/* loaded from: classes6.dex */
|
|
public class PutEventsRequest extends AmazonWebServiceRequest implements Serializable {
|
|
private String clientContext;
|
|
private String clientContextEncoding;
|
|
private List<Event> events;
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || !(obj instanceof PutEventsRequest)) {
|
|
return false;
|
|
}
|
|
PutEventsRequest putEventsRequest = (PutEventsRequest) obj;
|
|
if ((putEventsRequest.getEvents() == null) ^ (getEvents() == null)) {
|
|
return false;
|
|
}
|
|
if (putEventsRequest.getEvents() != null && !putEventsRequest.getEvents().equals(getEvents())) {
|
|
return false;
|
|
}
|
|
if ((putEventsRequest.getClientContext() == null) ^ (getClientContext() == null)) {
|
|
return false;
|
|
}
|
|
if (putEventsRequest.getClientContext() != null && !putEventsRequest.getClientContext().equals(getClientContext())) {
|
|
return false;
|
|
}
|
|
if ((putEventsRequest.getClientContextEncoding() == null) ^ (getClientContextEncoding() == null)) {
|
|
return false;
|
|
}
|
|
return putEventsRequest.getClientContextEncoding() == null || putEventsRequest.getClientContextEncoding().equals(getClientContextEncoding());
|
|
}
|
|
|
|
public String getClientContext() {
|
|
return this.clientContext;
|
|
}
|
|
|
|
public String getClientContextEncoding() {
|
|
return this.clientContextEncoding;
|
|
}
|
|
|
|
public List<Event> getEvents() {
|
|
return this.events;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (((((getEvents() == null ? 0 : getEvents().hashCode()) + 31) * 31) + (getClientContext() == null ? 0 : getClientContext().hashCode())) * 31) + (getClientContextEncoding() != null ? getClientContextEncoding().hashCode() : 0);
|
|
}
|
|
|
|
public void setClientContext(String str) {
|
|
this.clientContext = str;
|
|
}
|
|
|
|
public void setClientContextEncoding(String str) {
|
|
this.clientContextEncoding = str;
|
|
}
|
|
|
|
public void setEvents(Collection<Event> collection) {
|
|
if (collection == null) {
|
|
this.events = null;
|
|
} else {
|
|
this.events = new ArrayList(collection);
|
|
}
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("{");
|
|
if (getEvents() != null) {
|
|
sb.append("events: " + getEvents() + ",");
|
|
}
|
|
if (getClientContext() != null) {
|
|
sb.append("clientContext: " + getClientContext() + ",");
|
|
}
|
|
if (getClientContextEncoding() != null) {
|
|
sb.append("clientContextEncoding: " + getClientContextEncoding());
|
|
}
|
|
sb.append(StringSubstitutor.DEFAULT_VAR_END);
|
|
return sb.toString();
|
|
}
|
|
|
|
public PutEventsRequest withClientContext(String str) {
|
|
this.clientContext = str;
|
|
return this;
|
|
}
|
|
|
|
public PutEventsRequest withClientContextEncoding(String str) {
|
|
this.clientContextEncoding = str;
|
|
return this;
|
|
}
|
|
|
|
public PutEventsRequest withEvents(Event... eventArr) {
|
|
if (getEvents() == null) {
|
|
this.events = new ArrayList(eventArr.length);
|
|
}
|
|
for (Event event : eventArr) {
|
|
this.events.add(event);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public PutEventsRequest withEvents(Collection<Event> collection) {
|
|
setEvents(collection);
|
|
return this;
|
|
}
|
|
}
|