@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getExpiresInSec() == null) ? 0 : getExpiresInSec().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 (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getExpiresInSec() != null) sb.append("ExpiresInSec: ").append(getExpiresInSec()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PresignedUrlConfig == false) return false; PresignedUrlConfig other = (PresignedUrlConfig) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getExpiresInSec() == null ^ this.getExpiresInSec() == null) return false; if (other.getExpiresInSec() != null && other.getExpiresInSec().equals(this.getExpiresInSec()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(PresignedUrlConfig presignedUrlConfig, ProtocolMarshaller protocolMarshaller) { if (presignedUrlConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(presignedUrlConfig.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(presignedUrlConfig.getExpiresInSec(), EXPIRESINSEC_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 + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getExpiresInSec() == null) ? 0 : getExpiresInSec().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 (getRoleArn() != null) sb.append("roleArn: " + getRoleArn() + ","); if (getExpiresInSec() != null) sb.append("expiresInSec: " + getExpiresInSec()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PresignedUrlConfig == false) return false; PresignedUrlConfig other = (PresignedUrlConfig) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getExpiresInSec() == null ^ this.getExpiresInSec() == null) return false; if (other.getExpiresInSec() != null && other.getExpiresInSec().equals(this.getExpiresInSec()) == false) return false; return true; } }
public void marshall(PresignedUrlConfig presignedUrlConfig, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (presignedUrlConfig.getRoleArn() != null) { String roleArn = presignedUrlConfig.getRoleArn(); jsonWriter.name("roleArn"); jsonWriter.value(roleArn); } if (presignedUrlConfig.getExpiresInSec() != null) { Long expiresInSec = presignedUrlConfig.getExpiresInSec(); jsonWriter.name("expiresInSec"); jsonWriter.value(expiresInSec); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getExpiresInSec() == null) ? 0 : getExpiresInSec().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getExpiresInSec() == null) ? 0 : getExpiresInSec().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 (getRoleArn() != null) sb.append("roleArn: " + getRoleArn() + ","); if (getExpiresInSec() != null) sb.append("expiresInSec: " + getExpiresInSec()); sb.append("}"); return sb.toString(); }
/** * 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 (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getExpiresInSec() != null) sb.append("ExpiresInSec: ").append(getExpiresInSec()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PresignedUrlConfig == false) return false; PresignedUrlConfig other = (PresignedUrlConfig) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getExpiresInSec() == null ^ this.getExpiresInSec() == null) return false; if (other.getExpiresInSec() != null && other.getExpiresInSec().equals(this.getExpiresInSec()) == false) return false; return true; } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PresignedUrlConfig == false) return false; PresignedUrlConfig other = (PresignedUrlConfig) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getExpiresInSec() == null ^ this.getExpiresInSec() == null) return false; if (other.getExpiresInSec() != null && other.getExpiresInSec().equals(this.getExpiresInSec()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(PresignedUrlConfig presignedUrlConfig, ProtocolMarshaller protocolMarshaller) { if (presignedUrlConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(presignedUrlConfig.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(presignedUrlConfig.getExpiresInSec(), EXPIRESINSEC_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(PresignedUrlConfig presignedUrlConfig, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (presignedUrlConfig.getRoleArn() != null) { String roleArn = presignedUrlConfig.getRoleArn(); jsonWriter.name("roleArn"); jsonWriter.value(roleArn); } if (presignedUrlConfig.getExpiresInSec() != null) { Long expiresInSec = presignedUrlConfig.getExpiresInSec(); jsonWriter.name("expiresInSec"); jsonWriter.value(expiresInSec); } jsonWriter.endObject(); }