@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getServerCertificateName() == null) ? 0 : getServerCertificateName().hashCode()); hashCode = prime * hashCode + ((getServerCertificateId() == null) ? 0 : getServerCertificateId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); hashCode = prime * hashCode + ((getExpiration() == null) ? 0 : getExpiration().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServerCertificateMetadata() == null) ? 0 : getServerCertificateMetadata().hashCode()); return hashCode; }
/** * Constructs a new ServerCertificateMetadata object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param path * The path to the server certificate. For more information about paths, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param serverCertificateName * The name that identifies the server certificate. * @param serverCertificateId * The stable and unique string identifying the server certificate. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how * to use them in policies, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. */ public ServerCertificateMetadata(String path, String serverCertificateName, String serverCertificateId, String arn) { setPath(path); setServerCertificateName(serverCertificateName); setServerCertificateId(serverCertificateId); setArn(arn); }
public ServerCertificateMetadata unmarshall(StaxUnmarshallerContext context) throws Exception { ServerCertificateMetadata serverCertificateMetadata = new ServerCertificateMetadata(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; serverCertificateMetadata.setPath(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setServerCertificateName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setServerCertificateId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setUploadDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; serverCertificateMetadata.setExpiration(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UploadServerCertificateResult == false) return false; UploadServerCertificateResult other = (UploadServerCertificateResult) obj; if (other.getServerCertificateMetadata() == null ^ this.getServerCertificateMetadata() == null) return false; if (other.getServerCertificateMetadata() != null && other.getServerCertificateMetadata().equals(this.getServerCertificateMetadata()) == false) return false; return true; }
/** * <p> * The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how to use * them in policies, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM * Identifiers</a> in the <i>Using IAM</i> guide. * </p> * * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how * to use them in policies, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerCertificateMetadata withArn(String arn) { setArn(arn); return this; }
public ServerCertificateMetadata unmarshall(StaxUnmarshallerContext context) throws Exception { ServerCertificateMetadata serverCertificateMetadata = new ServerCertificateMetadata(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; serverCertificateMetadata.setPath(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setServerCertificateName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setServerCertificateId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; serverCertificateMetadata.setUploadDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; serverCertificateMetadata.setExpiration(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServerCertificate == false) return false; ServerCertificate other = (ServerCertificate) obj; if (other.getServerCertificateMetadata() == null ^ this.getServerCertificateMetadata() == null) return false; if (other.getServerCertificateMetadata() != null && other.getServerCertificateMetadata().equals(this.getServerCertificateMetadata()) == false) return false; if (other.getCertificateBody() == null ^ this.getCertificateBody() == null) return false; if (other.getCertificateBody() != null && other.getCertificateBody().equals(this.getCertificateBody()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; return true; }
/** * <p> * The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how to use * them in policies, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM * Identifiers</a> in the <i>Using IAM</i> guide. * </p> * * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how * to use them in policies, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerCertificateMetadata withArn(String arn) { setArn(arn); return this; }
return false; ServerCertificateMetadata other = (ServerCertificateMetadata) obj; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getServerCertificateName() == null ^ this.getServerCertificateName() == null) return false; if (other.getServerCertificateName() != null && other.getServerCertificateName().equals(this.getServerCertificateName()) == false) return false; if (other.getServerCertificateId() == null ^ this.getServerCertificateId() == null) return false; if (other.getServerCertificateId() != null && other.getServerCertificateId().equals(this.getServerCertificateId()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == false) return false; if (other.getExpiration() == null ^ this.getExpiration() == null) return false; if (other.getExpiration() != null && other.getExpiration().equals(this.getExpiration()) == false) return false; return true;
/** * Constructs a new ServerCertificateMetadata object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param path * The path to the server certificate. For more information about paths, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param serverCertificateName * The name that identifies the server certificate. * @param serverCertificateId * The stable and unique string identifying the server certificate. For more information about IDs, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. * @param arn * The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how * to use them in policies, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM Identifiers</a> in the * <i>Using IAM</i> guide. */ public ServerCertificateMetadata(String path, String serverCertificateName, String serverCertificateId, String arn) { setPath(path); setServerCertificateName(serverCertificateName); setServerCertificateId(serverCertificateId); setArn(arn); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServerCertificateMetadata() == null) ? 0 : getServerCertificateMetadata().hashCode()); hashCode = prime * hashCode + ((getCertificateBody() == null) ? 0 : getCertificateBody().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UploadServerCertificateResult == false) return false; UploadServerCertificateResult other = (UploadServerCertificateResult) obj; if (other.getServerCertificateMetadata() == null ^ this.getServerCertificateMetadata() == null) return false; if (other.getServerCertificateMetadata() != null && other.getServerCertificateMetadata().equals(this.getServerCertificateMetadata()) == false) return false; return true; }
/** * 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 (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getServerCertificateName() != null) sb.append("ServerCertificateName: ").append(getServerCertificateName()).append(","); if (getServerCertificateId() != null) sb.append("ServerCertificateId: ").append(getServerCertificateId()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()).append(","); if (getExpiration() != null) sb.append("Expiration: ").append(getExpiration()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServerCertificateMetadata() == null) ? 0 : getServerCertificateMetadata().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServerCertificate == false) return false; ServerCertificate other = (ServerCertificate) obj; if (other.getServerCertificateMetadata() == null ^ this.getServerCertificateMetadata() == null) return false; if (other.getServerCertificateMetadata() != null && other.getServerCertificateMetadata().equals(this.getServerCertificateMetadata()) == false) return false; if (other.getCertificateBody() == null ^ this.getCertificateBody() == null) return false; if (other.getCertificateBody() != null && other.getCertificateBody().equals(this.getCertificateBody()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getServerCertificateName() == null) ? 0 : getServerCertificateName().hashCode()); hashCode = prime * hashCode + ((getServerCertificateId() == null) ? 0 : getServerCertificateId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); hashCode = prime * hashCode + ((getExpiration() == null) ? 0 : getExpiration().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServerCertificateMetadata() == null) ? 0 : getServerCertificateMetadata().hashCode()); hashCode = prime * hashCode + ((getCertificateBody() == null) ? 0 : getCertificateBody().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); return hashCode; }
return false; ServerCertificateMetadata other = (ServerCertificateMetadata) obj; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getServerCertificateName() == null ^ this.getServerCertificateName() == null) return false; if (other.getServerCertificateName() != null && other.getServerCertificateName().equals(this.getServerCertificateName()) == false) return false; if (other.getServerCertificateId() == null ^ this.getServerCertificateId() == null) return false; if (other.getServerCertificateId() != null && other.getServerCertificateId().equals(this.getServerCertificateId()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == false) return false; if (other.getExpiration() == null ^ this.getExpiration() == null) return false; if (other.getExpiration() != null && other.getExpiration().equals(this.getExpiration()) == false) return false; return true;
/** * 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 (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getServerCertificateName() != null) sb.append("ServerCertificateName: ").append(getServerCertificateName()).append(","); if (getServerCertificateId() != null) sb.append("ServerCertificateId: ").append(getServerCertificateId()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()).append(","); if (getExpiration() != null) sb.append("Expiration: ").append(getExpiration()); sb.append("}"); return sb.toString(); }