package com.amplifyframework.storage;

import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import java.util.Comparator;
import java.util.Date;
import java.util.Map;
import java.util.TreeMap;
import kotlin.Metadata;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.u0;
import kotlin.text.y;

@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010%\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b%\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u0000 42\u00020\u0001:\u00014Bq\b\u0007\u0012\u0014\b\u0002\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003\u0012\u0016\b\u0002\u0010\u0005\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u0006\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\b\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\f\u0012\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\b¢\u0006\u0002\u0010\u000eJ\u0015\u0010&\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003HÆ\u0003J\u0017\u0010'\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u0006HÆ\u0003J\u000b\u0010(\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010)\u001a\u0004\u0018\u00010\bHÆ\u0003J\u000b\u0010*\u001a\u0004\u0018\u00010\u0004HÆ\u0003J\u0010\u0010+\u001a\u0004\u0018\u00010\fHÆ\u0003¢\u0006\u0002\u0010\u001eJ\u000b\u0010,\u001a\u0004\u0018\u00010\bHÆ\u0003Jx\u0010-\u001a\u00020\u00002\u0014\b\u0002\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u00032\u0016\b\u0002\u0010\u0005\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\f2\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\bHÆ\u0001¢\u0006\u0002\u0010.J\u0013\u0010/\u001a\u00020\f2\b\u00100\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u00101\u001a\u000202HÖ\u0001J\t\u00103\u001a\u00020\u0004HÖ\u0001R\u001c\u0010\t\u001a\u0004\u0018\u00010\bX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012R\u001c\u0010\n\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016R\u001c\u0010\u0007\u001a\u0004\u0018\u00010\bX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0017\u0010\u0010\"\u0004\b\u0018\u0010\u0012R(\u0010\u0005\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u0006X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR\u001e\u0010\u000b\u001a\u0004\u0018\u00010\fX\u0086\u000e¢\u0006\u0010\n\u0002\u0010!\u001a\u0004\b\u001d\u0010\u001e\"\u0004\b\u001f\u0010 R\u001c\u0010\r\u001a\u0004\u0018\u00010\bX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\"\u0010\u0010\"\u0004\b#\u0010\u0012R&\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b$\u0010\u001a\"\u0004\b%\u0010\u001c¨\u00065"}, d2 = {"Lcom/amplifyframework/storage/ObjectMetadata;", "", "userMetadata", "", "", "metaData", "", "httpExpiresDate", "Ljava/util/Date;", "expirationTime", "expirationTimeRuleId", "ongoingRestore", "", "restoreExpirationTime", "(Ljava/util/Map;Ljava/util/Map;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Ljava/lang/Boolean;Ljava/util/Date;)V", "getExpirationTime", "()Ljava/util/Date;", "setExpirationTime", "(Ljava/util/Date;)V", "getExpirationTimeRuleId", "()Ljava/lang/String;", "setExpirationTimeRuleId", "(Ljava/lang/String;)V", "getHttpExpiresDate", "setHttpExpiresDate", "getMetaData", "()Ljava/util/Map;", "setMetaData", "(Ljava/util/Map;)V", "getOngoingRestore", "()Ljava/lang/Boolean;", "setOngoingRestore", "(Ljava/lang/Boolean;)V", "Ljava/lang/Boolean;", "getRestoreExpirationTime", "setRestoreExpirationTime", "getUserMetadata", "setUserMetadata", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "copy", "(Ljava/util/Map;Ljava/util/Map;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Ljava/lang/Boolean;Ljava/util/Date;)Lcom/amplifyframework/storage/ObjectMetadata;", "equals", "other", "hashCode", "", "toString", "Companion", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes4.dex */
public final /* data */ class ObjectMetadata {
    public static final String CACHE_CONTROL = "Cache-Control";
    public static final String CONTENT_DISPOSITION = "Content-Disposition";
    public static final String CONTENT_ENCODING = "Content-Encoding";
    public static final String CONTENT_MD5 = "Content-MD5";
    public static final String CONTENT_TYPE = "Content-Type";
    public static final String REDIRECT_LOCATION = "x-amz-website-redirect-location";
    public static final String REQUESTER_PAYS_HEADER = "x-amz-request-payer";
    public static final String S3_TAGGING = "x-amz-tagging";
    public static final String SERVER_SIDE_ENCRYPTION = "x-amz-server-side-encryption";
    public static final String SERVER_SIDE_ENCRYPTION_KMS_KEY_ID = "x-amz-server-side-encryption-aws-kms-key-id";
    public static final String STORAGE_CLASS = "x-amz-storage-class";
    private Date expirationTime;
    private String expirationTimeRuleId;
    private Date httpExpiresDate;
    private Map<String, Object> metaData;
    private Boolean ongoingRestore;
    private Date restoreExpirationTime;
    private Map<String, String> userMetadata;

    public ObjectMetadata() {
        this(null, null, null, null, null, null, null, ModuleDescriptor.MODULE_VERSION, null);
    }

    public static /* synthetic */ ObjectMetadata copy$default(ObjectMetadata objectMetadata, Map map, Map map2, Date date, Date date2, String str, Boolean bool, Date date3, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            map = objectMetadata.userMetadata;
        }
        if ((i10 & 2) != 0) {
            map2 = objectMetadata.metaData;
        }
        Map map3 = map2;
        if ((i10 & 4) != 0) {
            date = objectMetadata.httpExpiresDate;
        }
        Date date4 = date;
        if ((i10 & 8) != 0) {
            date2 = objectMetadata.expirationTime;
        }
        Date date5 = date2;
        if ((i10 & 16) != 0) {
            str = objectMetadata.expirationTimeRuleId;
        }
        String str2 = str;
        if ((i10 & 32) != 0) {
            bool = objectMetadata.ongoingRestore;
        }
        Boolean bool2 = bool;
        if ((i10 & 64) != 0) {
            date3 = objectMetadata.restoreExpirationTime;
        }
        return objectMetadata.copy(map, map3, date4, date5, str2, bool2, date3);
    }

    public final Map<String, String> component1() {
        return this.userMetadata;
    }

    public final Map<String, Object> component2() {
        return this.metaData;
    }

    /* renamed from: component3, reason: from getter */
    public final Date getHttpExpiresDate() {
        return this.httpExpiresDate;
    }

    /* renamed from: component4, reason: from getter */
    public final Date getExpirationTime() {
        return this.expirationTime;
    }

    /* renamed from: component5, reason: from getter */
    public final String getExpirationTimeRuleId() {
        return this.expirationTimeRuleId;
    }

    /* renamed from: component6, reason: from getter */
    public final Boolean getOngoingRestore() {
        return this.ongoingRestore;
    }

    /* renamed from: component7, reason: from getter */
    public final Date getRestoreExpirationTime() {
        return this.restoreExpirationTime;
    }

    public final ObjectMetadata copy(Map<String, String> userMetadata, Map<String, Object> metaData, Date httpExpiresDate, Date expirationTime, String expirationTimeRuleId, Boolean ongoingRestore, Date restoreExpirationTime) {
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
        return new ObjectMetadata(userMetadata, metaData, httpExpiresDate, expirationTime, expirationTimeRuleId, ongoingRestore, restoreExpirationTime);
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof ObjectMetadata)) {
            return false;
        }
        ObjectMetadata objectMetadata = (ObjectMetadata) other;
        return t.b(this.userMetadata, objectMetadata.userMetadata) && t.b(this.metaData, objectMetadata.metaData) && t.b(this.httpExpiresDate, objectMetadata.httpExpiresDate) && t.b(this.expirationTime, objectMetadata.expirationTime) && t.b(this.expirationTimeRuleId, objectMetadata.expirationTimeRuleId) && t.b(this.ongoingRestore, objectMetadata.ongoingRestore) && t.b(this.restoreExpirationTime, objectMetadata.restoreExpirationTime);
    }

    public final Date getExpirationTime() {
        return this.expirationTime;
    }

    public final String getExpirationTimeRuleId() {
        return this.expirationTimeRuleId;
    }

    public final Date getHttpExpiresDate() {
        return this.httpExpiresDate;
    }

    public final Map<String, Object> getMetaData() {
        return this.metaData;
    }

    public final Boolean getOngoingRestore() {
        return this.ongoingRestore;
    }

    public final Date getRestoreExpirationTime() {
        return this.restoreExpirationTime;
    }

    public final Map<String, String> getUserMetadata() {
        return this.userMetadata;
    }

    public int hashCode() {
        int hashCode = ((this.userMetadata.hashCode() * 31) + this.metaData.hashCode()) * 31;
        Date date = this.httpExpiresDate;
        int hashCode2 = (hashCode + (date == null ? 0 : date.hashCode())) * 31;
        Date date2 = this.expirationTime;
        int hashCode3 = (hashCode2 + (date2 == null ? 0 : date2.hashCode())) * 31;
        String str = this.expirationTimeRuleId;
        int hashCode4 = (hashCode3 + (str == null ? 0 : str.hashCode())) * 31;
        Boolean bool = this.ongoingRestore;
        int hashCode5 = (hashCode4 + (bool == null ? 0 : bool.hashCode())) * 31;
        Date date3 = this.restoreExpirationTime;
        return hashCode5 + (date3 != null ? date3.hashCode() : 0);
    }

    public final void setExpirationTime(Date date) {
        this.expirationTime = date;
    }

    public final void setExpirationTimeRuleId(String str) {
        this.expirationTimeRuleId = str;
    }

    public final void setHttpExpiresDate(Date date) {
        this.httpExpiresDate = date;
    }

    public final void setMetaData(Map<String, Object> map) {
        t.g(map, "<set-?>");
        this.metaData = map;
    }

    public final void setOngoingRestore(Boolean bool) {
        this.ongoingRestore = bool;
    }

    public final void setRestoreExpirationTime(Date date) {
        this.restoreExpirationTime = date;
    }

    public final void setUserMetadata(Map<String, String> map) {
        t.g(map, "<set-?>");
        this.userMetadata = map;
    }

    public String toString() {
        return "ObjectMetadata(userMetadata=" + this.userMetadata + ", metaData=" + this.metaData + ", httpExpiresDate=" + this.httpExpiresDate + ", expirationTime=" + this.expirationTime + ", expirationTimeRuleId=" + this.expirationTimeRuleId + ", ongoingRestore=" + this.ongoingRestore + ", restoreExpirationTime=" + this.restoreExpirationTime + ")";
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public ObjectMetadata(Map<String, String> userMetadata) {
        this(userMetadata, null, null, null, null, null, null, 126, null);
        t.g(userMetadata, "userMetadata");
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public ObjectMetadata(Map<String, String> userMetadata, Map<String, Object> metaData) {
        this(userMetadata, metaData, null, null, null, null, null, 124, null);
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public ObjectMetadata(Map<String, String> userMetadata, Map<String, Object> metaData, Date date) {
        this(userMetadata, metaData, date, null, null, null, null, 120, null);
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public ObjectMetadata(Map<String, String> userMetadata, Map<String, Object> metaData, Date date, Date date2) {
        this(userMetadata, metaData, date, date2, null, null, null, 112, null);
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public ObjectMetadata(Map<String, String> userMetadata, Map<String, Object> metaData, Date date, Date date2, String str) {
        this(userMetadata, metaData, date, date2, str, null, null, 96, null);
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public ObjectMetadata(Map<String, String> userMetadata, Map<String, Object> metaData, Date date, Date date2, String str, Boolean bool) {
        this(userMetadata, metaData, date, date2, str, bool, null, 64, null);
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
    }

    public ObjectMetadata(Map<String, String> userMetadata, Map<String, Object> metaData, Date date, Date date2, String str, Boolean bool, Date date3) {
        t.g(userMetadata, "userMetadata");
        t.g(metaData, "metaData");
        this.userMetadata = userMetadata;
        this.metaData = metaData;
        this.httpExpiresDate = date;
        this.expirationTime = date2;
        this.expirationTimeRuleId = str;
        this.ongoingRestore = bool;
        this.restoreExpirationTime = date3;
    }

    /* JADX WARN: Illegal instructions before constructor call */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public /* synthetic */ ObjectMetadata(Map map, Map map2, Date date, Date date2, String str, Boolean bool, Date date3, int i10, k kVar) {
        this(r0, r1, (i10 & 4) != 0 ? null : date, (i10 & 8) != 0 ? null : date2, (i10 & 16) != 0 ? null : str, (i10 & 32) != 0 ? Boolean.FALSE : bool, (i10 & 64) == 0 ? date3 : null);
        Map map3;
        Map map4;
        Comparator B;
        Comparator B2;
        if ((i10 & 1) != 0) {
            B2 = y.B(u0.f26205a);
            map3 = new TreeMap(B2);
        } else {
            map3 = map;
        }
        if ((i10 & 2) != 0) {
            B = y.B(u0.f26205a);
            map4 = new TreeMap(B);
        } else {
            map4 = map2;
        }
    }
}
