package com.amazonaws.services.cognitoidentity.model; import java.io.Serializable; import java.util.Date; /* loaded from: classes.dex */ public class Credentials implements Serializable { public String accessKeyId; public Date expiration; public String secretKey; public String sessionToken; public String getAccessKeyId() { return this.accessKeyId; } public Date getExpiration() { return this.expiration; } public String getSecretKey() { return this.secretKey; } public String getSessionToken() { return this.sessionToken; } public void setAccessKeyId(String str) { this.accessKeyId = str; } public void setExpiration(Date date) { this.expiration = date; } public void setSecretKey(String str) { this.secretKey = str; } public void setSessionToken(String str) { this.sessionToken = str; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccessKeyId() != null) { sb.append("AccessKeyId: " + getAccessKeyId() + ","); } if (getSecretKey() != null) { sb.append("SecretKey: " + getSecretKey() + ","); } if (getSessionToken() != null) { sb.append("SessionToken: " + getSessionToken() + ","); } if (getExpiration() != null) { sb.append("Expiration: " + getExpiration()); } sb.append("}"); return sb.toString(); } public int hashCode() { return (((((((getAccessKeyId() == null ? 0 : getAccessKeyId().hashCode()) + 31) * 31) + (getSecretKey() == null ? 0 : getSecretKey().hashCode())) * 31) + (getSessionToken() == null ? 0 : getSessionToken().hashCode())) * 31) + (getExpiration() != null ? getExpiration().hashCode() : 0); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof Credentials)) { return false; } Credentials credentials = (Credentials) obj; if ((credentials.getAccessKeyId() == null) ^ (getAccessKeyId() == null)) { return false; } if (credentials.getAccessKeyId() != null && !credentials.getAccessKeyId().equals(getAccessKeyId())) { return false; } if ((credentials.getSecretKey() == null) ^ (getSecretKey() == null)) { return false; } if (credentials.getSecretKey() != null && !credentials.getSecretKey().equals(getSecretKey())) { return false; } if ((credentials.getSessionToken() == null) ^ (getSessionToken() == null)) { return false; } if (credentials.getSessionToken() != null && !credentials.getSessionToken().equals(getSessionToken())) { return false; } if ((credentials.getExpiration() == null) ^ (getExpiration() == null)) { return false; } return credentials.getExpiration() == null || credentials.getExpiration().equals(getExpiration()); } }