package com.amazonaws.services.cognitoidentity.model; import com.amazonaws.AmazonWebServiceRequest; import java.io.Serializable; import java.util.Map; /* loaded from: classes.dex */ public class GetCredentialsForIdentityRequest extends AmazonWebServiceRequest implements Serializable { public String customRoleArn; public String identityId; public Map logins; public String getCustomRoleArn() { return this.customRoleArn; } public String getIdentityId() { return this.identityId; } public Map getLogins() { return this.logins; } public GetCredentialsForIdentityRequest withCustomRoleArn(String str) { this.customRoleArn = str; return this; } public GetCredentialsForIdentityRequest withIdentityId(String str) { this.identityId = str; return this; } public GetCredentialsForIdentityRequest withLogins(Map map) { this.logins = map; return this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIdentityId() != null) { sb.append("IdentityId: " + getIdentityId() + ","); } if (getLogins() != null) { sb.append("Logins: " + getLogins() + ","); } if (getCustomRoleArn() != null) { sb.append("CustomRoleArn: " + getCustomRoleArn()); } sb.append("}"); return sb.toString(); } public int hashCode() { return (((((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getLogins() == null ? 0 : getLogins().hashCode())) * 31) + (getCustomRoleArn() != null ? getCustomRoleArn().hashCode() : 0); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || !(obj instanceof GetCredentialsForIdentityRequest)) { return false; } GetCredentialsForIdentityRequest getCredentialsForIdentityRequest = (GetCredentialsForIdentityRequest) obj; if ((getCredentialsForIdentityRequest.getIdentityId() == null) ^ (getIdentityId() == null)) { return false; } if (getCredentialsForIdentityRequest.getIdentityId() != null && !getCredentialsForIdentityRequest.getIdentityId().equals(getIdentityId())) { return false; } if ((getCredentialsForIdentityRequest.getLogins() == null) ^ (getLogins() == null)) { return false; } if (getCredentialsForIdentityRequest.getLogins() != null && !getCredentialsForIdentityRequest.getLogins().equals(getLogins())) { return false; } if ((getCredentialsForIdentityRequest.getCustomRoleArn() == null) ^ (getCustomRoleArn() == null)) { return false; } return getCredentialsForIdentityRequest.getCustomRoleArn() == null || getCredentialsForIdentityRequest.getCustomRoleArn().equals(getCustomRoleArn()); } }