/** * 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 (getRoleAlias() != null) sb.append("RoleAlias: ").append(getRoleAlias()).append(","); if (getRoleAliasArn() != null) sb.append("RoleAliasArn: ").append(getRoleAliasArn()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getCredentialDurationSeconds() != null) sb.append("CredentialDurationSeconds: ").append(getCredentialDurationSeconds()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleAlias() == null) ? 0 : getRoleAlias().hashCode()); hashCode = prime * hashCode + ((getRoleAliasArn() == null) ? 0 : getRoleAliasArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getCredentialDurationSeconds() == null) ? 0 : getCredentialDurationSeconds().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); return hashCode; }
if (other.getRoleAliasArn() != null && other.getRoleAliasArn().equals(this.getRoleAliasArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null)
/** * Marshall the given parameter object. */ public void marshall(RoleAliasDescription roleAliasDescription, ProtocolMarshaller protocolMarshaller) { if (roleAliasDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(roleAliasDescription.getRoleAlias(), ROLEALIAS_BINDING); protocolMarshaller.marshall(roleAliasDescription.getRoleAliasArn(), ROLEALIASARN_BINDING); protocolMarshaller.marshall(roleAliasDescription.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(roleAliasDescription.getOwner(), OWNER_BINDING); protocolMarshaller.marshall(roleAliasDescription.getCredentialDurationSeconds(), CREDENTIALDURATIONSECONDS_BINDING); protocolMarshaller.marshall(roleAliasDescription.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(roleAliasDescription.getLastModifiedDate(), LASTMODIFIEDDATE_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 + ((getRoleAlias() == null) ? 0 : getRoleAlias().hashCode()); hashCode = prime * hashCode + ((getRoleAliasArn() == null) ? 0 : getRoleAliasArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getCredentialDurationSeconds() == null) ? 0 : getCredentialDurationSeconds() .hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().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 (getRoleAlias() != null) sb.append("roleAlias: " + getRoleAlias() + ","); if (getRoleAliasArn() != null) sb.append("roleAliasArn: " + getRoleAliasArn() + ","); if (getRoleArn() != null) sb.append("roleArn: " + getRoleArn() + ","); if (getOwner() != null) sb.append("owner: " + getOwner() + ","); if (getCredentialDurationSeconds() != null) sb.append("credentialDurationSeconds: " + getCredentialDurationSeconds() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate()); sb.append("}"); return sb.toString(); }
&& other.getRoleAliasArn().equals(this.getRoleAliasArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null)
jsonWriter.value(roleAliasArn); if (roleAliasDescription.getRoleArn() != null) { String roleArn = roleAliasDescription.getRoleArn(); jsonWriter.name("roleArn"); jsonWriter.value(roleArn);
/** * 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 (getRoleAlias() != null) sb.append("RoleAlias: ").append(getRoleAlias()).append(","); if (getRoleAliasArn() != null) sb.append("RoleAliasArn: ").append(getRoleAliasArn()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getCredentialDurationSeconds() != null) sb.append("CredentialDurationSeconds: ").append(getCredentialDurationSeconds()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleAlias() == null) ? 0 : getRoleAlias().hashCode()); hashCode = prime * hashCode + ((getRoleAliasArn() == null) ? 0 : getRoleAliasArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getCredentialDurationSeconds() == null) ? 0 : getCredentialDurationSeconds().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleAlias() == null) ? 0 : getRoleAlias().hashCode()); hashCode = prime * hashCode + ((getRoleAliasArn() == null) ? 0 : getRoleAliasArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getCredentialDurationSeconds() == null) ? 0 : getCredentialDurationSeconds() .hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().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 (getRoleAlias() != null) sb.append("roleAlias: " + getRoleAlias() + ","); if (getRoleAliasArn() != null) sb.append("roleAliasArn: " + getRoleAliasArn() + ","); if (getRoleArn() != null) sb.append("roleArn: " + getRoleArn() + ","); if (getOwner() != null) sb.append("owner: " + getOwner() + ","); if (getCredentialDurationSeconds() != null) sb.append("credentialDurationSeconds: " + getCredentialDurationSeconds() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate()); sb.append("}"); return sb.toString(); }
if (other.getRoleAliasArn() != null && other.getRoleAliasArn().equals(this.getRoleAliasArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null)
&& other.getRoleAliasArn().equals(this.getRoleAliasArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null)
/** * Marshall the given parameter object. */ public void marshall(RoleAliasDescription roleAliasDescription, ProtocolMarshaller protocolMarshaller) { if (roleAliasDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(roleAliasDescription.getRoleAlias(), ROLEALIAS_BINDING); protocolMarshaller.marshall(roleAliasDescription.getRoleAliasArn(), ROLEALIASARN_BINDING); protocolMarshaller.marshall(roleAliasDescription.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(roleAliasDescription.getOwner(), OWNER_BINDING); protocolMarshaller.marshall(roleAliasDescription.getCredentialDurationSeconds(), CREDENTIALDURATIONSECONDS_BINDING); protocolMarshaller.marshall(roleAliasDescription.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(roleAliasDescription.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
jsonWriter.value(roleAliasArn); if (roleAliasDescription.getRoleArn() != null) { String roleArn = roleAliasDescription.getRoleArn(); jsonWriter.name("roleArn"); jsonWriter.value(roleArn);