@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode()); hashCode = prime * hashCode + ((getLogins() == null) ? 0 : getLogins().hashCode()); return hashCode; }
/** * Gets a reference to the identityId of the user (sending a new request if * it isn't yet set), using the dev accountId, identityPoolId, and the * user's loginsMap to identify. */ @Override public String getIdentityId() { if (identityId == null) { GetIdRequest getIdRequest = new GetIdRequest() .withAccountId(getAccountId()) .withIdentityPoolId(getIdentityPoolId()) .withLogins(loginsMap); appendUserAgent(getIdRequest, getUserAgent()); GetIdResult getIdResult = cib.getId(getIdRequest); if (getIdResult.getIdentityId() != null) { identityChanged(getIdResult.getIdentityId()); } } return identityId; }
/** * Gets a reference to the identityId of the user (sending a new request if * it isn't yet set), using the dev accountId, identityPoolId, and the * user's loginsMap to identify. */ @Override public String getIdentityId() { if (identityId == null) { GetIdRequest getIdRequest = new GetIdRequest() .withAccountId(getAccountId()) .withIdentityPoolId(getIdentityPoolId()) .withLogins(loginsMap); appendUserAgent(getIdRequest, getUserAgent()); GetIdResult getIdResult = cib.getId(getIdRequest); if (getIdResult.getIdentityId() != null) { identityChanged(getIdResult.getIdentityId()); } } return identityId; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetIdRequest == false) return false; GetIdRequest other = (GetIdRequest) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == null) return false; if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == false) return false; if (other.getLogins() == null ^ this.getLogins() == null) return false; if (other.getLogins() != null && other.getLogins().equals(this.getLogins()) == false) return false; return true; }
/** * Gets a reference to the identityId of the user (sending a new request if * it isn't yet set), using the dev accountId, identityPoolId, and the * user's loginsMap to identify. */ @Override public String getIdentityId() { if (identityId == null) { GetIdRequest getIdRequest = new GetIdRequest() .withAccountId(getAccountId()) .withIdentityPoolId(getIdentityPoolId()) .withLogins(loginsMap); appendUserAgent(getIdRequest, getUserAgent()); GetIdResult getIdResult = cib.getId(getIdRequest); if (getIdResult.getIdentityId() != null) { identityChanged(getIdResult.getIdentityId()); } } return identityId; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getIdentityPoolId() != null) sb.append("IdentityPoolId: ").append(getIdentityPoolId()).append(","); if (getLogins() != null) sb.append("Logins: ").append(getLogins()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(GetIdRequest getIdRequest, ProtocolMarshaller protocolMarshaller) { if (getIdRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getIdRequest.getAccountId(), ACCOUNTID_BINDING); protocolMarshaller.marshall(getIdRequest.getIdentityPoolId(), IDENTITYPOOLID_BINDING); protocolMarshaller.marshall(getIdRequest.getLogins(), LOGINS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode()); hashCode = prime * hashCode + ((getLogins() == null) ? 0 : getLogins().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetIdRequest == false) return false; GetIdRequest other = (GetIdRequest) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == null) return false; if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == false) return false; if (other.getLogins() == null ^ this.getLogins() == null) return false; if (other.getLogins() != null && other.getLogins().equals(this.getLogins()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountId() != null) sb.append("AccountId: " + getAccountId() + ","); if (getIdentityPoolId() != null) sb.append("IdentityPoolId: " + getIdentityPoolId() + ","); if (getLogins() != null) sb.append("Logins: " + getLogins()); sb.append("}"); return sb.toString(); }
jsonWriter.beginObject(); if (getIdRequest.getAccountId() != null) { String accountId = getIdRequest.getAccountId(); jsonWriter.name("AccountId"); jsonWriter.value(accountId); if (getIdRequest.getIdentityPoolId() != null) { String identityPoolId = getIdRequest.getIdentityPoolId(); jsonWriter.name("IdentityPoolId"); jsonWriter.value(identityPoolId); if (getIdRequest.getLogins() != null) { java.util.Map<String, String> logins = getIdRequest.getLogins(); jsonWriter.name("Logins"); jsonWriter.beginObject();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode()); hashCode = prime * hashCode + ((getLogins() == null) ? 0 : getLogins().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode()); hashCode = prime * hashCode + ((getLogins() == null) ? 0 : getLogins().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetIdRequest == false) return false; GetIdRequest other = (GetIdRequest) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == null) return false; if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == false) return false; if (other.getLogins() == null ^ this.getLogins() == null) return false; if (other.getLogins() != null && other.getLogins().equals(this.getLogins()) == false) return false; return true; } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetIdRequest == false) return false; GetIdRequest other = (GetIdRequest) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == null) return false; if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == false) return false; if (other.getLogins() == null ^ this.getLogins() == null) return false; if (other.getLogins() != null && other.getLogins().equals(this.getLogins()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountId() != null) sb.append("AccountId: " + getAccountId() + ","); if (getIdentityPoolId() != null) sb.append("IdentityPoolId: " + getIdentityPoolId() + ","); if (getLogins() != null) sb.append("Logins: " + getLogins()); sb.append("}"); return sb.toString(); }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAccountId() != null) sb.append("AccountId: " + getAccountId() + ","); if (getIdentityPoolId() != null) sb.append("IdentityPoolId: " + getIdentityPoolId() + ","); if (getLogins() != null) sb.append("Logins: " + getLogins()); sb.append("}"); return sb.toString(); }
jsonWriter.beginObject(); if (getIdRequest.getAccountId() != null) { String accountId = getIdRequest.getAccountId(); jsonWriter.name("AccountId"); jsonWriter.value(accountId); if (getIdRequest.getIdentityPoolId() != null) { String identityPoolId = getIdRequest.getIdentityPoolId(); jsonWriter.name("IdentityPoolId"); jsonWriter.value(identityPoolId); if (getIdRequest.getLogins() != null) { java.util.Map<String, String> logins = getIdRequest.getLogins(); jsonWriter.name("Logins"); jsonWriter.beginObject();
jsonWriter.beginObject(); if (getIdRequest.getAccountId() != null) { String accountId = getIdRequest.getAccountId(); jsonWriter.name("AccountId"); jsonWriter.value(accountId); if (getIdRequest.getIdentityPoolId() != null) { String identityPoolId = getIdRequest.getIdentityPoolId(); jsonWriter.name("IdentityPoolId"); jsonWriter.value(identityPoolId); if (getIdRequest.getLogins() != null) { java.util.Map<String, String> logins = getIdRequest.getLogins(); jsonWriter.name("Logins"); jsonWriter.beginObject();