@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClaim() == null) ? 0 : getClaim().hashCode()); hashCode = prime * hashCode + ((getMatchType() == null) ? 0 : getMatchType().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); return hashCode; }
/** * 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 (getClaim() != null) sb.append("Claim: ").append(getClaim()).append(","); if (getMatchType() != null) sb.append("MatchType: ").append(getMatchType()).append(","); if (getValue() != null) sb.append("Value: ").append(getValue()).append(","); if (getRoleARN() != null) sb.append("RoleARN: ").append(getRoleARN()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MappingRule == false) return false; MappingRule other = (MappingRule) obj; if (other.getClaim() == null ^ this.getClaim() == null) return false; if (other.getClaim() != null && other.getClaim().equals(this.getClaim()) == false) return false; if (other.getMatchType() == null ^ this.getMatchType() == null) return false; if (other.getMatchType() != null && other.getMatchType().equals(this.getMatchType()) == false) return false; if (other.getValue() == null ^ this.getValue() == null) return false; if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) return false; if (other.getRoleARN() == null ^ this.getRoleARN() == null) return false; if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(MappingRule mappingRule, ProtocolMarshaller protocolMarshaller) { if (mappingRule == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(mappingRule.getClaim(), CLAIM_BINDING); protocolMarshaller.marshall(mappingRule.getMatchType(), MATCHTYPE_BINDING); protocolMarshaller.marshall(mappingRule.getValue(), VALUE_BINDING); protocolMarshaller.marshall(mappingRule.getRoleARN(), ROLEARN_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 + ((getClaim() == null) ? 0 : getClaim().hashCode()); hashCode = prime * hashCode + ((getMatchType() == null) ? 0 : getMatchType().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); return hashCode; }
/** * 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 (getClaim() != null) sb.append("Claim: " + getClaim() + ","); if (getMatchType() != null) sb.append("MatchType: " + getMatchType() + ","); if (getValue() != null) sb.append("Value: " + getValue() + ","); if (getRoleARN() != null) sb.append("RoleARN: " + getRoleARN()); sb.append("}"); return sb.toString(); }
if (other.getClaim() != null && other.getClaim().equals(this.getClaim()) == false) return false; if (other.getMatchType() == null ^ this.getMatchType() == null) return false; if (other.getMatchType() != null && other.getMatchType().equals(this.getMatchType()) == false) return false; if (other.getValue() == null ^ this.getValue() == null)
public void marshall(MappingRule mappingRule, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (mappingRule.getClaim() != null) { String claim = mappingRule.getClaim(); jsonWriter.name("Claim"); jsonWriter.value(claim); } if (mappingRule.getMatchType() != null) { String matchType = mappingRule.getMatchType(); jsonWriter.name("MatchType"); jsonWriter.value(matchType); } if (mappingRule.getValue() != null) { String value = mappingRule.getValue(); jsonWriter.name("Value"); jsonWriter.value(value); } if (mappingRule.getRoleARN() != null) { String roleARN = mappingRule.getRoleARN(); jsonWriter.name("RoleARN"); jsonWriter.value(roleARN); } jsonWriter.endObject(); }